/* ===================================================================
   Vista Brain Dashboard — Galaxy ERP Suite
   Color: Galaxy Purple #7c3aed
   Prefix: .glx-
   =================================================================== */

/* ── Tab Navigation ─────────────────────────────────────────────── */
.glx-section { padding: 0; }

.glx-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
}

.glx-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    background: transparent;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.glx-tab:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(124,58,237,0.08);
}

.glx-tab.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

/* ── Pages ──────────────────────────────────────────────────────── */
.glx-page { padding: 24px; }
.glx-page.hidden { display: none; }

/* ── Schedule Header ────────────────────────────────────────────── */
.glx-schedule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.glx-schedule-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.glx-date-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.glx-date-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(124,58,237,0.15);
    color: #a78bfa;
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.glx-date-btn:hover {
    background: rgba(124,58,237,0.3);
    color: #c4b5fd;
}

.glx-date-input {
    padding: 6px 10px;
    font-size: 12px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
}

.glx-schedule-count {
    margin-left: auto;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ── Cruises Filter ─────────────────────────────────────────────── */
.glx-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.glx-filter-row label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ── Search ─────────────────────────────────────────────────────── */
.glx-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.glx-search-input {
    flex: 1;
    max-width: 400px;
    padding: 10px 16px;
    font-size: 14px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.glx-search-input:focus {
    outline: none;
    border-color: #7c3aed;
}

.glx-search-input::placeholder { color: rgba(255,255,255,0.3); }

.glx-search-btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.glx-search-btn:hover { background: #6d28d9; }

.glx-search-count {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-left: auto;
}

/* ── Tables ─────────────────────────────────────────────────────── */
.glx-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}

.glx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.glx-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    background: rgba(124,58,237,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.glx-table tbody td {
    padding: 10px 14px;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.glx-table tbody tr:hover {
    background: rgba(124,58,237,0.06);
}

.glx-cruise-row { cursor: pointer; }
.glx-cruise-row:hover { background: rgba(124,58,237,0.12) !important; }

.glx-mono {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 12px;
}

/* ── Badges ─────────────────────────────────────────────────────── */
.glx-type-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(124,58,237,0.15);
    color: #a78bfa;
    border-radius: 4px;
    white-space: nowrap;
}

.glx-boat-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(59,130,246,0.15);
    color: #93c5fd;
    border-radius: 4px;
}

/* ── Occupancy ──────────────────────────────────────────────────── */
.glx-occ {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.glx-occ-full { background: rgba(239,68,68,0.2); color: #fca5a5; }
.glx-occ-med  { background: rgba(245,158,11,0.2); color: #fcd34d; }
.glx-occ-low  { background: rgba(34,197,94,0.2);  color: #86efac; }

/* ── Fleet Grid ─────────────────────────────────────────────────── */
.glx-fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.glx-boat-card {
    padding: 24px;
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.2s;
}

.glx-boat-card:hover { border-color: #7c3aed; }

.glx-boat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124,58,237,0.15);
    border-radius: 12px;
    color: #a78bfa;
}

.glx-boat-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.glx-boat-detail {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.glx-boat-detail strong { color: #a78bfa; }

/* ── Stats Grid ─────────────────────────────────────────────────── */
.glx-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.glx-stat-card {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    text-align: center;
}

.glx-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.glx-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.glx-status-ok { color: #22c55e; }
.glx-status-err { color: #ef4444; }

/* ── Modal (Passengers) ─────────────────────────────────────────── */
.glx-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.glx-modal.hidden { display: none; }

.glx-modal-content {
    width: 90%;
    max-width: 1100px;
    max-height: 80vh;
    background: #1a1a2e;
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glx-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.glx-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.glx-modal-count {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.glx-modal-close {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.glx-modal-close:hover { background: rgba(255,255,255,0.1); }

.glx-modal-body {
    overflow-y: auto;
    padding: 0;
    flex: 1;
}

/* ── Utility ────────────────────────────────────────────────────── */
.glx-loading, .glx-empty, .glx-error {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

.glx-error { color: #fca5a5; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .glx-tabs { padding: 12px 16px 0; }
    .glx-page { padding: 16px; }
    .glx-schedule-header { flex-direction: column; align-items: flex-start; }
    .glx-fleet-grid { grid-template-columns: 1fr 1fr; }
    .glx-stats-grid { grid-template-columns: 1fr 1fr; }
}
