/*===============================================================================================
                                Global Styles
===============================================================================================*/


body {
    margin: 0;
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
}

.layout-container {
    display: flex;
    height: 100vh;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%), url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-direction: row;
}
.blazor-error-ui {
    display: none !important;
}



/*===============================================================================================
                                Navigation Sidebar
===============================================================================================*/

.sidebar {
    width: 175px;
    background-color: rgba(0, 28, 28, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    color: #eee9d9;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    justify-content: space-between; /* spread top, middle, bottom */
}

/*Logo area*/
.logo {
    width: 150px;
    height: auto;
    margin: 0 auto 0.25rem auto;
    display: block;
}
.logo-section {
    text-align: center;
    padding-top: 0.15rem;
    padding-bottom: 0.5rem;
}
.site-title {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}
.site-title:focus {
    outline: none;
    box-shadow: none;
}
.sidebar *:focus {
    outline: none;
    box-shadow: none;
}
.user-info {
    text-align: center;
    margin-bottom: 1.5rem;
}
.sidebar-user-name {
    color: #5dd3c4;
    font-weight: bold;
    text-decoration: none;
    display: block;
}
.sidebar-user-name:hover {
    text-decoration: underline;
    color: #8df2e4;
}
.sidebar-user-rank {
    font-size: 0.85rem;
    font-style: italic;
    color: #eee9d9;
    margin: 0;
}
/*Navigational links area*/
.nav-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}
.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}
.nav-links a {
    color: #eee9d9;
    text-decoration: none;
    margin: 0.4rem 0rem;
    font-size: 0.95rem;
}
.nav-links a:hover {
    color: #17a2a2;
}
.nav-section {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #17a2a2;
    letter-spacing: 0.05em;
}
.sidebar-link-admin {
    
    color: gold;
    font-weight: bold;
}
.sidebar-link-admin:hover {
    color: #ffd700; /* Bright gold hover */
    text-decoration: underline;
}
/*login/registration buttons at bottom*/
.login-section {
    text-align: center;
    margin-top: auto;
    padding-bottom: 1rem;
}
.login-link {
    color: #00bfa5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}
.login-link:hover {
    color: #ffffff;
}
/*===============================================================================================
                                Main Content Area
===============================================================================================*/


.background {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-content: flex-end;
}
.content-window {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    width: 90%;
    height: 85%;
    background-color: rgba(0, 26, 26, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-right: 5vw;
    margin-left: 5vw;
    margin-top: 10vh;
    margin-bottom: 5vh;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 12px #000;
    overflow: hidden;
}


.sidebox {
    max-height: 91%; /* adjust height as needed */
    overflow: hidden;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    color: #ccc;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.scroll-container {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.scroll-inner {
    display: inline-block;
    animation: scroll-up 120s linear 6s forwards; /* 60s = scroll duration, 10s = delay */
}

@keyframes scroll-up {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Optional: hide scrollbars if fallback scroll used */
.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.sidebox h3 {
    color: #17a2a2;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tagline {
    margin-top: 8px;
    text-align: center;
    color: #eee9d9;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}
.home-intro {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.25rem;
    min-height: 89.5%;
    border-radius: 12px;
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.75;
    font-family: 'Segoe UI', sans-serif; /* override Orbitron for body */
}

.home-intro h1 {
    font-family: 'Orbitron', sans-serif;
    color: #17a2a2;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

    .home-intro .org-name {
        font-weight: 800;
        font-size: 1.2rem;
        color: #eee9d9;
    }
.home-headerbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-header {
    font-size: 1.2rem;
    color: #eee9d9;
    margin: 0;
    padding: 0;
}
.join-steps {
      
    text-align: center;
    color: #ccc;
}

    .join-steps h3 {
        color: #eee9d9;
        font-size: 1.4rem;
    }

.join-step {
    margin-bottom: 2rem;
}


.join-step strong {
    font-size: 1.1rem;
    color: #5dd3c4;
    display: block;
    margin-bottom: 0.5rem;
}

.join-step p {
    font-size: 0.95rem;
    margin: 0 auto;
    max-width: 500px;
    line-height: 1.6;
    color: #ccc;
}

.discord-link img {
width: 40px;
height: 40px;
    
transition: transform 0.2s ease;
}

.discord-link img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px #5dd3c4);
}





/*===============================================================================================
                                Modal CSS
===============================================================================================*/


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.93);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 900;
}
.modal-window {
    position: relative;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #00ffe7;
    width: 600px;
    max-width: 90vw;
    max-height: 90vh; 
    overflow-y: auto; 
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
    background-image: url('/images/modal-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    z-index: 1000;
}

.modal-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #004d40;
    border: 1px solid #00695c;
    color: #fff;
    border-radius: 4px;
}
.modal-button {
    padding: 0.4rem 1rem;
    margin: 0.5rem auto 2rem auto;
    background-color: #00bfa5;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}
.error-text {
    color: #ff5252;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}
.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #eee9d9;
    margin-bottom: 1rem;
    text-align: center;
}
.success-text {
    color: #00e676;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}
input[type="file"] {
    width: 100%;
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #004d40;
    color: #fff;
    border: 1px solid #00695c;
    cursor: pointer;
}
input[type="file"]::file-selector-button {
    background-color: #00bfa5;
    border: none;
    color: #000;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
}
.edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 900;
    overflow: hidden;
}
.edit-modal-window {
    position: relative;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 12px;
    width: 500px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
    border: 2px solid #00ffe7;
    background-image: url('/images/modal-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    z-index: 1000;
}
.quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 24px;
    margin: 16px 0;
}
.quantity-selector button {
    font-size: 24px;
    background: transparent;
    color: #0f4d4d;
    border: 2px solid #0f4d4d;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}
.quantity-selector button:hover {
    color: #17a2a2;
    border-color: #17a2a2;
}
.name-input {
    width: 100%;
    padding: 0.5rem;
    background-color: #111;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.note-input textarea {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    padding: 8px;
    resize: none;
}
.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}
.confirm-button, .cancel-button {
    padding: 6px 12px;
    border-radius: 8px;
    border: 2px solid #0f4d4d;
    background: transparent;
    color: #0f4d4d;
    cursor: pointer;
}
.confirm-button:hover, .cancel-button:hover {
    border-color: #17a2a2;
    color: #17a2a2;
    box-shadow: 0 0 6px #17a2a2;
}
.request-button {
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #0f4d4d;
    color: #0f4d4d;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.request-button:hover {
    border-color: #17a2a2;
    color: #17a2a2;
    box-shadow: 0 0 8px #17a2a2;
}

/*Media Upload Modal*/
.manage-media-button {
    padding: 8px 16px;
    border: 2px solid #0f4d4d;
    background: rgba(0, 0, 0, 0.5);
    color: #0f4d4d;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 20px;
    cursor: pointer;
}
.manage-media-button:hover {
    border-color: #17a2a2;
    color: #17a2a2;
    box-shadow: 0 0 8px #17a2a2;
}
.media-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.media-modal-window {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #0f4d4d;
    border-radius: 16px;
    padding: 24px;
    width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    color: white;
    box-shadow: 0 0 20px #0f4d4d;
}
.media-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.media-list {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.media-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid #0f4d4d;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.media-item img {
    max-width: 100%;
    border-radius: 8px;
}
.media-meta {
    margin-top: 8px;
}
.delete-button {
    background: none;
    border: 1px solid #a00;
    color: #f44;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 6px;
}
.delete-button:hover {
    border-color: #f44;
    background-color: rgba(255, 0, 0, 0.1);
}
.fleet-modal-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 5px;
}
    /* Applies to all scrollable elements */
    .fleet-modal-grid::-webkit-scrollbar,
    .modal-window::-webkit-scrollbar {
        
        width: 10px;
    }

    .fleet-modal-grid::-webkit-scrollbar-track,
    .modal-window::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .fleet-modal-grid::-webkit-scrollbar-thumb,
    .modal-window::-webkit-scrollbar-thumb {
        background: #5dd3c4;
        border-radius: 10px;
        border: 2px solid rgba(0, 0, 0, 0.3);
    }

        .fleet-modal-grid::-webkit-scrollbar-thumb:hover,
        .modal-window::-webkit-scrollbar-thumb:hover {
            background: #17a2a2;
        }

.modal-overlay-fleet {
    position: fixed;
    top: 0;
    left: 0;
    width: 120vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.93);
    display: flex;
    justify-content: flex-start;
    align-items: center;;
    overflow: hidden;
    z-index: 900;
}
.modal-window-fleet {
    position:fixed;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #00ffe7;
    max-width:100vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
    background-image: url('/images/modal-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    z-index: 1000;
}

.manufacturer-group h3 {
    margin-bottom: 0.5rem;
    color: #5dd3c4;
    border-bottom: 1px solid #5dd3c4;
    padding-bottom: 0.25rem;
}

.ship-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ship-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.ship-name {
    font-weight: bold;
    color: #ccc;
    margin-bottom: 0.25rem;
}

.ship-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .ship-controls button {
        background: transparent;
        color: #5dd3c4;
        border: 1px solid #5dd3c4;
        border-radius: 4px;
        padding: 0 0.5rem;
        cursor: pointer;
    }

        .ship-controls button:hover {
            background-color: #5dd3c4;
            color: black;
        }

.ship-qty {
    width: 24px;
    text-align: center;
    color: white;
}



/*===============================================================================================
                                User's Profile Page
===============================================================================================*/



.user-profile-wrapper {
    display: flex;
    flex-direction: column;
    height: 90%;
    gap: 2rem;
}
.profile-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-top: -60px;
    padding: 0 1rem;
}
.profile-pic {
    width: 240px;
    height: 240px;
    border: 4px solid #5dd3c4;
    border-radius: 50%;
    object-fit: cover;
    background-color: #000;
    position: relative;
    z-index: 2;
    margin-top: -120px; /* Adjust so it still overlaps the banner cleanly */
}
.profile-info {
    flex-grow: 1;
    max-width: 250px;
    padding-left: 1.5rem;
}
.profile-info h2 {
    margin: 0;
    color: #5dd3c4;
    font-size: 1.5rem;
}
.profile-info .rank,
.profile-info .role {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: #ccc;
}
.profile-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}
.profile-actions button {
    background-color: #0f4d4d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}
.profile-actions button:hover {
    background-color: #146b6b;
}
.profile-actions .active {
    background-color: #5dd3c4;
    color: #000;
}
.profile-tab-content {
    flex-grow: 1;
    background-color: rgba(0, 26, 26, 0.85);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #5dd3c4;
    color: #ccc;
    box-shadow: 0 0 10px rgba(93, 211, 196, 0.15);
    overflow-y: auto;
}

.edit-profile-modal {
    background-color: #1a1a1a;
    border: 1px solid #5dd3c4;
    padding: 2rem;
    border-radius: 12px;
    width: 480px;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.edit-profile-modal input[type="text"] {
    padding: 0.5rem;
    background: #111;
    border: 1px solid #5dd3c4;
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
}
.preview-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #5dd3c4;
}
.edit-profile-modal textarea {
    resize: vertical;
    padding: 0.5rem;
    background: #111;
    border: 1px solid #5dd3c4;
    color: #fff;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}



/*===============================================================================================
                                Inventory List
===============================================================================================*/

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00bfa5;
}
.inventory-controls {
    margin-bottom: 1rem;
}
.inventory-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(0, 26, 26, 0.7);
    backdrop-filter: blur(6px);
    color: #eee;
}
.inventory-table th, .inventory-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #333;
}
.inventory-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}
.filter-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}
.filter-button:hover {
    transform: scale(1.05);
}
.filter-button img {
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,255,255,0.2);
}
.filter-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 6px #0f4d4d;
}
.icon {
    font-size: 48px;
}

/*===============================================================================================
                                Admin Panel
===============================================================================================*/


.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.admin-tab-button {
    padding: 8px 16px;
    border: 2px solid #0f4d4d;
    background: rgba(0, 0, 0, 0.5);
    color: #0f4d4d;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
.admin-tab-button:hover {
    border-color: #17a2a2;
    color: #17a2a2;
    box-shadow: 0 0 8px #17a2a2;
}
.admin-tab-button.active {
    background: #0f4d4d;
    color: white;
}
.admin-tab-content {
    background: rgba(20, 20, 20, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #0f4d4d;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.1);
}
.admin-search {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #0f4d4d;
    background: rgba(0, 0, 0, 0.5);
    color: #ccc;
}
.admin-user-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.4);
    color: #ccc;
}
.admin-user-table th,
.admin-user-table td {
    padding: 10px 12px;
    border: 1px solid #0f4d4d;
    text-align: left;
}
.admin-input,
.admin-select {
    width: 100%;
    padding: 6px;
    background: rgba(20, 20, 20, 0.6);
    color: #eee;
    border: 1px solid #0f4d4d;
    border-radius: 6px;
}
.admin-action {
    margin-right: 6px;
    padding: 6px 12px;
    background: #0f4d4d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.admin-action:hover {
    background: #17a2a2;
}
.admin-table-scroll {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #0f4d4d;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
}
.qty-btn {
    padding: 4px 10px;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #0f4d4d;
    background: rgba(0, 0, 0, 0.4);
    color: #0f4d4d;
    border-radius: 4px;
    cursor: pointer;
}
.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #ccc;
}
.apply-btn {
    padding: 4px 10px;
    background: #0f4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.apply-btn:hover {
    background: #17a2a2;
}
.admin-table-scroll::-webkit-scrollbar {
    width: 10px;
}
.admin-table-scroll::-webkit-scrollbar-thumb {
    background-color: #0f4d4d;
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}
.admin-table-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}
.inventory-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.media-modal-window.wide {
    width: 90%;
    max-width: 1000px;
}
.approve-btn {
    background-color: #0f4d4d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    margin-right: 6px;
    cursor: pointer;
}
.approve-btn:hover {
    background-color: #17a2a2;
}
.deny-btn {
    background-color: #8b0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}
.deny-btn:hover {
    background-color: #ff4444;
}

/*===============================================================================================
                                Missions
===============================================================================================*/



.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-top: 12px;
}
.mission-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #0f4d4d;
    border-radius: 10px;
    padding: 16px;
    color: #ccc;
}
.mission-card h3 {
    margin-top: 0;
    color: #17a2a2;
}
.mission-card .desc {
    font-size: 0.9rem;
    margin-top: 8px;
}
button {
    background: #0f4d4d;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
button:hover {
    background: #17a2a2;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.modal {
    background: #111;
    border: 1px solid #0f4d4d;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    color: #ccc;
}
.modal input,
.modal textarea {
    width: 100%;
    padding: 6px;
    margin-bottom: 12px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
}
.modal-actions {
    display: flex;
    justify-content: space-between;
}
.confirm {
    background-color: #17a2a2;
}
.cancel {
    background-color: #333;
}

/*===============================================================================================
                                Calendar
===============================================================================================*/

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    width: 100%;
    height: 425px; /* ?? adjust as needed */
    overflow: hidden; /* ?? hide overflow */
    flex-shrink: 0;
}
.calendar-header {
    font-size: 1.2rem;
    color: #eee9d9;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
}
.calendar-day {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #5dd3c4;
}
.calendar-event {
    background: #004c4c;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: #fff; /* Match Index page heading color */
    font-weight: bold;
    font-size: 0.85rem;
}
.calendar-details-name {
    color: #5dd3c4;
}
.event-details-area {
    flex: 1 1 30%; /* Takes up the remaining ~30% */
    overflow-y: auto;
    background: #111;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #5dd3c4;
}
.event-details {
    flex: 1 1 30%; /* Takes up the remaining ~30% */
    overflow-y: auto;
    background: #111;
    padding: 1rem;
    border-radius: 12px;
}

.event-banner {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}
.calendar-two-column {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
    max-height: 90vh;
    overflow: hidden;
}

.calendar-main-content {
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
}

.calendar-side-content {
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
}
.calendar-wrapper {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    height: 70%; /* Leaves 30% gap at the bottom */
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
}
.calendar-stack {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 1rem;
}
.fullwidth-window {
    width: 100%;
    padding: 1.5rem;
    background-color: rgba(0, 26, 26, 0.85);
    border-radius: 8px;
    margin: 5vh;
    box-shadow: 0 0 12px #000;
}



/*===============================================================================================
                                Content Component: Recent Event Media
===============================================================================================*/


/* ============================
   Recent Event Media Styling
   ============================ */

.recent-media-header {
    font-size: 1.2rem;
    color: #eee9d9; /* Match site-wide teal */
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.25rem;
}

.event-gallery-item {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-gallery-item strong {
    color: #5dd3c4;
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.event-time {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.event-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.event-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #444;
    background: #111;
}
.recent-media-panel {
    max-height: 90%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.85rem;
    color: #ddd;
    scrollbar-width: thin;
    scrollbar-color: #3cefff transparent;
}

/* Chromium scrollbar */
.recent-media-panel::-webkit-scrollbar {
    width: 8px;
}

.recent-media-panel::-webkit-scrollbar-track {
    background: transparent;
}

.recent-media-panel::-webkit-scrollbar-thumb {
    background-color: #3cefff;
    border-radius: 4px;
}

.recent-media-panel::-webkit-scrollbar-thumb:hover {
    background-color: #29b3c6;
}
/* Headerbar sits above the scroll panel */
.recent-media-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 90%;
}

.recent-media-headerbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-media-header {
    font-size: 1.2rem;
    color: #eee9d9;
    margin: 0;
    padding: 0;
}







/*===============================================================================================
                                Window Size Check CSS
===============================================================================================*/



/* Tablet */
@media (max-width: 900px) {
    .content-window {
        grid-template-columns: 1fr 2fr;
    }

    .right-content {
        display: none;
    }
}
/* Mobile */
@media (max-width: 600px) {
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 0.5rem 1rem;
    }

    .logo {
        height: 40px;
    }

    .site-title {
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: row;
        padding: 0;
    }

        .nav-links a {
            margin: 0 0.75rem;
        }

    .login-section {
        display: none;
    }

    .content-window {
        display: block;
        padding: 0;
    }

    .left-content,
    .right-content {
        display: none;
    }

    .center-content {
        padding: 1rem 0;
    }
}

/*===============================================================================================
                                Content Window: Information
===============================================================================================*/



/* ========================
   Information Panel Styles
   ======================== */

.information-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
    .information-header h2 {
        font-size: 1.2rem;
        color: #eee9d9; /* Match existing title color */
        margin: 0;
    }
.info-tabs {
    display: flex;
    gap: 0.4rem;
}
.tab-button {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #444;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab-button:hover {
    background-color: #1a1a1a;
    border-color: #888;
    color: #eee;
}
.tab-button.active {
    background-color: #0f0f0f;
    border-color: #3cefff;
    color: #3cefff;
}
.info-content {
    max-height: 90%;
    overflow-y: auto;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ddd;
    line-height: 1.5;
    scroll-behavior: smooth;
}
/* Scrollbar styling (site-themed) */
.info-content::-webkit-scrollbar {
    width: 8px;
}

.info-content::-webkit-scrollbar-track {
    background: transparent;
}

.info-content::-webkit-scrollbar-thumb {
    background-color: #3cefff;
    border-radius: 4px;
}

    .info-content::-webkit-scrollbar-thumb:hover {
        background-color: #29b3c6;
    }

.info-content {
    scrollbar-color: #3cefff transparent;
    scrollbar-width: thin;
}

    /* Subheaders inside content */
    .info-content h3 {
        font-size: 1rem;
        margin-top: 1.25rem;
        color: #5dd3c4;
    }

    .info-content h2 {
        font-size: 1.15rem;
        color: #5dd3c4;
        margin-top: 1rem;
    }

    .info-content p {
        margin-bottom: 0.75rem;
    }

    .info-content ul {
        margin-left: 1.25rem;
        padding-left: 0;
    }

    .info-content li {
        margin-bottom: 0.3rem;
    }

/* ========================
   Two Column Layout Styles
   ======================== */

.two-column-layout {
    position: relative;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    height: 100%;
    padding: 0 1rem;
}


.left-content {
    overflow-y: auto;
}

.right-content {
    overflow-y: auto;
}

/* ===============================================================================================
   Page-Level Layout Utilities (Modular Replacement for content-window)
================================================================================================== */

.page-container {
    width: 100%;
    padding: 1.5rem;
    margin: 5vh;
    border-radius: 8px;
    background-color: rgba(0, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 12px #000;
}

/* 1-Column Layout*/
.section-box {
    background-color: #1a1a1a;
    border: 1px solid #5dd3c4;
    border-radius: 12px;
    padding: 1rem;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}
.section-header {
    font-size: 1.2rem;
    color: #eee9d9;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* Base page container — use for all standalone pages */
.page-container {
    width: 100%;
    padding: 1.5rem;
    margin: 5vh 5vw;
    border-radius: 8px;
    background-color: rgba(0, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 12px #000;
}

/* Flex vertical stack layout (for 1-column or split-stack layouts) */
.page-flex-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* 3-Column Layout (Index-style pages) */
.page-grid-3col {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
}

/* Flex Column Layout (Calendar-style pages) */
.page-flex-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.content-window.calendar-mode {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Adjustments for Grid Layouts */
@media (max-width: 900px) {
    .page-grid-3col {
        grid-template-columns: 1fr 2fr;
    }

    .right-content {
        display: none;
    }
}

@media (max-width: 600px) {
    .page-grid-3col {
        display: block;
    }

    .left-content,
    .right-content {
        display: none;
    }

    .center-content {
        padding: 1rem 0;
    }
}

/* ===============================================================================================
                                            Gallery
================================================================================================== */

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Max 4 per row */
    gap: 1rem;
}


.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #0f4d4d;
    transition: box-shadow 0.2s ease-in-out;
}

.gallery-item:hover {
    box-shadow: 0 0 8px #5dd3c4;
}

.hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #5dd3c4;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Lightbox modal */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 82vw;
    height: 90vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-media {
    max-width: 60vw;
    max-height: 65vh;
    width: 60%;
    height: 80%;
    border: 2px solid #5dd3c4;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #5dd3c4;
    border: none;
    font-size: 2rem;
    padding: 10px; 20px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 6px;
}

.lightbox-nav.left {
    left: 2rem;
}

.lightbox-nav.right {
    right: 2rem;
}

@media (max-width: 1200px) {
    .media-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .media-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .media-gallery-grid {
        grid-template-columns: 1fr;
    }
}
.lightbox-thumbnails {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 90vw;
    overflow-x: auto;
}

.lightbox-thumb {
    height: 60px;
    width: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: 0.2s ease;
}

.lightbox-thumb:hover {
    opacity: 1;
    border-color: #5dd3c4;
}

.lightbox-thumb.selected {
    opacity: 1;
    border: 2px solid #5dd3c4;
}
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 82vw;
    height: 90vh;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto;
}

.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 1rem;
    max-width: 90vw;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #5dd3c4;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1001;
    border-radius: 6px;
}

.lightbox-nav.left {
    left: 1rem;
}

.lightbox-nav.right {
    right: 1rem;
}
.upload-button {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #0f4d4d;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.upload-modal {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    color: #ccc;
    width: 540px;
    height: 400px;
    max-width: 90vw;
    box-shadow: 0 0 12px #5dd3c4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}
    .upload-modal select {
        background-color: rgba(0, 26, 26, 0.85);
        color: #5dd3c4;
        border: 1px solid #5dd3c4;
        border-radius: 6px;
        padding: 0.5rem;
        font-family: inherit;
        font-size: 1rem;
        appearance: none;
    }

        .upload-modal select option {
            background-color: #0f2a2a;
            color: #fff;
        }
.modal-upload-field{
    margin-right:20px;
}

.gallery-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.upload-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #0f4d4d;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .upload-button:hover {
        background-color: #146b6b;
    }

/*===============================================================================================
                                Tools Page
===============================================================================================*/

.tool-card {
    background-color: rgba(0, 26, 26, 0.85);
    border: 1px solid #5dd3c4;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(93, 211, 196, 0.1);
    transition: box-shadow 0.2s ease-in-out;
}

    .tool-card:hover {
        box-shadow: 0 0 12px #5dd3c4;
    }

    .tool-card h3 {
        color: #eee9d9;
        margin-bottom: 0.5rem;
    }

    .tool-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #ccc;
        margin-bottom: 1rem;
    }

    .tool-card a {
        color: #5dd3c4;
        text-decoration: underline;
        font-weight: bold;
        transition: color 0.2s ease-in-out;
    }

        .tool-card a:hover {
            color: #8df2e4;
        }
