/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #1f2630, #101418);
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  padding-top: 80px;
}

.dash {
  /* 1. Apply the gradient as the background image */
  background: linear-gradient(
    to right,
    /* Gradient direction */ white 50%,
    /* First half white */ #17a2b8 50% /* Second half #17a2b8 */
  );

  /* 2. Set a fallback text color for browsers that don't support background-clip */
  color: #17a2b8; /* Or white, or another default color */

  /* 3. Clip the background to the text */
  /* Include the -webkit- prefix for broader compatibility (Safari, Chrome) */
  -webkit-background-clip: text;
  background-clip: text;

  /* 4. Make the actual text color transparent */
  /* This allows the clipped background (the gradient) to show through */
  color: transparent;
}

a {
  color: lightblue;
}

.switch-form a {
  color: #17a2b8;
  text-decoration: none;
  font-weight: 600;
}

.nav-links li a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

/* Welcome Container (for index.html, nothome.html) */
.welcome-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-container1 {
  width: 100%;
  position: absolute;
}

.form-group.terms a {
  color: #17a2b8;
  text-decoration: none;
  font-weight: 500;
}

.switch-form a:hover {
  color: #21cce5;
  text-decoration: underline;
}

.nav-links li a:hover {
  background-color: #17a2b8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Form Page Container (for login.html, register.html) */
.form-page-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Content Box (shared across all pages) */
.content-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 50px 60px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  width: 100%;
}

.content-box1 {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2%;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  width: 100%;
}
/* Form-specific Content Box adjustments */
.content-box.form-box {
  max-width: 750px;
  padding: 40px 50px;
}

/* Logo/Heading Text (shared) */
.logo-text,
.content-box h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}

.logo-text .highlight,
.content-box h1 .highlight {
  color: #17a2b8;
}

/* Welcome Message (for index.html, nothome.html) */
.welcome-message {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #c0c0c0;
  margin-bottom: 40px;
  font-weight: 300;
}

/* Action Buttons (for index.html, nothome.html) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Form Styling (for login.html, register.html) */
.login-form,
.registration-form,
.contact-form {
  width: 100%;
}

/* Form Columns (for register.html) */

.form-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.form-column {
  flex: 1;
  min-width: 300px;
}

/* Form Groups */

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #c0c0c0;
  font-weight: 400;
  font-size: 0.9rem;
}

/* Input Fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: #17a2b8;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 8px rgba(23, 162, 184, 0.4);
}

/* Date Picker Icon */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(75%) sepia(10%) saturate(900%) hue-rotate(140deg);
  cursor: pointer;
}

/* Textarea Styling (for contact.html) */
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  font-family: "Poppins", sans-serif;
  resize: vertical;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: #17a2b8;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 8px rgba(23, 162, 184, 0.4);
}

/* Small Hints */
.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #a0a0a0;
}

/* Style for select dropdowns */
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  font-family: "Poppins", sans-serif;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="%2317a2b8" d="M0 0h10L5 6z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group select:focus {
  outline: none;
  border-color: #17a2b8;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 8px rgba(23, 162, 184, 0.4);
}

.form-group select:invalid {
  color: #a0a0a0;
}

/* Input size classes */
.input-short {
  max-width: 200px;
}

.input-medium {
  max-width: 300px;
}

.input-long {
  max-width: 100%;
}

/* Ensure inputs and selects align properly */

/* Terms Checkbox */
.form-group.terms {
  display: flex;
  align-items: center;
  margin-top: 15px;
  gap: 10px;
}

.form-group.terms input[type="checkbox"] {
  width: auto;
  color: #17a2b8;
  cursor: pointer;
  transform: scale(1.1);
}

.form-group.terms label {
  margin-bottom: 0;
  font-weight: 300;
  color: #c0c0c0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-group.terms a:hover {
  color: #21cce5;
  text-decoration: underline;
}

/* Extra Options (Remember Me & Forgot Password) */
.form-group.extra-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.form-group.extra-options .remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group.extra-options .remember-me input[type="checkbox"] {
  width: auto;
  color: #17a2b8;
  cursor: pointer;
  margin: 0;
}

.form-group.extra-options .remember-me label {
  margin-bottom: 0;
  font-weight: 400;
  color: #c0c0c0;
  cursor: pointer;
}

.forgot-password {
  color: #17a2b8;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  color: #21cce5;
  text-decoration: underline;
}

/* Button Container (for forms) */
.form-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.form-buttons .btn {
  flex-grow: 1;
  min-width: 150px;
}

/* General Button Styling (shared across all pages) */

/* Sign In Button (Ghost Style, for index.html) */
.btn-signin {
  background-color: transparent;
  border-color: #17a2b8;
  color: #17a2b8;
}

.btn-signin:hover {
  background-color: #17a2b8;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

/* Register & Not Home Buttons (Primary Style, for index.html, nothome.html) */
.btn-register {
  background-color: #17a2b8;
  color: #ffffff;
  border-color: #17a2b8;
}

.btn-register:hover {
  background-color: #138496;
  border-color: #138496;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

/* Submit Button (for forms) */
.btn-submit {
  background-color: #17a2b8;
  color: #ffffff;
  border-color: #17a2b8;
}

.btn-submit:hover {
  background-color: #138496;
  border-color: #138496;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Cancel Button (for register.html) */
.btn-cancel {
  background-color: transparent;
  border-color: #c0c0c0;
  color: #c0c0c0;
}

.btn-cancel:hover {
  background-color: rgba(192, 192, 192, 0.1);
  border-color: #e0e0e0;
  color: #e0e0e0;
  transform: translateY(-2px);
}

/* Button Icons */
.btn i {
  font-size: 1.1em;
}

/* Switch Form Link */
.switch-form {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #c0c0c0;
}

/* Navigation Bar */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(31, 38, 48, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* Nav Logo */
.nav-logo .logo-text {
  font-size: 2rem;
  text-decoration: none;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links li a i {
  font-size: 1.1em;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .content-box {
    padding: 40px 30px;
  }
  .content-box.form-box {
    max-width: 100%;
    padding: 20px 15px;
  }
  .logo-text,
  .content-box h1 {
    font-size: 2.5rem;
  }
  .welcome-message {
    font-size: 1rem;
  }
  .action-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .form-columns {
    flex-direction: column;
    gap: 10px;
  }
  .form-column {
    min-width: 100%;
  }
  .form-group {
    margin-bottom: 10px;
  }
  .form-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .input-short,
  .input-medium,
  .input-long {
    max-width: 100%;
  }
  .nav-bar {
    flex-direction: column;
    padding: 10px 20px;
  }
  .nav-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }
  .nav-links li a {
    width: 100%;
    justify-content: center;
  }
  body {
    padding-top: 120px;
  }
}
