body {
    font-family: 'Arial', sans-serif;
    background-color: #111827;
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: sticky;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/logo.png');
    background-size: 60.25vw;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    filter: blur(10px);
    opacity: 0.07;
    z-index: 1;
    pointer-events: none;
}

nav {
    opacity: 1;
    position: relative;
    z-index: 100;
}

    nav a:hover {
        background-color: #4b5563;
        transition: background-color 0.3s ease;
    }

table tr:hover {
    background-color: #4b5563;
}

.animate-slide-in {
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-link {
    opacity: 0.7;
    animation: fadeIn 0.5s ease-in forwards;
}

    .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-link:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-link:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-link:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-link:nth-child(5) {
        animation-delay: 0.5s;
    }

@keyframes fadeIn {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.nav-small {
    height: 64px;
    transition: height 0.3s ease;
}

    .nav-small .h-12 {
        height: 64px;
    }

    .nav-small img {
        height: 20px;
        width: 20px;
        transition: all 0.3s ease;
    }

    .nav-small .text-lg {
        font-size: 1.25rem;
        transition: font-size 0.3s ease;
    }

    .nav-small .text-sm {
        font-size: 0.875rem;
        transition: font-size 0.3s ease;
    }

    .nav-small.nav-expanded,
    .nav-small:hover {
        height: 64px;
    }

        .nav-small.nav-expanded .h-12,
        .nav-small:hover .h-12 {
            height: 64px;
        }

        .nav-small.nav-expanded img,
        .nav-small:hover img {
            height: 20px;
            width: 20px;
        }

        .nav-small.nav-expanded .text-lg,
        .nav-small:hover .text-lg {
            font-size: 1.25rem;
        }

        .nav-small.nav-expanded .text-sm,
        .nav-small:hover .text-sm {
            font-size: 0.875rem;
        }

/* Sticky footer - pushes footer to bottom on short pages */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    position: relative;
    z-index: 10;
}

/* Canvas effects - allow clicks to pass through */
#particle-canvas,
#light-ray-canvas {
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.category:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.album:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

#thumbnails {
    overflow-x: auto;
}

#album-scroller {
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 200, 200, 0.5) rgba(50, 50, 50, 0.3);
}

    #album-scroller::-webkit-scrollbar {
        height: 8px;
    }

    #album-scroller::-webkit-scrollbar-track {
        background: rgba(50, 50, 50, 0.3);
        border-radius: 4px;
    }

    #album-scroller::-webkit-scrollbar-thumb {
        background: rgba(200, 200, 200, 0.5);
        border-radius: 4px;
    }

        #album-scroller::-webkit-scrollbar-thumb:hover {
            background: rgba(200, 200, 200, 0.7);
        }

#gallery-modal {
    display: none;
}

    #gallery-modal.open {
        display: flex;
        background: rgba(0, 0, 0, 0.7);
    }

        #gallery-modal.open + body > div:not(#gallery-modal) {
            filter: blur(10px) brightness(0.5);
            transition: filter 0.3s ease;
        }

#close-modal {
    opacity: 0.5;
    transition: opacity 0.3s;
}

    #close-modal:hover {
        opacity: 1;
    }

table {
    border-collapse: collapse;
}

th, td {
    border-bottom: 1px solid rgb(114, 114, 114);
}

/* Ensure main content is clickable */
main {
    position: relative;
    z-index: 10;
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    body::before {
        background-size: 90vw;
    }

    /* Make tables horizontally scrollable */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 800px;
    }

    th, td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    /* Chain of command responsive */
    #chain-of-command-container .grid {
        grid-template-columns: 1fr !important;
    }

    #chain-of-command-container .mr-16 {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    #chain-of-command-container .flex-col.items-center > .flex-col {
        flex-direction: column;
    }

    /* Gallery adjustments */
    #thumbnails img {
        width: 3rem;
    }

    /* Footer images */
    footer img {
        height: 2.5rem;
    }
}

/* Dropdown styles */
#roster-dropdown,
#about-dropdown,
#account-dropdown {
    position: relative;
}

#roster-dropdown-menu,
#about-dropdown-menu,
#account-dropdown-menu {
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Ensure the dropdown area extends to cover the gap */
#roster-dropdown::after,
#about-dropdown::after,
#account-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.25rem;
    background: transparent;
}

/* Arrow rotation */
#roster-dropdown-arrow,
#about-dropdown-arrow,
#account-dropdown-arrow {
    transition: transform 0.2s ease;
}

    #roster-dropdown-arrow.rotate-180,
    #about-dropdown-arrow.rotate-180,
    #account-dropdown-arrow.rotate-180 {
        transform: rotate(180deg);
    }

/* Dropdown menu inner styling */
#roster-dropdown-menu .bg-gray-800,
#about-dropdown-menu .bg-gray-800,
#account-dropdown-menu .bg-gray-800 {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#roster-dropdown-menu a,
#about-dropdown-menu a,
#account-dropdown-menu a,
#account-dropdown-menu button {
    transition: background-color 0.15s ease;
}

/* ============================================
   Auth Modal Styles
   ============================================ */

.auth-modal-backdrop {
    backdrop-filter: blur(4px);
    animation: fadeInBackdrop 0.2s ease;
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-modal-content {
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .auth-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

.auth-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

    .auth-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .auth-btn:active {
        transform: translateY(0);
    }

.auth-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

    .auth-btn-primary:hover {
        background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    }

.auth-btn-google {
    background: white;
    border: 1px solid #e5e7eb;
}

    .auth-btn-google:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #374151;
    }

    .auth-divider::before {
        margin-right: 1rem;
    }

    .auth-divider::after {
        margin-left: 1rem;
    }

/* Avatar styles */
.avatar-ring {
    box-shadow: 0 0 0 2px #1f2937, 0 0 0 4px #3b82f6;
}

.avatar-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

    .avatar-option:hover {
        transform: scale(1.1);
        border-color: #60a5fa;
    }

    .avatar-option.selected {
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    }

/* Account dropdown specific */
#account-dropdown-menu {
    min-width: 240px;
}

.account-menu-header {
    border-bottom: 1px solid #374151;
}

.account-menu-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: #d1d5db;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 0.875rem;
}

    .account-menu-item:hover {
        background-color: #374151;
        color: white;
    }

    .account-menu-item svg {
        width: 1rem;
        height: 1rem;
        margin-right: 0.75rem;
        opacity: 0.7;
    }

.account-menu-divider {
    height: 1px;
    background-color: #374151;
    margin: 0.5rem 0;
}

input[type="date"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

#light-ray-canvas {
    will-change: contents;
}

.slideshow-slide {
    will-change: opacity;
}
