:root {
    --primary-color: #10b981;
    --secondary-color: #0d9488;
    --dark-color: #1f2937;
    --text-color: #374151;
    --sidebar-bg-light: white;
    --sidebar-bg-dark: #1f2937;
    --sidebar-text-light: #374151;
    --sidebar-text-dark: #f9fafb;
    --sidebar-border-light: #f1f5f9;
    --sidebar-border-dark: #374151;
}
/* Header and Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
}

.logo h1 {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;

}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: black; !important;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: var(--primary-color);
    outline: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-login {
    background: transparent;
    color: var(--primary-color);
    margin-left: 1rem;
}

.btn-signup {
    background: var(--primary-color);
    color: white;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg-light);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar .nav-links {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    width: 100%;
}

.mobile-sidebar .nav-links li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid var(--sidebar-border-light);
}

.mobile-sidebar .nav-links a {
    display: block;
    padding: 1rem 0;
    width: 100%;
    color: var(--sidebar-text-light);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-sidebar .nav-links a:hover,
.mobile-sidebar .nav-links a.active {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
    padding-right: 10px;
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    width: 100%;
}

.mobile-auth .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin: 0;
}

.auth-buttons .mobile-auth {
    display: none;
}

.auth-buttons .btn a,
.mobile-auth .btn a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(3px);
}

body.active-sidebar .overlay {
    opacity: 1;
    pointer-events: auto;
}

body.active-sidebar {
    overflow: hidden;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    right: 0;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover,
.social-links a:focus {
    background: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .navbar .nav-links,
    .navbar .auth-buttons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .mobile-sidebar {
        background: var(--sidebar-bg-dark);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .mobile-sidebar .nav-links a {
        color: var(--sidebar-text-dark);
    }

    .mobile-sidebar .nav-links a:hover,
    .mobile-sidebar .nav-links a.active {
        color: var(--primary-color);
        background: rgba(16, 185, 129, 0.2);
    }

    .mobile-sidebar .nav-links li {
        border-bottom: 1px solid var(--sidebar-border-dark);
    }

    .mobile-auth {
        border-top: 1px solid var(--sidebar-border-dark);
    }
    .navbar li a{
        color: white;
    }
}