:root {
    --primary-color: #008B9B;
    --secondary-color: #80C5CF;
    --dark-teal: #004A52;
    --success-color: #28a745;
    --warning-color: #ff9800;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
}

/* Layout Structure */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Sidenav Styles */
.sidenav {
    width: 260px;
    height: 100vh;
    position: fixed;
    background-color: white;
    border-right: 1px solid var(--border-color);
    z-index: 1030;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidenav-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidenav-menu {
    padding: 1rem 0;
    overflow-y: auto;
}

.sidenav-item {
    padding: 0.75rem 1.5rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .sidenav-item i {
        margin-right: 0.75rem;
        font-size: 1.1rem;
    }

    .sidenav-item:hover {
        color: var(--primary-color);
        background-color: rgba(0, 139, 155, 0.1);
    }

    .sidenav-item.active {
        color: var(--primary-color);
        background-color: rgba(0, 139, 155, 0.1);
        border-right: 3px solid var(--primary-color);
    }

    .sidenav-item.text-danger {
        color: #dc3545;
    }

        .sidenav-item.text-danger:hover {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }

    .sidenav-item .bi-chevron-down {
        transition: transform 0.3s ease;
    }

[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.sidenav-divider {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    opacity: 0.2;
}

.submenu {
    padding-left: 1rem;
    background-color: rgba(0, 139, 155, 0.05);
}

    .submenu .sidenav-item {
        padding: 0.5rem 1rem;
    }

/* Navbar Styles */
.navbar-brand {
    padding: 0;
}

.circle-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.text-logo {
    height: 30px;
    object-fit: contain;
}

.navbar .container {
    max-width: 100%;
    padding-right: 1.5rem;
}

/* Auth Buttons */
.auth-buttons {
    margin-left: auto;
    padding-right: 0;
}

    .auth-buttons .btn {
        border-radius: 20px;
        padding: 8px 24px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .auth-buttons .btn-outline-primary {
        background-color: transparent;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .auth-buttons .btn-outline-primary:hover,
        .auth-buttons .btn-outline-primary:active,
        .auth-buttons .btn-outline-primary:focus,
        .auth-buttons .btn-outline-primary[aria-expanded="true"] {
            background-color: var(--primary-color) !important;
            color: white !important;
            border-color: var(--primary-color) !important;
            box-shadow: 0 4px 12px rgba(0, 139, 155, 0.2);
        }

        .auth-buttons .btn-outline-primary::after {
            color: currentColor;
            transition: all 0.3s ease;
        }

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 139, 155, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

    .dropdown-item:hover {
        background-color: rgba(0, 139, 155, 0.1);
        color: var(--primary-color);
    }

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Footer Styles */
.footer {
    width: 100%;
    background-color: var(--bg-light);
    margin-top: auto;
    padding: 3rem 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer h6 {
    color: #333;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links {
    margin-bottom: 1.5rem;
}

    .footer-links a {
        color: #6c757d;
        text-decoration: none;
        display: inline-block;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--primary-color);
            transform: translateX(5px);
        }

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #6c757d;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .social-link:hover {
        color: var(--primary-color);
        transform: translateY(-2px);
    }

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: var(--dark-teal);
        border-color: var(--dark-teal);
    }

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 139, 155, 0.25);
}

/* Section Styles */
.bg-gradient-hero {
    background: linear-gradient(135deg, rgba(128, 197, 207, 0.15) 0%, rgba(0, 139, 155, 0.2) 100%);
    min-height: 200px;
}

/* Mobile Navigation */
.navbar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

.sidenav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1020;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-toggle-btn {
        display: block;
    }

    .sidenav {
        margin-left: -260px;
    }

        .sidenav.active {
            margin-left: 0;
        }

    .main-content {
        margin-left: 0;
    }

    .sidenav-overlay.active {
        display: block;
    }

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .auth-buttons {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }

        .footer .row {
            text-align: center;
        }

    .footer-brand {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .footer h6 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .footer-links {
        margin-bottom: 0;
    }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            font-size: 0.9rem;
            padding: 0.5rem;
            display: inline-block;
        }

    .auth-buttons .btn {
        padding: 6px 16px;
    }

    .footer .border-top {
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
    }

    .footer .text-md-start,
    .footer .text-md-end {
        text-align: center !important;
    }

    .footer small {
        display: block;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 1.5rem 0;
    }

        .footer .col-md-4,
        .footer .col-lg-2 {
            margin-bottom: 1.5rem;
        }

    .footer-links a {
        padding: 0.5rem 1rem;
        margin: 0.25rem 0;
        background-color: rgba(0, 0, 0, 0.02);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .footer-links a:active {
            background-color: rgba(0, 0, 0, 0.05);
        }

    .footer .row.g-4 {
        --bs-gutter-y: 1rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-link {
        font-size: 1.2rem;
    }

    .circle-logo {
        height: 32px;
        width: 32px;
    }

    .text-logo {
        height: 24px;
    }
}
