@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* Design Tokens */
:root {
  --color-bg-page: rgb(29, 29, 29);
  --color-bg-panel: rgb(40, 40, 40);
  --color-bg-surface: rgb(50, 50, 50);
  --color-bg-hover: rgb(60, 60, 60);
  --color-bg-footer: rgb(20, 20, 20);
  --color-text-primary: rgb(242, 241, 237);
  --color-text-strong: rgb(255, 255, 255);
  --color-text-muted: rgb(180, 180, 180);
  --color-text-subtle: rgb(120, 120, 120);
  --color-brand-primary: rgb(249, 237, 219);
  --color-brand-accent: rgb(247, 63, 13);
  --color-border: rgb(65, 65, 65);
  --color-chip-bg: rgb(70, 71, 67);
  --color-chip-text: rgb(194, 195, 193);
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition-standard: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

body .is-hidden {
  display: none;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 120px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="search"],
textarea,
select {
  background-color: rgb(50, 50, 50);
  border: 1px solid rgb(65, 65, 65);
  color: rgb(242, 241, 237);
  border-radius: 2px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: rgb(120, 120, 120);
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  line-height: 1.6;
  color: rgb(242, 241, 237);
  background-color: rgb(29, 29, 29);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  color: rgb(242, 241, 237);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background-color: rgb(50, 50, 50);
  border: 1px solid rgb(65, 65, 65);
  border-radius: 2px;
  color: rgb(242, 241, 237);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgb(249, 237, 219);
  box-shadow: 0 0 0 3px rgba(247, 63, 13, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgb(120, 120, 120);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  color: rgb(242, 241, 237);
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: rgb(50, 50, 50);
  border: 1px solid rgb(65, 65, 65);
  border-radius: 2px;
  margin-right: 12px;
  margin-top: 2px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background-color: rgba(249, 237, 219, 0.1);
  border-color: rgb(249, 237, 219);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  display: block;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(29, 29, 29);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.loading-screen.show {
  opacity: 1;
}

.loading-logo {
  max-width: 250px;
  width: 75%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.loading-logo.show {
  opacity: 1;
}

.main-content {
  opacity: 0;
  transition: opacity 0.5s ease-in;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content.show {
  opacity: 1;
}

/* Container for centring and max-width */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Main Content */
main {
  flex: 1;
  padding: 40px 0;
}

/* Footer Styles */
footer {
  /* background-color: rgb(20, 20, 20); */
  padding: 10px 0 10px 0;
  border-top: 1px solid rgb(65, 65, 65);
  margin-top: auto;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: rgb(242, 241, 237);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgb(249, 237, 219);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: rgb(255, 255, 255);
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 0;
  }

  .container {
    margin: 0 0;
    padding: 0 0;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-width: auto;
  }

  footer .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding-bottom: 20px;
  }

  .footer-links {
    gap: 15px;
    flex-direction: row;
  }

  footer {
    padding: 25px 0 0 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0;
  }

  /* Loading Screen Phone Styles */
  .loading-logo {
    width: 75%;
    max-width: 250px;
    transform: translateY(-250%);
  }
}
