/* manning/assets/css/manning.css */

:root {
  /* Color Canvas Tokens */
  --bg-deep-sea: #061221;       /* Rich SeaTusker dark navy base */
  --bg-panel: rgba(15, 27, 44, 0.6); /* Translucent glass panel background */
  --border-glow: rgba(0, 212, 255, 0.08);
  
  /* Text Priority Map */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  /* STATE-DEPENDENT COLOR ALGORITHMS */
  /* 1. Status: Under Review / Pending */
  --color-review: #f59e0b;       /* Amber Gold */
  --bg-review: rgba(245, 158, 11, 0.05);
  --glow-review: 0 4px 20px rgba(245, 158, 11, 0.12);
  
  /* 2. Status: Approved / Ready to Join */
  --color-approved: #10b981;     /* Emerald Green */
  --bg-approved: rgba(16, 185, 129, 0.05);
  --glow-approved: 0 4px 20px rgba(16, 185, 129, 0.12);
  
  /* 3. Status: Blacklisted / Banned */
  --color-banned: #ef4444;       /* Crimson Red */
  --bg-banned: rgba(239, 68, 68, 0.05);
  --glow-banned: 0 4px 20px rgba(239, 68, 68, 0.15);
  
  /* 4. Status: Onboard / Sailing */
  --color-sailing: #00d4ff;      /* Electric Cyan */
  --bg-sailing: rgba(0, 212, 255, 0.05);
  --glow-sailing: 0 4px 20px rgba(0, 212, 255, 0.15);
}

/* --- Global Premium Canvas Base --- */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep-sea);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- 100% Offline Custom Layout Engine (Tailwind CDN Fallback) --- */

/* Display & Width/Height Utilities */
.block { display: block; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.w-20 { width: 5rem; }
.h-full { height: 100%; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; width: 100%; }
.max-w-lg { max-width: 32rem; width: 100%; }
.max-w-2xl { max-width: 42rem; width: 100%; }
.max-w-7xl { max-width: 80rem; width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Flexbox System */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.flex-grow { flex-grow: 1; }

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* Grid/Flex Spacing Gaps */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* Margin / Padding Spacers */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }

.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.p-20 { padding: 5rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-0.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-2\.5 { margin-right: 0.625rem; }
.ml-auto { margin-left: auto; }
.-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; }
.-mb-6 { margin-bottom: -1.5rem; }

/* Responsive Media Queries for Grids and Flexboxes */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:inline { display: inline !important; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .hidden.md\:flex { display: flex !important; }
}

/* Typography, Alignments & Priorities */
.text-xs { font-size: 0.75rem; }
.text-[9px] { font-size: 0.5625rem; }
.text-[10px] { font-size: 0.625rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.font-mono { font-family: 'Courier New', Courier, monospace; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Color Mappings */
.text-white { color: #ffffff; }
.text-gray-200 { color: #e2e8f0; }
.text-gray-300 { color: #cbd5e1; }
.text-gray-400 { color: #94a3b8; }
.text-gray-500 { color: #64748b; }
.text-gray-600 { color: #475569; }
.text-rose-400 { color: #fb7185; }
.text-rose-300 { color: #fda4af; }
.text-emerald-400 { color: #34d399; }
.text-emerald-100 { color: #ecfdf5; }
.text-amber-400 { color: #fbbf24; }
.text-amber-100 { color: #fef3c7; }
.text-red-500 { color: #ef4444; }
.text-red-200 { color: #fecaca; }

/* Backgrounds & Borders */
.bg-darker { background-color: #020a15; }
.bg-darker\/30 { background-color: rgba(2, 10, 21, 0.3); }
.bg-darker\/40 { background-color: rgba(2, 10, 21, 0.4); }
.bg-darker\/60 { background-color: rgba(2, 10, 21, 0.6); }
.bg-[#020a15] { background-color: #020a15; }
.bg-[#061221] { background-color: #061221; }
.bg-[#0b131f] { background-color: #0b131f; }
.bg-white\/1 { background-color: rgba(255, 255, 255, 0.01); }
.bg-white\/2 { background-color: rgba(255, 255, 255, 0.02); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-accent\/10 { background-color: rgba(0, 212, 255, 0.1); }
.bg-accent\/15 { background-color: rgba(0, 212, 255, 0.15); }
.bg-accent { background-color: var(--color-sailing) !important; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-rose-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-red-950\/20 { background-color: rgba(69, 10, 10, 0.2); }
.bg-red-950\/40 { background-color: rgba(69, 10, 10, 0.4); }
.bg-red-950\/80 { background-color: rgba(69, 10, 10, 0.8); }

.border { border: 1px solid rgba(255, 255, 255, 0.08); }
.border-transparent { border: 1px solid transparent; }
.border-glassBorder { border-color: rgba(255, 255, 255, 0.08); }
.border-glassBorder\/50 { border-color: rgba(255, 255, 255, 0.04); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/8 { border-color: rgba(255, 255, 255, 0.08); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-accent\/20 { border-color: rgba(0, 212, 255, 0.2); }
.border-accent\/25 { border-color: rgba(0, 212, 255, 0.25); }
.border-accent\/30 { border-color: rgba(0, 212, 255, 0.3); }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2); }
.border-rose-500\/20 { border-color: rgba(239, 68, 68, 0.2); }
.border-amber-500\/20 { border-color: rgba(245, 158, 11, 0.2); }
.border-red-500\/20 { border-color: rgba(239, 68, 68, 0.2); }
.border-red-500\/25 { border-color: rgba(239, 68, 68, 0.25); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows & Highlights */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); }
.shadow-cardGlow { box-shadow: 0 8px 32px 0 rgba(0, 212, 255, 0.04); }
.shadow-accentGlow { box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); }

/* Sticky and Navigation layouts */
nav.glass-panel {
    background: rgba(6, 12, 20, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    height: 4rem;
}

.max-w-7xl.mx-auto {
    width: 100%;
}

.flex.items-center.justify-between.h-16 {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Premium Semantic Dashboard Architecture --- */

/* Glass Panels */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow);
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 10px 35px rgba(0, 212, 255, 0.04);
}

/* State-Dependent Cards */
.glass-card-review { 
    border-top: 3px solid var(--color-review); 
}
.glass-card-review:hover {
    border-color: var(--color-review);
    box-shadow: var(--glow-review);
    transform: translateY(-2px);
}

.glass-card-approved { 
    border-top: 3px solid var(--color-approved); 
}
.glass-card-approved:hover {
    border-color: var(--color-approved);
    box-shadow: var(--glow-approved);
    transform: translateY(-2px);
}

.glass-card-banned { 
    border-top: 3px solid var(--color-banned); 
}
.glass-card-banned:hover {
    border-color: var(--color-banned);
    box-shadow: var(--glow-banned);
    transform: translateY(-2px);
}

.glass-card-sailing { 
    border-top: 3px solid var(--color-sailing); 
}
.glass-card-sailing:hover {
    border-color: var(--color-sailing);
    box-shadow: var(--glow-sailing);
    transform: translateY(-2px);
}

/* Highlight tags */
.text-accent { 
    color: var(--color-sailing); 
}

/* Dynamic Inputs */
.glass-input {
    background: rgba(2, 10, 21, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.glass-input:focus {
    border-color: var(--color-sailing) !important;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
    outline: none;
}

select.glass-input option {
    background-color: #061221;
    color: #ffffff;
}

/* Premium Navigation Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-sailing) 0%, #00a7ff 100%);
    color: #061221;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    border-color: transparent;
    cursor: not-allowed;
}

.btn-danger {
    background: var(--bg-banned);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-banned);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ffffff;
    border-color: var(--color-banned);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Roster Tables & Grids */
.manning-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
}

.manning-table th {
    background: rgba(2, 10, 21, 0.4);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.manning-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    transition: all 0.2s ease;
}

.manning-table tr:hover td {
    background: rgba(255, 255, 255, 0.015) !important;
}

/* Compliance Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}

.badge-review {
    background: var(--bg-review);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--color-review);
}
.badge-review.cursor-pointer:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: scale(1.02);
}

.badge-approved {
    background: var(--bg-approved);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-approved);
}
.badge-approved.cursor-pointer:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.02);
}

.badge-banned {
    background: var(--bg-banned);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-banned);
}

.badge-sailing {
    background: var(--bg-sailing);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--color-sailing);
}
.badge-sailing.cursor-pointer:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.02);
}

/* Master Blacklist Warning Roadblocks */
.banned-card {
    background: rgba(239, 68, 68, 0.04) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    max-width: 32rem;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: auto;
}

.banned-card h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.banned-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.alert-icon {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-family: 'Outfit', sans-serif;
    color: var(--color-banned);
}

.routing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Modals & Dialog overlays */
.fixed.inset-0 {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bg-\[\#020a15\]\/80 {
    background-color: rgba(2, 10, 21, 0.75);
}

/* Dynamic Slide-Over Modals */
#manning-modal .glass-panel {
    border-radius: 1.5rem 0 0 1.5rem !important;
    height: 100vh;
}

/* Gantt-style matrix timeline grids */
.min-w-\[900px\] {
    min-width: 900px;
}

.min-h-\[80px\] {
    min-height: 80px;
}

.min-h-\[60px\] {
    min-height: 60px;
}

.border-dashed {
    border-style: dashed;
}

/* Roster container for responsive scrolling */
.overflow-x-auto {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* --- Premium Micro-Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep-sea);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-sailing);
}

/* Chrome/Safari Autofill Text & Background Overrides */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border: 1px solid var(--color-sailing) !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #020a15 inset !important;
  transition: background-color 5000s ease-in-out 0s;
  color: #ffffff !important;
}

/* Strict Global Contrast Rules for Manual Input Typing */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea {
    color: #ffffff !important;
    background-color: #020a15 !important;
}

input[type="date"] {
    background-color: #020a15 !important;
    color: #ffffff;
}

input[type="date"]::-webkit-datetime-edit {
    color: #ffffff !important;
}

select {
    color: #ffffff !important;
    background-color: #020a15 !important;
}

/* Fix for native option list dropdown white-on-white visibility */
select option {
    color: #0f172a !important; /* Slate 900 for absolute contrast on native white dropdown lists */
    background-color: #ffffff !important;
}

/* --- Premium SaaS Sidebar Layout Mappings --- */
.admin-layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.admin-sidebar {
    width: 260px;
    background: rgba(6, 12, 20, 0.75);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.25rem;
    z-index: 45;
}

.admin-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-deep-sea);
}

/* Mobile Header bar */
.mobile-header {
    height: 4rem;
    background: rgba(6, 12, 20, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    flex-shrink: 0;
}

.mobile-header-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Sidebar Drawer Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 10, 21, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
}

.mobile-sidebar-drawer {
    width: 280px;
    height: 100%;
    background: #061221;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.25rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sidebar-overlay.active .mobile-sidebar-drawer {
    transform: translateX(0);
}

/* Sidebar Menu Typography and Styling */
.sidebar-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding-left: 0.5rem;
}

.sidebar-user-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    padding: 0.85rem;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.sidebar-link i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
    color: var(--color-sailing) !important;
    background: rgba(0, 212, 255, 0.06) !important;
    border-color: rgba(0, 212, 255, 0.15) !important;
}

/* Utilities for Layout Hide/Show */
.lg\:flex { display: none; }
.lg\:hidden { display: flex; }

@media (min-width: 1024px) {
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
    .admin-content-wrapper {
        height: 100vh;
        overflow-y: auto;
        margin-left: 260px;
    }
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES
   ========================================== */

@media (max-width: 1024px) {
    /* 1. Reset admin layouts on tablets/mobile */
    .admin-layout-wrapper {
        flex-direction: column;
    }
    
    .admin-content-wrapper {
        min-height: calc(100vh - 4.5rem);
    }
    
    /* 2. Responsive padding for main content wrapper */
    main.max-w-7xl {
        padding: 1.5rem 1rem !important;
    }
}

@media (max-width: 768px) {
    /* 3. Global Typography and Spacing scale down */
    body {
        font-size: 0.9rem;
    }

    h1, .text-3xl {
        font-size: 1.75rem !important;
        line-height: 1.25;
    }

    h2, .text-2xl {
        font-size: 1.35rem !important;
        line-height: 1.3;
    }

    /* 4. Optimize form controls and button padding on mobile */
    .glass-input {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .btn-primary, .btn-secondary, .btn-danger {
        padding: 0.75rem 1.25rem;
        font-size: 0.75rem;
    }

    /* 5. Clean up table cell padding to maximize horizontal density */
    .manning-table th, .manning-table td {
        padding: 0.75rem 0.85rem;
        font-size: 0.8rem;
    }

    /* 6. Adapt cards and general padding */
    .glass-panel {
        padding: 1.25rem !important;
        border-radius: 1rem;
    }
    
    /* Login & Register container specific padding reset */
    .w-full.max-w-md.glass-panel {
        padding: 2rem 1.5rem !important;
    }

    .banned-card {
        padding: 2rem 1.5rem !important;
        border-radius: 1.25rem;
    }
    
    /* 7. Align dashboard header widgets vertically on mobile */
    .flex-col-mobile-stack {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
}

@media (max-width: 640px) {
    /* 8. Collapse rigid grid columns into single-column layout */
    .grid:not(.grid-cols-7):not(.grid-cols-3) {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    /* 9. Render detail slide-over modals full-screen on mobile viewports */
    #manning-modal .glass-panel {
        border-radius: 0 !important;
        height: 100vh !important;
        width: 100% !important;
        max-w-full !important;
        border-left: none !important;
    }
    
    /* 10. Stack navigation controls and titles */
    .flex.justify-between.items-center.flex-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem;
    }
    
    .flex.justify-between.items-center.flex-wrap > * {
        text-align: left !important;
    }
}

/* --- Missing Tailwind Width/Height & Layout Utility Fallbacks --- */
.w-10 { width: 2.5rem !important; }
.h-10 { height: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }
.w-16 { width: 4rem !important; }
.h-16 { height: 4rem !important; }
.w-20 { width: 5rem !important; }
.h-20 { height: 5rem !important; }
.w-\[150px\] { width: 150px !important; }
.h-\[150px\] { height: 150px !important; }
.min-w-\[1000px\] { min-width: 1000px !important; }
.min-h-\[90px\] { min-height: 90px !important; }
.min-h-\[70px\] { min-height: 70px !important; }
.max-h-\[160px\] { max-height: 160px !important; }
.max-h-\[350px\] { max-height: 350px !important; }
.max-h-\[400px\] { max-height: 400px !important; }
.max-h-\[90vh\] { max-height: 90vh !important; }
.md\:max-h-\[90vh\] { max-height: 90vh !important; }

/* Fixed aspect ratio & cover sizing for all images inside w/h containers to prevent enlargement */
.rounded-full.object-cover {
    object-fit: cover !important;
}
img.object-cover {
    object-fit: cover !important;
}

/* Button Visibility and Hover Color Utilities */
.text-black {
    color: #000000 !important;
}
.hover\:text-black:hover {
    color: #000000 !important;
}

/* Emerald / Green buttons */
.bg-emerald-500 {
    background-color: #10b981 !important;
}
.hover\:bg-emerald-600:hover {
    background-color: #059669 !important;
}
.hover\:bg-emerald-500:hover {
    background-color: #10b981 !important;
}
.hover\:bg-emerald-500\/20:hover {
    background-color: rgba(16, 185, 129, 0.2) !important;
}
.hover\:text-emerald-300:hover {
    color: #6ee7b7 !important;
}

/* Rose / Red buttons */
.bg-rose-600 {
    background-color: #e11d48 !important;
}
.hover\:bg-rose-700:hover {
    background-color: #be123c !important;
}
.border-rose-500\/30 {
    border-color: rgba(244, 63, 94, 0.3) !important;
}
.hover\:bg-rose-500\/20:hover {
    background-color: rgba(244, 63, 94, 0.2) !important;
}
.hover\:text-rose-300:hover {
    color: #fda4af !important;
}

/* Amber / Yellow buttons */
.border-amber-500\/30 {
    border-color: rgba(245, 158, 11, 0.3) !important;
}
.hover\:bg-amber-500\/20:hover {
    background-color: rgba(245, 158, 11, 0.2) !important;
}
.hover\:text-amber-300:hover {
    color: #fcd34d !important;
}

/* Blacklist buttons (Dark Red) */
.bg-red-950\/40 {
    background-color: rgba(69, 10, 10, 0.4) !important;
}
.bg-red-950\/60 {
    background-color: rgba(69, 10, 10, 0.6) !important;
}
.hover\:bg-red-950:hover {
    background-color: rgba(69, 10, 10, 1) !important;
}
.border-red-500\/30 {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Cyan / Blue buttons */
.bg-cyan-500\/10 {
    background-color: rgba(6, 182, 212, 0.1) !important;
}
.hover\:bg-cyan-500\/20:hover {
    background-color: rgba(6, 182, 212, 0.2) !important;
}
.text-cyan-400 {
    color: #22d3ee !important;
}
.hover\:text-cyan-300:hover {
    color: #67e8f9 !important;
}
.border-cyan-500\/20 {
    border-color: rgba(6, 182, 212, 0.2) !important;
}

/* ==========================================
   SEAFARER PORTAL TAB SYSTEM
   ========================================== */

/* Tab button base state */
.tab-btn {
    position: relative;
    padding: 0.5rem 0;
    padding-bottom: 0.6rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.01em;
}

.tab-btn:hover {
    color: #ffffff;
}

/* Active tab state */
.tab-btn.active,
.tab-btn.text-white.border-accent {
    color: #ffffff !important;
    border-bottom-color: var(--color-sailing) !important;
}

/* ==========================================
   RESPONSIVE GRID COLUMN SPANS
   ========================================== */

/* lg: col-span utilities (1024px+) */
.lg\\:col-span-5 { grid-column: span 12; }
.lg\\:col-span-7 { grid-column: span 12; }
.lg\\:col-span-12 { grid-column: span 12; }

@media (min-width: 1024px) {
    .lg\\:col-span-5 { grid-column: span 5; }
    .lg\\:col-span-7 { grid-column: span 7; }
    .lg\\:col-span-12 { grid-column: span 12; }

    .grid-cols-1.lg\\:grid-cols-12,
    .lg\\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

/* md: col-span utilities (768px+) */
.md\\:col-span-2 { grid-column: span 1; }

@media (min-width: 768px) {
    .md\\:col-span-2 { grid-column: span 2; }
    .md\\:max-w-lg { max-width: 32rem; width: 100%; }
    .md\\:rounded-2xl { border-radius: 1rem; }
    .md\\:my-8 { margin-top: 2rem; margin-bottom: 2rem; }
    .md\\:h-auto { height: auto; }
    .md\\:max-w-4xl { max-width: 56rem; width: 100%; }
    .md\\:p-4 { padding: 1rem; }
    .md\\:max-h-\\[90vh\\] { max-height: 90vh; }
}

/* ==========================================
   PORTAL LAYOUT UTILITIES
   ========================================== */
.bg-panel { background-color: rgba(15, 27, 44, 0.65); }

/* Portal max-width wrapper */
.max-w-6xl { max-width: 72rem; width: 100%; }

/* Justify-start flex */
.justify-start { justify-content: flex-start; }

/* Overflow Utilities */
.overflow-y-auto { overflow-y: auto; }
.overflow-hidden { overflow: hidden; }

/* Passport photo in portal profile tab */
.portal-passport-photo {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: rgba(2, 10, 21, 0.8);
    flex-shrink: 0;
}

.portal-passport-placeholder {
    width: 120px;
    height: 160px;
    border-radius: 8px;
    border: 2px dashed rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 10, 21, 0.6);
    color: rgba(0, 212, 255, 0.3);
    font-size: 2rem;
    flex-shrink: 0;
}

/* Flex-shrink-0 */
.flex-shrink-0 { flex-shrink: 0; }

/* sm: flex-row responsive */
.sm\\:flex-row { flex-direction: column; }
@media (min-width: 640px) {
    .sm\\:flex-row { flex-direction: row; }
    .sm\\:items-start { align-items: flex-start; }
    .sm\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Inline flex for badge utility */
.inline-flex { display: inline-flex; }

/* Extra font-mono colors */
.text-rose-200 { color: #fecaca; }
.text-emerald-200 { color: #a7f3d0; }

/* Border-b utility */
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }

/* Pt-2 utility */
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }

/* Pb utilities */
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }

/* mt-1 extra */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-0\\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\\.5 { margin-bottom: 0.375rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-1\\.5 { margin-left: 0.375rem; }

/* Hover bg utilities */
.hover\\:bg-white\\/2:hover { background-color: rgba(255,255,255,0.02) !important; }
.hover\\:bg-white\\/10:hover { background-color: rgba(255,255,255,0.1) !important; }
.hover\\:bg-accent\\/20:hover { background-color: rgba(0,212,255,0.2) !important; }
.hover\\:bg-cyan-400:hover { background-color: #22d3ee !important; }
.hover\\:bg-accent:hover { background-color: var(--color-sailing) !important; }
.hover\\:text-white:hover { color: #ffffff !important; }
.hover\\:border-accent:hover { border-color: var(--color-sailing) !important; }
.hover\\:underline:hover { text-decoration: underline; }

/* Transition */
.transition { transition: all 0.2s ease; }
.transition-all { transition: all 0.2s ease; }
.duration-300 { transition-duration: 0.3s; }

/* object-fit cover */
.object-cover { object-fit: cover; }

/* Width/height px utilities */
.w-\\[120px\\] { width: 120px !important; }
.h-\\[160px\\] { height: 160px !important; }

/* Rose backgrounds */
.bg-rose-500\\/5 { background-color: rgba(244, 63, 94, 0.05) !important; }
.bg-rose-950\\/15 { background-color: rgba(69, 10, 10, 0.15) !important; }
.bg-rose-950\\/20 { background-color: rgba(69, 10, 10, 0.2) !important; }

/* Cyan backgrounds */
.bg-cyan-500\\/5 { background-color: rgba(6, 182, 212, 0.05) !important; }
.bg-cyan-950\\/20 { background-color: rgba(8, 51, 68, 0.2) !important; }
.border-cyan-500\\/10 { border-color: rgba(6, 182, 212, 0.1) !important; }
.text-cyan-300 { color: #67e8f9 !important; }

/* Emerald backgrounds */
.bg-emerald-500\\/5 { background-color: rgba(16, 185, 129, 0.05) !important; }
.border-emerald-500\\/20 { border-color: rgba(16, 185, 129, 0.2) !important; }
.text-emerald-400 { color: #34d399 !important; }
.ring-1 { box-shadow: 0 0 0 1px var(--tw-ring-color); }
.ring-inset { --tw-ring-offset-shadow: inset 0 0 0 0px transparent; }
.ring-emerald-500\\/20 { --tw-ring-color: rgba(16, 185, 129, 0.2); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2); }
.ring-cyan-500\\/20 { box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.2); }

/* Amber text */
.text-amber-500 { color: #f59e0b !important; }

/* Animate utilities */
.animate-bounce { animation: bounce 1s infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(-10%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Purple color utilities */
.text-purple-400 { color: #c084fc !important; }
.bg-purple-500\\/10 { background-color: rgba(168, 85, 247, 0.1) !important; }
.border-purple-500\\/25 { border-color: rgba(168, 85, 247, 0.25) !important; }
.hover\\:bg-purple-500\\/20:hover { background-color: rgba(168, 85, 247, 0.2) !important; }

/* Prose flow text */
pre, code { font-family: 'Courier New', Courier, monospace; }

/* Table utilities */
.border-collapse { border-collapse: collapse; }
.divide-y > * + * { border-top: 1px solid rgba(255,255,255,0.05); }
.divide-white\\/5 > * + * { border-top: 1px solid rgba(255,255,255,0.05); }

/* Overflow y scroll */
.overflow-y-scroll { overflow-y: scroll; }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* Max width 4xl */
.max-w-4xl { max-width: 56rem; width: 100%; }
.max-w-xl { max-width: 36rem; width: 100%; }

/* Hover bg for table rows */
.hover\\:bg-white\\/2 { transition: background-color 0.15s ease; }
.hover\\:bg-white\\/2:hover { background-color: rgba(255,255,255,0.02) !important; }

/* --- Glowing Top Loading Bar & Transitions --- */
.top-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #6366f1, #00d4ff);
    background-size: 200% 100%;
    animation: loadingBar 1.5s infinite linear;
    z-index: 10000;
    width: 100%;
    transition: opacity 0.3s ease;
}

@keyframes loadingBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Page Fade-In micro-animation */
.page-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Premium Menu Bar Highlights --- */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-sailing);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}
.nav-link:hover::after, 
.nav-link.active::after {
    width: 80%;
}

.sidebar-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--color-sailing);
    transition: height 0.3s ease;
    border-radius: 0 4px 4px 0;
}
.sidebar-link:hover::before, 
.sidebar-link.active::before {
    height: 60%;
}
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    transform: translateX(3px);
}
.sidebar-link.active {
    background: rgba(0, 212, 255, 0.08) !important;
    color: var(--color-sailing) !important;
    box-shadow: inset 4px 0 0 -2px var(--color-sailing);
}

/* --- Premium Seafarer Profile Layout System --- */
.profile-card-header {
    background: linear-gradient(135deg, rgba(15, 27, 44, 0.8) 0%, rgba(6, 18, 33, 0.7) 100%) !important;
    border-color: rgba(0, 212, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 212, 255, 0.05);
}

.profile-avatar-frame {
    width: 120px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15), 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    background: rgba(2, 10, 21, 0.8);
    flex-shrink: 0;
}
.profile-avatar-frame:hover {
    border-color: var(--color-sailing);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
    transform: scale(1.02);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 160px;
    border-radius: 12px;
    border: 2px dashed rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 10, 21, 0.6);
    color: rgba(0, 212, 255, 0.3);
    font-size: 2.25rem;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.profile-data-card {
    background: rgba(15, 27, 44, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-data-card:hover {
    border-color: rgba(0, 212, 255, 0.1) !important;
    background: rgba(15, 27, 44, 0.5) !important;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.02);
}

.profile-data-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-sailing);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.profile-grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.profile-grid-item:last-child {
    border-bottom: none;
}
.profile-item-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.profile-item-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

/* Timeline experience blocks */
.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    margin-left: 0.5rem;
    padding-bottom: 1.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-sailing);
    box-shadow: 0 0 8px var(--color-sailing);
}
.timeline-item:last-child {
    border-left: none;
    padding-bottom: 0;
}
.timeline-item:last-child::before {
    left: -4px;
}

/* ==============================================================
   ADMIN DISTRIBUTION GRID & METRICS STYLE SYSTEM
   ============================================================== */
.metric-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, border-color, box-shadow;
}
.metric-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.08);
}
.metric-card-ready:hover {
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08);
}
.metric-card-sailing:hover {
    border-color: rgba(0, 212, 255, 0.3) !important;
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.08);
}
.metric-card-leave:hover {
    border-color: rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.08);
}

/* Manning Distribution Grid Table */
.manning-grid-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.manning-grid-table th {
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.manning-grid-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s ease;
}
.manning-grid-table tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Ranks styling */
.manning-rank-cell {
    font-weight: 700;
    color: #f1f5f9;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.01em;
}

/* Interactive cell counts (pills) */
.grid-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Outfit', 'Space Mono', monospace;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.grid-pill-zero {
    color: rgba(255, 255, 255, 0.1);
    background: transparent;
    font-weight: 400;
}
.grid-pill-zero::after {
    content: '-';
}
.grid-pill-active {
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.grid-pill-active:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}
.grid-pill-ready {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: #34d399 !important;
}
.grid-pill-ready:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25) !important;
}
.grid-pill-sailing {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.25) !important;
    color: #00d4ff !important;
}
.grid-pill-sailing:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25) !important;
}
.grid-pill-leave {
    background: rgba(245, 158, 11, 0.1) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    color: #fbbf24 !important;
}
.grid-pill-leave:hover {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25) !important;
}

/* Premium Drawer slide-in animation */
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.drawer-animate {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==============================================================
   RESPONSIVE SIDEBAR SCROLLING & FOOTER SYSTEM
   ============================================================== */
.sidebar-main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    /* Hide scrollbar for premium clutter-free console look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.sidebar-main-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    background: transparent !important;
}

/* Responsive Admin Panel Footer Layout */
.admin-footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}
@media (max-width: 768px) {
    .admin-footer-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}


