/* File - public_html/roster/css/styles.css - The main Stylesheet for the Roster */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&family=Fjalla+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    background-image: url('../graphics/TyphonLogo.svg');
    background-size: 350px 470px;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
}

/* Link color */
a {
    color: #FFCC00;
    /* Yellow link color */
    text-decoration: none;
    /* Remove default underline */
}

/* Hover effect */
a:hover {
    color: #3399FF;
    /* Light blue on hover */
    text-decoration: none;
    /* Add underline on hover */
}

.btn,
.button {
    display: inline-block;
    padding: 7px 30px;
    color: #FFF !important;
    /* Use !important to ensure text is white */
    cursor: pointer;
    background-color: #003C7D;
    /* Primary blue background */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    font-family: 'Fjalla One', sans-serif;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.button:hover,
.ty-btn:hover {
    background-color: #45a049 !important;
    /* Green hover background */
    color: #000 !important;
    /* Black hover text */
    border-color: #81c784 !important;
    text-decoration: none;
}

.ty-btn.active {
    background-color: #45a049;
    color: #000 !important;
    border-color: #81c784 !important;
}

.ty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #475569;
}

.ty-btn-sm {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.main-header {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Fjalla One', sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    text-align: left;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 8px 0 16px 0;
    padding: 12px 18px 10px 18px;
    border: 2px solid rgba(90, 205, 255, 0.58);
    border-radius: 14px;
    background: rgba(18, 72, 128, 0.18);
}

.main-header+p,
.page-description,
.page-intro,
.site-settings-intro,
.suggest-hero__summary,
.rollcall-hero__summary,
.rollcall-headline__summary {
    text-align: center !important;
    font-family: 'Exo 2', sans-serif !important;
    color: #b3d4e5 !important;
    margin-top: 15px !important;
    margin-bottom: 25px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.sub-header {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Fjalla One', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    text-align: left;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 12px 0 8px 0;
    padding: 10px 16px 8px 16px;
    border: 2px solid rgba(76, 175, 80, 0.48);
    border-radius: 12px;
    background: rgba(18, 72, 128, 0.14);
}

h1.sub-header,
.sub-header.h1 {
    font-size: 24px;
    margin: 16px 0 10px 0;
}

h2.sub-header,
.sub-header.h2 {
    font-size: 20px;
    margin: 12px 0 8px 0;
}

h3.sub-header,
.sub-header.h3 {
    font-size: 16px;
    margin: 8px 0 6px 0;
}

/* Footer Profile Nav Buttons */
.nav-buttons,
.profile-nav-inner {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-buttons form,
.profile-nav-form {
    display: flex;
    margin: 0;
    padding: 0;
}

a.login-button,
button.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 140px;
    height: 34px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #0757A7;
    border-radius: 6px;
    background-color: #0757A7;
    color: #FFF !important;
    font-family: 'Fjalla One', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    vertical-align: middle;
}

.profile-nav-form button.login-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: 'Fjalla One', sans-serif !important;
    font-size: 16px !important;
    font-weight: normal !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border-radius: 6px !important;
    min-width: 140px;
    height: 34px;
    box-sizing: border-box;
    position: relative;
}

.profile-nav-form button.login-button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

a.login-button:hover,
button.login-button:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #000 !important;
    text-decoration: none;
}

.profile-nav {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   GLOBAL TYPHON DASHBOARD BUTTON SYSTEM
   ========================================================================== */
.ty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 16px;
    height: 34px;
    border: 1px solid rgba(135, 206, 235, 0.22);
    border-radius: 6px;
    background-color: #0757A7;
    color: #FFF !important;
    font-family: 'Fjalla One', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.ty-btn:hover,
.ty-btn:focus {
    background-color: #4CAF50;
    border-color: #81c784 !important;
    color: #000 !important;
    text-decoration: none;
    outline: none;
}

.ty-btn:disabled {
    background-color: #4a5568 !important;
    border-color: #4a5568 !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Small Button Variant */
.ty-btn-sm {
    padding: 0 12px;
    height: 28px;
    font-size: 13px;
}

.ty-btn-danger {
    background-color: rgba(140, 30, 45, 0.95) !important;
    border-color: rgba(220, 53, 69, 0.55) !important;
}

.ty-btn-danger:hover,
.ty-btn-danger:focus {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}



.ty-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

/* Department-specific colors */
.command {
    border-left-color: #CC0000;
    border-bottom-color: #CC0000;
}

.engineering,
.operations,
.security {
    border-left-color: #FFD700;
    border-bottom-color: #FFD700;
}

.medical {
    border-left-color: #008080;
    border-bottom-color: #008080;
}

.science {
    border-left-color: #408dac;
    border-bottom-color: #408dac;
}

.maco {
    border-left-color: #0289cc;
    border-bottom-color: #0289cc;
}

.unassigned {
    border-left-color: #CC0000;
    border-bottom-color: #CC0000;
}

.red-button,
.red-button:visited {
    background-color: #5f1717 !important;
    border-color: #5f1717 !important;
    color: #FFF !important;
}

.red-button:hover {
    background-color: #AF4C4C !important;
    border-color: #AF4C4C !important;
    color: #000 !important;
}

.menu a#menu-rollcall-checkin {
    position: relative;
    overflow: hidden;
    color: #fff !important;
    border-radius: 6px;
}

/* animated border frame */
.menu a#menu-rollcall-checkin::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, #00c853 35%, #00ff66 50%, #00c853 65%, transparent 100%);
    background-size: 200% 100%;
    background-position: -100% 0;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rollcallSweep 0.9s linear infinite;
    z-index: 1;
}

/* strong moving sweep */
@keyframes rollcallSweep {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

.menu a#menu-rollcall-checkin:hover::before {
    background: linear-gradient(90deg, #00ff66 0%, #00ff66 100%);
    animation: none;
}

/* Container */
.container {
    width: 95%;
    max-width: 1000px;
    border-radius: 20px;
    border: 3px solid #00aaff;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 45px;
    padding-bottom: 45px;
    margin: 50px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.containertoo {
    width: 100%;
    border-radius: 20px;
    padding: 20px;
    margin: 50px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.containerframe {
    width: 1000px;
    padding: 20px;
    margin: 50px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.containerqr {
    width: 500px;
    border-radius: 20px;
    border: 6px solid #007bff;
    padding: 20px;
    margin: 50px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.containersmall {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 0px;
    text-align: center;
}

.containersmall h2 {
    font-family: 'Fjalla One', sans-serif;
    color: #fff;
}

.containersmall label {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    color: #fff;
}

.containersmall input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #003c7d;
    border-radius: 5px;
    background-color: #002042;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
}

.containersmall .login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 34px;
    padding: 7px 15px;
    margin: 0;
    border: 1px solid #003C7D;
    border-radius: 6px;
    background-color: #003C7D;
    color: #FFF !important;
    font-family: 'Fjalla One', sans-serif;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.containersmall .login-button:hover {
    background-color: #4CAF50;
    color: #000 !important;
    text-decoration: none;
    border-color: #4CAF50;
    outline: none;
}

.containersmall button:hover {
    background-color: #45a049;
    color: #000;
}

input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) !important;
}

.backtoroster button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #003c7d;
    border-radius: 5px;
    background-color: #002042;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
}

div.container a.login-button {
    margin-top: 20px;
}

.header-text {
    position: absolute;
    top: 26px;
    height: 40px;
    width: max-content;
    z-index: 100;
    font-family: 'Antonio', sans-serif;
    font-weight: bold;
    font-size: 30px;
    color: #FFCC00;
    background-color: #000000;
    text-align: center;
    line-height: 48px;
    padding-left: 15px;
    padding-right: 15px;
}

.header-text .white-dot {
    color: #FFFFFF;
}

.footer-text {
    /* Layout */
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
    height: 20px;

    /* Positioning — relative nudge down from container bottom */
    position: relative;
    bottom: -62px;
    z-index: 100;

    /* Typography */
    font-family: 'Antonio', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #FFCC00;
    text-align: center;
    line-height: 1;
    white-space: nowrap;

    /* Spacing */
    padding: 0 15px;

    /* Background */
    background-color: #000000;
}

/* Dashboard-master layout: footer is absolutely centred inside the brick-footer bar */
.brick-footer .footer-text {
    position: absolute;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    display: block;
}


.footer-text .white-dot {
    color: #FFFFFF;
}

@media screen and (max-width: 480px) {
    .footer-text {
        font-size: 13px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        max-width: 90vw !important;
    }
}


.footer-text-db {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    bottom: 69px;
    width: max-content;
    background-color: #000000;
    z-index: 100;
    font-family: 'Antonio', sans-serif;
    font-weight: bold;
    font-size: 17px;
    color: #FFCC00;
    text-align: center;
    line-height: 38px;
    padding-left: 15px;
    padding-right: 15px;
    clear: both;
}

.footer-text-db .white-dot {
    color: #FFFFFF;
}

/* Department */
.department {
    width: 100%;
    padding-top: 50px;
}

.department-image {
    margin-bottom: 10px;
}

/* Member */
.member {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
}

.member-profile-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.image-container {
    flex-shrink: 0;
    width: 180px;
    text-align: center;
}

.details-container {
    flex-grow: 1;
    text-align: left;
}

.image-container .profile-image {
    width: 100%;
    height: auto;
}

hr.sub-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #003c7d, rgba(0, 0, 0, 0));
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
}

.member-column:nth-child(1) {
    max-width: 144px;
}

.member-column:nth-child(2) {
    width: 100%;
    padding: 0px;
    border: 0px solid #222;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.member-column:nth-child(3) {
    width: 67px;
    padding: 0px;
    border: 0px solid #222;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.character-name {
    text-align: center;
    color: #cccccc;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
}

.profile-image {
    width: 144px;
    height: auto;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    margin: 0;
    padding: 0;
}

.rank-name {
    text-align: center;
    color: #87CEEB;
    font-family: 'Exo 2', sans-serif;
}

.rank-image {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    margin: 0;
    padding: 0;
}

.member-summary__media {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.member-summary__image-stack {
    position: relative;
    width: 144px;
    min-width: 144px;
    max-width: 144px;
    padding-bottom: 40px;
}

.member-summary__photo {
    display: block;
    width: 144px;
    min-width: 144px;
    max-width: 144px;
    height: auto;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.member-summary__rank {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 144px;
    min-width: 144px;
    max-width: 144px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.aka {
    text-align: center;
    color: #cccccc;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
}

.member-roles span {
    display: block;
    text-align: center;
    margin-bottom: 5px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
}

.profile-link {
    text-decoration: none;
    color: inherit;
}

.member-profile {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 800px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.profile-info {
    margin-left: 20px;
    text-align: left;
}

.profile-info h2 {
    margin-bottom: 10px;
    color: #ffffff;
}

.profile-info p {
    margin-bottom: 5px;
    color: #cccccc;
}

.tabcontent p b.row-title {
    color: #87CEEB;
}

.profile-info p b.row-title {
    color: #87CEEB !important;
}

.tab {
    overflow: hidden;
    border: 0px solid #ccc;
    border-radius: 5px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tab button {
    background-color: #003C7D;
    color: #FFFFFF;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 5px 20px;
    transition: 0.3s;
    font-size: 15px;
    font-family: 'Fjalla One', sans-serif;
    margin-top: 25px;
    border-radius: 6px;
}

.tab button:hover {
    background-color: #00e372;
    color: #000;
}

.tab button.active {
    background-color: #4CAF50;
    color: #FFF;
}

.tabcontent {
    display: none;
    width: 100%;
    padding: 20px;
    border-top: none;
    text-align: left;
}

.tabcontent.active {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    text-align: left;
}

th,
td {
    padding: 10px;
    text-align: center;
}

.years-of-service {
    color: #4b85a2;
    font-weight: bold;
    text-align: center;
}

.countdown {
    font-weight: bold;
    text-align: center;
}

.rank-column {
    text-align: right;
}

.name-column {
    text-align: left;
}

.countdown.expired {
    color: #ff0000;
}

.countdown.orange {
    color: #f4b084;
}

.countdown.yellow {
    color: #ffe699;
}

.countdown.green {
    color: #4CAF50;
}

.expired-link {
    color: #ff0000;
    text-decoration: underline;
}

.expired-link:hover {
    color: #4CAF50;
}

.expired-link img {
    margin-left: 5px;
    height: 15px;
}

.sort-button {
    display: inline-block;
    padding: 5px 30px;
    margin-top: 25px;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 10px;
    background-color: #0757A7;
    color: #FFF;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Fjalla One', sans-serif;
    font-size: 15px;
}

.sort-button:hover {
    background-color: #4CAF50;
    font-family: 'Fjalla One', sans-serif;
    font-size: 16px;
}

.sort-button.active {
    background-color: #4CAF50;
}

.left-align {
    text-align: left;
}

.right-align {
    text-align: right;
}

.renewal-date {
    text-align: right;
}

/* =======================================================
   MENU STYLES - Consolidated & Cleaned
   Includes Flexbox for Badge Alignment & Role Colors
   ======================================================= */

body {
    margin: 0;
    padding: 0;
    font-family: 'Exo 2', sans-serif;
}

/* 1. Menu Container */
.menu {
    padding: 10px;
    flex: 0 130px;
    /* FIXED WIDTH - DO NOT CHANGE */
}

/* 2. Base Button Style (Applies to ALL menu links/buttons) */
.menu a,
.menu .accordion,
.menu .accordion2,
.menu .logout-button {
    /* Layout: Flexbox to push Text Left and Badge Right */
    display: flex !important;
    justify-content: center !important;
    /* CENTER the text */
    align-items: center !important;

    position: relative !important;

    /* Dimensions */
    width: 130px;
    padding: 7px;
    margin: 2px;

    /* Appearance */
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Fjalla One', sans-serif;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    /* Fallback */

    /* Box Model - Prevents width blowouts */
    box-sizing: border-box;
}

/* 3. Standard Crew Style (Solid Blue - Default) */
.menu a,
.menu .accordion {
    background-color: #0757A7;
    color: #FFF;
    border: none;
    /* No outline for standard buttons */
}

.menu a:hover,
.menu .accordion:hover,
.panel a.active {
    background-color: #4CAF50;
    color: #000;
}

/* 4. Secondary Style (Black with Blue Border) */
.menu .accordion2 {
    background-color: #000000;
    border: 2px solid #007bff;
    color: #FFF;
}

.menu .accordion2:hover {
    background-color: #003C7D;
    color: #FFF;
    border-color: #003C7D;
}

/* 5. Logout Button (Solid Red) */
.menu .logout-button {
    display: block !important;
    padding: 7px;
    color: #FFF;
    cursor: pointer;
    background-color: #5f1717;
    border: none;
    margin: 2px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-family: 'Fjalla One', sans-serif;
    /* Apply Antonio font */
    white-space: nowrap;
}

.menu .logout-button:hover {
    background-color: #AF4C4C;
    color: #000;
}

/* 6. Panel / Sub-menu Container */
.panel,
.panel2 {
    overflow: hidden;
    max-height: 0;
    padding-left: 10px;
    transition: max-height 0.1s ease-out;
}

.panel a,
.panel2 a {
    display: flex !important;
    /* Ensure sub-links use flex too */
    width: 155px;
    /* Matches your original offset width */
    background-color: #003366;
    margin: 3px;
    font-weight: normal;
}

.panel a:last-child,
.panel2 a:last-child {
    margin-bottom: 5px;
}

/* --- SUB-MENU BADGE --- */
/* Pushes badges inside the drawer further left so they don't get clipped */
.panel .badge,
.panel2 .badge {
    right: 145px !important;
    /* Move inward away from the scrollbar/edge */
    z-index: 99;
    /* Ensure it sits on top of everything */
}

/* Role-based styles moved to sidebar.blade.php */
/* =======================================================
       END MENU STYLES
       ======================================================= */

.main-content {
    width: 500px;
    /* Set width to 100% */
    flex: 3;
    padding-left: 0px;
}

a.dashboard-button {
    background-color: #4CAF50 !important;
    /* Green background color */
    color: white !important;
    /* White text color */
    display: flex !important;
    justify-content: flex-start !important;
    /* Forces text to the left */
    align-items: center !important;
    font-size: 14px !important;
    font-family: 'Fjalla One', sans-serif !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
    text-decoration: none !important;
    border: none !important;
    box-sizing: border-box !important;
}

a.dashboard-button:hover {
    background-color: #2E87DF !important;
    /* Blue hover color */
    text-decoration: none !important;
    color: #000 !important;
}

.dashboard-button2 {
    display: inline-block;
    padding: 5px 30px;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 10px;
    background-color: #4CAF50;
    /* Default button color */
    color: #FFF;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Fjalla One', sans-serif;
    /* Apply Antonio font */
    font-size: 16px;
}

.dashboard-button2:hover {
    color: #FFF;
    background-color: #003366;
    font-family: 'Fjalla One', sans-serif;
    /* Apply Antonio font */
    font-size: 16px;
}

.dashboard-title {
    text-align: center;
    /* Center-align the text */
    margin-bottom: 20px;
    /* Add some bottom margin for spacing */
}

.dashboard-title h2 {
    margin: 0;
    /* Remove default margin */
    font-size: 24px;
    /* Adjust font size as needed */
    color: #87CEEB;
    /* Light blue color for the headers */
}

.access-level {
    text-align: center;
    /* Center-align the text */
    margin-bottom: 20px;
    /* Add some bottom margin for spacing */
}

.access-level b {
    font-weight: bold;
    /* Make the text bold */
    color: #87CEEB;
    /* Light blue color for the headers */
}

.access-level-value {
    font-style: bold;
    /* Make the value italic */
    color: #cccccc;
    /* Light gray color for the value */
}

.stardate {
    text-align: center;
    /* Center-align the text */
    margin-bottom: 0px;
    /* Add some bottom margin for spacing */
}

.stardate b {
    font-weight: bold;
    /* Make the text bold */
    color: #87CEEB;
    /* Light blue color for the headers */
}

.stardate-value {
    font-style: bold;
    /* Make the value italic */
    color: #cccccc;
    /* Light gray color for the value */
}

a.roster-button {
    background-color: #003366 !important;
    /* Dark Blue background color */
    color: white !important;
    /* White text color */
    display: flex !important;
    justify-content: flex-start !important;
    /* Forces text to the left */
    align-items: center !important;
    font-size: 14px !important;
    font-family: 'Fjalla One', sans-serif !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
    text-decoration: none !important;
    border: none !important;
    box-sizing: border-box !important;
}

a.roster-button:hover {
    background-color: #4CAF50 !important;
    /* Green hover color */
    text-decoration: none !important;
    color: #000 !important;
}

a.logout-btn {
    background-color: #4CAF50 !important;
    /* Green background color */
    color: white;
    /* White text color */
    text-align: center;
    /* Center the text */
    font-size: 18px;
    /* Adjust the font size */
    padding: 10px;
    /* Add padding */
    display: inline-block;
    /* Display as inline-block to fit content */
    text-decoration: none !important;
    /* Remove default underline */
}

a.logout-btn:hover {
    background-color: #003366 !important;
    /* Blue hover color */
    text-decoration: none !important;
    /* Remove underline on hover */
    color: FFF;
    /* White text color */
}

/* Adjustments for the header section */
.header {
    text-align: left;
    /* Align text to the left */
    margin-bottom: 20px;
    /* Add margin space at the bottom */
}

.header p {
    color: #cccccc;
    /* Light gray text color */
    text-align: left;
    /* Align text to the left */
    margin-bottom: 10px;
    /* Add margin space at the bottom */
}

.header-title {
    color: #5bc0de;
    /* Light blue color for the headers */
    text-align: left;
}

.events-header {
    color: #5bc0de;
    /* Light blue color for headers */
    text-align: left;
    /* Align headers to the left */
}

/* Styles for birthday and milestone headers */
.birthday-header,
.milestone-header {
    color: #5bc0de;
    /* Light blue color for headers */
    text-align: left;
    /* Align headers to the left */
    margin-top: 20px;
    /* Add margin space at the top */
}

/* Styles for birthday and milestone lists */
.birthday-list,
.milestone-list {
    margin: 0;
    /* Remove default margin */
    padding: 0;
    /* Remove default padding */
}

/* Styles for birthday and milestone items */
.birthday-item,
.milestone-item {
    padding-left: 20px;
    /* Add left padding */
    text-indent: -20px;
    /* Adjust indentation */
}

.return-link {
    padding: 7px;
    color: #FFF;
    cursor: pointer;
    background-color: #0757A7;
    border: none;
    margin: 4px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    font-family: 'Fjalla One', sans-serif;
}

.return-link:hover {
    padding: 7px;
    color: #000;
    cursor: pointer;
    background-color: #4CAF50;
    border: none;
    margin: 4px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    font-family: 'Fjalla One', sans-serif;
    /* Apply Antonio font */
    white-space: nowrap;
}

/* Styling for button groups */
.button-group {
    padding-top: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

.success-message,
.error-message {
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: white !important;
    padding: 12px;
    margin-bottom: 20px;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    border-radius: 5px;
    animation: fadeIn 0.4s ease-out, fadeOut 0.6s ease-in 3s forwards;
}

.success-message {
    background-color: #4CAF50 !important;
}

.error-message {
    background-color: red !important;
}


/* Table */
.crew-points-table {
    width: 100%;
    border-collapse: collapse;
}

.crew-points-table th,
.crew-points-table td {
    border: 2px solid #000000;
    padding: 10px;
    text-align: center;
}

.crew-points-table th {
    background-color: #003366;
    color: #ffffff;
}

.crew-points-table tr:nth-child(even) {
    background-color: #112337;
    /* Darker blue for even rows */
}

.crew-points-table tr:nth-child(odd) {
    background-color: #0b1723;
    /* Lighter blue for odd rows */
}

.crew-points-table td {
    color: #ffffff;
}

.milestones-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.milestones-table th,
.milestones-table td {
    padding: 10px;
    border: 1px solid #007bff;
    color: #ffffff;
}

.milestones-table th {
    background-color: #003366;
}


.milestones-table tr:nth-child(even) {
    background-color: #1a1a1a;
}

.uniforms-container {
    width: 80%;
    margin: 0 auto;
    padding-top: 20px;
}

.uniform-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;

}

.uniform-list li {
    width: 150px;
    /* Increased width to allow for more details */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.uniform-list li.dragging {
    opacity: 0.5;
    height: 220px;
    /* Matches the normal height to avoid jumping */
}

.uniform-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.uniform-image {
    border-radius: 5px;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.uniform-details h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.uniform-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

/* Styles for the Photo Upload page */
.photo-btn {
    display: block;
    width: 130px;
    padding: 10px;
    color: #FFF;
    cursor: pointer;
    background-color: #003C7D;
    border: none;
    margin: 10px auto;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    font-family: 'Fjalla One', sans-serif;
}

.photo-btn:hover {
    background-color: #45a049;
}

.instruction {
    text-align: center;
    color: orange;
    margin-top: 10px;
}

.cr-slider {
    background: #003C7D;
    border-radius: 10px;
    border: 1px solid white;
}

.sortable-item {
    cursor: move;
}

.btn-save-order {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    display: block;
    width: 100%;
}

.btn-save-order:hover {
    background-color: #0056b3;
}

.admin-settings-wrapper {
    margin: 20px;
    padding: 20px;
    background-color: #000;
}

.admin-settings-wrapper h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.admin-settings-wrapper .form-group {
    margin-bottom: 15px;
}

.admin-settings-wrapper .btn {
    margin-top: 15px;
}

.skyblue {
    color: #87CEEB;
    /* Sky Blue Color */
}

.birthday-notification {
    display: flex;
    /* Use Flexbox */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    font-size: 20px;
    color: #FFF;
    /* Orange Red for visibility */
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    border-style: dotted;
    background-color: #002042;
    /* Cornsilk */
    border-radius: 14px;
}

.dotted-rainbow-pulse-border {
    border: 10px dotted;
    /* Dotted border style */
    animation: rainbowPulse 5s infinite;
    /* Slower animation */
}

@keyframes rainbowPulse {
    0% {
        border-color: #FF0000;
    }

    /* Red */
    16% {
        border-color: #FF7F00;
    }

    /* Orange */
    33% {
        border-color: #FFFF00;
    }

    /* Yellow */
    50% {
        border-color: #00FF00;
    }

    /* Green */
    66% {
        border-color: #0000FF;
    }

    /* Blue */
    83% {
        border-color: #4B0082;
    }

    /* Indigo */
    100% {
        border-color: #9400D3;
    }

    /* Violet */
}

.panel a.active,
.menu a.dashboard-button.active {
    background-color: #3c653e;
    /* A nice blue, or any color you prefer */
    color: white !important;
    /* Ensures the text is readable */
    font-weight: normal;
}

.panel a.active,
.menu a.dashboard-button.active {
    background-color: #3c653e;
    color: white !important;
    font-weight: normal;
}

.accordion.active,
.accordion2.active {
    background-color: #007BFF;
    color: white;
}

/* Base styles for Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #002042;
    color: #fff;
    border: 6px solid #007BFF;
    border-radius: 13px;
    padding: 4px 12px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    display: none;
    cursor: pointer;
    z-index: 9000;
    transition: opacity 0.3s ease;
    opacity: 0.3;
    font-family: 'Fjalla One', sans-serif;
}

.back-to-top:hover {
    opacity: 0.8;
    color: #fff
}

.award-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px 0;
    margin-top: 20px;
    color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

/* Rounded corners on the table header cells */
.award-table th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.award-table th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Rounded corners on table body cells */
.award-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.award-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.award-table th {
    background-color: #003C7D;
    color: #99CCFF;
    padding: 10px 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #4CAF50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.award-table th:nth-child(1),
.award-table th:nth-child(2) {
    text-align: center;
}

.award-table td {
    padding: 8px 15px;
    font-size: 13px;
    vertical-align: top;
    vertical-align: middle;
}

.award-table .even-row {
    background-color: rgba(0, 51, 102, 0.3);
}

.award-table .odd-row {
    background-color: rgba(0, 32, 66, 0.3);
}

.award-table tbody tr:hover {
    background-color: #0757A7;
}

.award-table .award-name {
    font-weight: bold;
    color: #c0c0c0;
    width: 70%;
    text-align: left;
}

.award-table .award-date {
    text-align: center;
    width: 30%;
    color: #a0aec0;
}

.award-image-table {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
}

.award-name-cell {
    text-align: left;
    vertical-align: middle;
}

.award-date {
    text-align: center;
    vertical-align: middle;
}

.award-image-cell {
    text-align: center;
    vertical-align: middle;
}

.award-image {
    width: 80px;
    /* or whatever fits your table */
    height: 80px;
    object-fit: contain;
    /* preserves aspect ratio */
    display: block;
    margin: 0 auto;
}


.tribbon-rack-header {
    margin: 20px 0 10px 0;
    font-size: 18px;
    color: #99CCFF;
    font-weight: bold;
}

/* --- RESPONSIVE MOBILE MENU --- */

/* 1. DEFAULT STATE (DESKTOP)
   ---------------------------------
   By default, the mobile-only buttons are hidden. */

.menu-toggle,
.menu-close {
    display: none;
}

#toggleViewAsBtn {
    position: relative;
    top: -75px;
}

/* ---------------------------------------------------------------------- */
/* Mobile Menu Button Sizing and Placement */
/* ---------------------------------------------------------------------- */
@media (max-width: 768px) {


    /* Ensure content is stacked vertically */
    .main-content {
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
    }

    .menu-toggle {

        /* SIZE: Apply 90% width and increase height via padding/font */
        width: 95%;
        font-size: 22px;
        padding: 10px 10px;
        font-family: 'Exo 2', sans-serif;
        align-self: center;

        /* Appearance */
        background-color: #0757A7;
        color: #f1f5f9;
        border: 0px solid #000;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;

        /* Margins */
        margin-bottom: 15px;
        margin-top: 0px;

        /* Clean-up for browser consistency */
        display: block;
        /* Use block to correctly respect the 90% width */
        height: auto;
        line-height: normal;
        text-align: center;
        z-index: auto;
        top: auto;
        right: auto;
    }

    .zoom-btn:hover {
        background-color: #4CAF50;
        transform: scale(1.1);
        border: 0px;
        border-radius: 12px;
        cursor: pointer;
    }

    #toggleViewAsBtn {
        position: relative;
        top: -15px;
    }

    .back-to-top {
        font-size: 16px;
        padding: 6px 12px;
        opacity: 0.5;
        border-radius: 13px;
        font-family: 'Fjalla One', sans-serif;
    }

    .member-profile {
        flex-direction: column;
        align-items: center;
        /* Center the image and info block */
        text-align: center;
        /* Center the text within the info block */
        gap: 0;
    }

    .button-group {
        flex-direction: column !important;
        align-items: center;
    }

    .return-link {
        width: 100% !important;
        white-space: normal;
    }

    .profile-info {
        margin-left: 0;
        text-align: center;
    }

    .tab {
        flex-direction: column;
        align-items: center;
        margin-top: -100px
    }

    .tab button {
        width: 100% !important;
        /* Make each button span most of the screen */
        margin: 0px 0;
        padding: 5px;
    }

    /* --- SLIDE-OUT MENU PANEL --- */
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        /* Covers 90% of the screen width */
        max-width: 100%;
        /* But won't get wider than 320px */
        height: 100%;
        background: #000;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 60px;
        /* Add space at the top for the close button */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        flex: none;
        /* Override desktop flex property */
    }

    /* This class is added by JavaScript to show the menu */
    .menu.is-open {
        transform: translateX(0);
    }

    /* --- 'X' CLOSE BUTTON --- */
    .menu-close {
        display: block;
        position: absolute;
        border: none;
        top: 15px;
        right: 20px;
        background: transparent;
        color: #ffffff;
        font-size: 2.5rem;
        line-height: 1;
        cursor: pointer;
        z-index: 1010;
    }

    /* --- LINKS INSIDE THE SLIDE-OUT MENU --- */
    .menu .accordion,
    .menu .accordion2,
    .menu a {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 15px 20px;
    }

    .menu .panel,
    .menu .panel2 {
        padding-left: 0;
    }

    .menu .panel a,
    .menu .panel2 a {
        text-align: center;
        /* Add this to center the text */
    }

    /* --- LAYOUT HELPERS --- */
    .main-content {
        flex-basis: 100%;
        /* Ensure main content takes full width */
    }

    .body-no-scroll {
        overflow: hidden;
        /* Prevent page scroll when menu is open */
    }
}
/* ==========================================================================
   GLOBAL TYPHON UI COMPONENTS (Standardized from Sandbox)
   ========================================================================== */

/* Cards & Panels */
.ty-card {
    background: linear-gradient(180deg, rgba(0, 60, 125, 0.20) 0%, rgba(0, 20, 40, 0.32) 100%);
    border: 1px solid rgba(0, 170, 255, 0.28);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    color: #ffffff;
    padding: 22px;
}

/* Tables */
.ty-table {
    border-collapse: collapse;
    color: #fff;
    background: rgba(0, 20, 40, 0.5);
    border-radius: 0;
    overflow: hidden;
    font-size: 14px;
    width: 100%;
}
.ty-table thead {
    background: #002142;
}
    .ty-table th {
        font-family: 'Fjalla One', sans-serif;
        text-transform: uppercase;
        padding: 12px 15px;
        text-align: left;
        color: #9edfff;
        border-bottom: 2px solid #0757a7;
        border-radius: 0; /* square top corners */
    }

/* Center Species Name column header */
.species-table th.sortable#sort-by-name {
    text-align: center;
}

    .ty-table td {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left; /* ensure left justification */
    }

/* Center Species Name column data */
.species-table td:nth-child(2) {
    text-align: center;
}
.ty-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}
.ty-table tbody tr:hover {
    background: rgba(0, 170, 255, 0.08);
}

.sub-header {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Fjalla One', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    text-align: left;
    color: #9edfff; /* Sleek, bright blue */
    letter-spacing: 1.5px;
    margin: 12px 0 16px 0;
    padding: 0 0 8px 0; /* Only bottom padding */
    border: none;
    background: transparent;
    border-bottom: 1px solid rgba(0, 170, 255, 0.15); /* Faint full-width baseline */
    position: relative;
}

/* Futuristic glowing accent line */
.sub-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 1px;
    background: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

h1.sub-header,
.sub-header.h1 {
    font-size: 24px;
    margin: 16px 0 16px 0;
}

h2.sub-header,
.sub-header.h2 {
    font-size: 20px;
    margin: 12px 0 16px 0;
}

h3.sub-header,
.sub-header.h3 {
    font-size: 16px;
    margin: 8px 0 12px 0;
}

/* Badges */
.ty-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: normal;
    font-family: 'Fjalla One', sans-serif;
    text-transform: uppercase;
    border-radius: 4px;
    background: #0757a7;
    color: #fff;
    letter-spacing: 0.5px;
}

.ty-badge-success { background: #4caf50; }
.ty-badge-danger { background: #dc3545; }

/* Alerts / Flash Messages */
.ty-alert {
    padding: 15px 20px;
    border-radius: 8px;
    background: rgba(0, 170, 255, 0.1);
    border-left: 4px solid #00aaff;
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
}
.ty-alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
}
.ty-alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

/* Form Controls */
.ty-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

/* Compatibility: generic .form-group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.ty-label {
    color: #bfe7ff;
    font-size: 13px;
    font-weight: 600;
}
.ty-input, .ty-select {
    background: rgba(0, 12, 24, 0.6);
    border: 1px solid rgba(0, 170, 255, 0.3);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

/* Quick search input full rounded corners */
.ty-panel-body input#member_search.ty-input {
    border-radius: 8px;
}
.ty-input:focus, .ty-select:focus {
    border-color: #4bfe7d;
    box-shadow: 0 0 8px rgba(75, 254, 125, 0.25);
    outline: none;
}
.ty-select option {
    background: #001224;
    color: #fff;
}

/* Panels (Structured Dashboard Widgets) */
.ty-panel {
    display: flex;
    flex-direction: column;
    gap: 4px; /* The black gap between stacked parts */
    margin-bottom: 20px;
}

.ty-panel-header {
    /* existing styles unchanged */
    background: #002142;
    border: 1px solid rgba(0, 170, 255, 0.28);
    border-radius: 8px 8px 0 0; /* Outer curves, inner right angles */
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ty-panel-title {
    margin: 0;
    color: #bfe7ff;
    font-family: 'Fjalla One', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ty-panel-body {
    background: linear-gradient(180deg, rgba(0, 20, 40, 0.4) 0%, rgba(0, 10, 20, 0.6) 100%);
    border: 1px solid rgba(0, 170, 255, 0.28);
    border-radius: 0 0 8px 8px; /* Inner right angles, outer curves */
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    color: #ffffff;
    overflow: visible; /* Allow inner elements like the quick search input to display full border radius */
}
