/* --- Global Styles & Variables --- */
:root {
    --primary-color: #e7e7c9;
    --primary-hover-color: #efefb2e9;
    --background-color: #e9ebecef;
    --text-color: #1e1f1c;
    --white-color: #fffdfd;
    --light-gray-color: #EAEAEA;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
}

ul {
    list-style: none;
}

/* --- Navigation Bar --- */
.navbar {
    background: linear-gradient(90deg, rgba(26, 88, 93, 0.8) 0%, rgba(3, 154, 152, 0.8) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 5px 1rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}
.dashboard-btn, #logout-button {
  display: inline-block;
  background: linear-gradient(150deg, #83bed0e9, #0dada7f8);
  color: #494949c5;
  padding: 8px 22px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 1px 3px 14px rgb(141 159 186);
  text-decoration: none;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link-item-item {
    font-weight: 500;
    color:#e5e3e3ef;
    transition: color 0.3s ease;
}

.nav-link-item-item:hover {
    color: rgba(194, 202, 246, 0.9);
}

.hamburger {
    display: none;
    cursor: pointer;
    padding-right: 10px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
}

.dropdown-menu, .dropdown-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(84, 81, 81, 0.9);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-submenu {
    top: 0;
    right: 100%;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(2);
}

.dropdown-submenu-toggle {
    position: relative;
}

.dropdown-submenu-toggle:hover + .dropdown-submenu,
.dropdown-submenu:hover {
     opacity: 1;
     visibility: visible;
     transform: translateY(2);
}

.dropdown-menu a, .dropdown-submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #e5e3e3ef;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu a:hover, .dropdown-submenu a:hover {
    background-color: rgba(3, 154, 152, 0.8);
    color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: rgba(3, 154, 152, 0.8);
    color: var(--white-color);
    border: none;
}

.btn-primary:hover {
    background-color: #53a4a2cc;
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--text-color);
    color: var(--white-color);
}

/* --- Login Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: var(--white-color);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-color);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #D32F2F;
    margin-top: 1rem;
    text-align: center;
    display: none; /* Hidden by default */
}

/* --- Dashboard Page --- */
.dashboard-container {
    padding: 2rem 5%;
    min-height: 80vh;
}

.dashboard-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.dashboard-card h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.dashboard-card p {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    padding: 0.8rem;
    border-radius: 5px;
    display: none;
}
.message.success {
    background-color: #E8F5E9;
    color: #2E7D32;
}
.message.error {
    background-color: #FFEBEE;
    color: #C62828;
}
#screen-hight {
    height: 100vh;
}
.about-section {
      max-width: 1000px;
      margin: 40px auto;
      background: #fff;
      padding: 40px 30px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .about-section h2 {
      text-align: center;
      color: #0078d7;
      font-size: 26px;
      margin-bottom: 20px;
    }

    .about-section p {
      font-size: 16px;
      text-align: justify;
      margin-bottom: 15px;
    }

    .highlight {
      color: #0078d7;
      font-weight: 600;
    }
    .mission-vision {
      background: #e3f2fd;
      border-left: 5px solid #0078d7;
      padding: 20px;
      border-radius: 8px;
      margin-top: 30px;
    }
/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu {
        gap: 1.5rem;
    }
    #screen-hight {
    height: 50vh;
}
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        padding-right: 10px;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -115%;
        top: 70px; /* Adjust based on navbar height */
        flex-direction: column;
        background-color: rgba(64, 120, 120, 0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
        width: 100%;
    }
    
    .dropdown-menu, .dropdown-submenu {
        position: static;
        box-shadow: none;
        width: 90%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* Hide by default on mobile */
        padding-left: 1rem;
    }

    .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu-toggle:hover + .dropdown-submenu,
    .dropdown-submenu:hover {
        display: block;
    }

    .hero-tagline {
        font-size: 2.5rem;
    }
    
    .modal-content {
        margin: 25% auto;
    }
    #screen-hight {
    height: 50vh;
}
      .about-section {
        padding: 25px 20px;
      }
}
