/* 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('https://thety.org/roster/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 {
    background-color: #45a049; /* Green hover background */
    color: #000 !important; /* Black hover text */
    text-decoration: none;
}

.main-header {
  font-family: 'Fjalla One', sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
  border-bottom: 3px solid #ffcc00;
  padding-bottom: 6px;
  margin-top: 20px;
  margin-bottom: 50px;
  letter-spacing: 1px;
  border-left: 3px solid #ffcc00;
  padding-left: 15px;
}

/* Base header style */
.sub-header { font-family: 'Fjalla One', sans-serif; font-size: 16px; text-transform: uppercase; text-align: left; color: #fff; border-left: 3px solid #4CAF50; padding-left: 15px; padding-bottom: 4px; margin-top: 40px; margin-bottom: 12px; letter-spacing: 1px; border-bottom: 2px solid #4CAF50; }
.sub-header.h1, h1.sub-header {
  font-size: 24px;
  margin-top: 50px;
  margin-bottom: 20px;
}

.sub-header.h2, h2.sub-header {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.sub-header.h3, h3.sub-header {
  font-size: 16px;
  margin-top: 0px;
  margin-bottom: 12px;
}

/* 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[type="password"] {
    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 button {
    display: block;
    width: auto;
    padding: 7px;
    color: #FFF;
    cursor: pointer;
    background-color: #003C7D;
    border: none;
    margin: 4px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    font-family: 'Fjalla One', sans-serif;
    white-space: nowrap;
}
.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; }

a.login-button {
    display: block;
    width: 140px;
    padding: 7px;
    color: #FFF;
    cursor: pointer;
    background-color: #0757A7;
    border: none;
    margin: 5px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    font-family: 'Fjalla One', sans-serif; 
    white-space: nowrap;
}

a.login-button:hover {
    background-color: #4CAF50;
    text-decoration: none !important; 
    border: none;
    outline: none;
    border-radius: 6px;
    color: #000;
}

.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 {
    position: relative;
    bottom: -67px; 
    width: max-content;
    height: 40px;
    z-index: 100; 
    font-family: 'Antonio', sans-serif;
    font-weight: bold;
    font-size: 17px; 
    color: #FFCC00;
    background-color: #000000;
    text-align: center; 
    line-height: 48px; 
    padding-left: 15px;
    padding-right: 15px;
}

.footer-text .white-dot { color: #FFFFFF; }

.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;
}

.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 (High Specificity Fix)
   ======================================================= */

/* --- 4. CHIEF LINKS (Hollow White -> Solid White) --- */
/* Target: Department Admin Tools */

/* Base State (Hollow) */
a.menu-link-chief,
button.accordion.menu-item-chief {
    background-color: #000000 !important;
    border: 2px solid #DDDDDD !important; /* Silver Border */
    color: #DDDDDD !important;            /* Silver Text */
}

/* Hover/Active State (Solid White) */
/* Added .panel to increase priority over default styles */
.panel a.menu-link-chief:hover, 
.panel a.menu-link-chief.active,
button.accordion.menu-item-chief:hover,
button.accordion.menu-item-chief.active {
    background-color: #FFFFFF !important;
    color: #000000 !important;            /* FORCE BLACK TEXT */
    border-color: #FFFFFF !important;
}


/* --- 5. STAFF LINKS (Hollow Red -> Solid Red) --- */
/* Target: Command/Destructive Tools */

/* Base State (Hollow) */
a.menu-link-staff,
button.accordion.menu-item-staff {
    background-color: #000000 !important;
    border: 2px solid #CC0000 !important; /* Red Border */
    color: #FF6666 !important;            /* Light Red Text */
}

/* Hover/Active State (Solid Red) */
.panel a.menu-link-staff:hover, 
.panel a.menu-link-staff.active,
button.accordion.menu-item-staff:hover,
button.accordion.menu-item-staff.active {
    background-color: #CC0000 !important;
    color: #FFFFFF !important;            /* FORCE WHITE TEXT */
    border-color: #CC0000 !important;
}


/* --- 6. BADGE STYLE & INVERSION --- */
.badge {
    background-color: #CC0000;
    color: #FFF;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    
    /* Position Logic */
    position: absolute;
    right: 4px;       
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Invert Badge Color on Red Backgrounds */
.panel a.menu-link-staff:hover .badge,
.panel a.menu-link-staff.active .badge,
button.accordion.menu-item-staff:hover .badge,
button.accordion.menu-item-staff.active .badge {
    background-color: #FFFFFF;
    color: #CC0000;
}

/* --- 7. BADGE STYLE --- */
.badge {
    background-color: #CC0000;
    color: #FFF;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 5px;
    
    /* Absolute Positioning */
    /* This allows the Button Text to remain centered while the badge sticks to the right */
    position: absolute;
    right: -8px;       /* Fixed distance from the right edge */
    top: 50%;         /* Center vertically */
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Slight shadow for readability */
}

/* --- BADGE INVERSION (Crucial) --- */
/* When a Staff button turns Solid Red, the Badge must turn White */
a.menu-link-staff:hover .badge,
a.menu-link-staff.active .badge,
button.accordion.menu-item-staff:hover .badge,
button.accordion.menu-item-staff.active .badge {
    background-color: #FFFFFF;
    color: #CC0000;
    box-shadow: none;
}

/* =======================================================
   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; /* 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.dashboard-button:hover {
    background-color: #2E87DF !important; /* Blue hover color */
    text-decoration: none !important; /* Remove underline on hover */
    color: #000;
}

.dashboard-button2 {
    display: inline-block;
    padding: 5px 30px;
    margin-top: 25px;
    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; /* 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.roster-button:hover {
    background-color: #4CAF50 !important; /* Blue hover color */
    text-decoration: none !important; /* Remove underline on hover */
}

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 h2 {
    color: #87CEEB; /* Light blue color for headers */
    text-align: center; /* Align headers to the left */
}

.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;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .main-header {
      font-family: 'Fjalla One', sans-serif;
      font-size: 22px;
      text-transform: uppercase;
      text-align: left;
      color: #fff;
      border-bottom: 3px solid #ffcc00;
      padding-bottom: 6px;
      margin-top: 20px;
      margin-bottom: 50px;
      letter-spacing: 1px;
      border-left: 3px solid #ffcc00;
      padding-left: 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 */
    }
}