/* Base Styles */
body {
    padding-top: 70px; /* Add padding to prevent navbar overlap */
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    margin-top: 20px;
}

/* Navbar Styles */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #6366f1 !important;
}

.navbar-brand span {
    color: #6366f1;
}

.nav-link {
    font-weight: 500;
    color: #64748b !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #6366f1 !important;
}

.nav-link i {
    font-size: 1rem;
}

/* Navbar scroll behavior - hide when scrolling down, show when scrolling up */
.navbar-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none;
}

.navbar-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    pointer-events: auto;
}

/* Avatar Circle */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #6366f1;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

/* Footer */
footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

footer a {
    color: #64748b;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #6366f1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    body {
        padding-top: 60px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    .navbar {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}
