@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #051C2C;
    color: #e2e8f0;
}

[x-cloak] {
    display: none !important;
}

/* ==========================================
   INFOGRAPHIC DASHBOARD DESIGN SYSTEM
   ========================================== */

/* Hero Banner */
.infographic-hero {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 160px;
}

.infographic-hero img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.infographic-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 28, 44, 0.9) 0%, rgba(13, 43, 79, 0.4) 50%, rgba(5, 28, 44, 0.75) 100%);
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
}

.infographic-hero h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.infographic-hero p {
    font-size: 0.6rem;
    font-weight: 800;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 0.5rem;
}

/* Infographic Stat Cards */
.info-card {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

.info-card-revenue {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.info-card-revenue:hover {
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.3);
}

.info-card-engagement {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.info-card-engagement:hover {
    box-shadow: 0 20px 40px -12px rgba(16, 185, 129, 0.3);
}

.info-card-users {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 50%, #6d28d9 100%);
    border-color: rgba(139, 92, 246, 0.2);
}

.info-card-users:hover {
    box-shadow: 0 20px 40px -12px rgba(139, 92, 246, 0.3);
}

.info-card-leads {
    background: linear-gradient(135deg, #451a03 0%, #78350f 50%, #a16207 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.info-card-leads:hover {
    box-shadow: 0 20px 40px -12px rgba(245, 158, 11, 0.3);
}

.info-card-bookings {
    background: linear-gradient(135deg, #4c0519 0%, #881337 50%, #be123c 100%);
    border-color: rgba(244, 63, 94, 0.2);
}

.info-card-bookings:hover {
    box-shadow: 0 20px 40px -12px rgba(244, 63, 94, 0.3);
}

.info-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.info-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.info-card-label {
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.info-card-value {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.info-card-trend {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    margin-top: 0.75rem;
}

.trend-up {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.trend-neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

/* Progress Bar */
.progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1.5s ease;
}

/* Quick Actions Grid */
.quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(13, 43, 79, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.quick-action:hover {
    background: rgba(13, 43, 79, 0.7);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Section Panel */
.section-panel {
    margin-bottom: 2.5rem;
}

.section-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-panel-title {
    font-size: 0.6rem;
    font-weight: 900;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.section-panel-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), transparent);
    margin-left: 1rem;
}

/* Glassmorphism Core */
.glass-morphism {
    background: rgba(5, 28, 44, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

.glass-card {
    background: rgba(13, 43, 79, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(13, 43, 79, 0.6);
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9);
}

/* Command Center Utilities */
.stats-glow-indigo {
    box-shadow: 0 0 30px -10px rgba(79, 70, 229, 0.3);
}

.stats-glow-emerald {
    box-shadow: 0 0 30px -10px rgba(16, 185, 129, 0.3);
}

.stats-glow-purple {
    box-shadow: 0 0 30px -10px rgba(139, 92, 246, 0.3);
}

/* Skeleton Loaders */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #0D2B4F 25%, #1a3a5c 50%, #0D2B4F 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 0.5rem;
}

.sidebar-gradient {
    background: linear-gradient(180deg, #051C2C 0%, #0D2B4F 100%);
}

.animate-spin-reverse {
    animation: spin-reverse 3s linear infinite;
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* ==========================================
   PHASE 14: DARK-MODE TABLE & VIEW UTILITIES
   ========================================== */

.view-header {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.view-subheader {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.dark-table-wrap {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.dark-table thead {
    background: rgba(5, 28, 44, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-table th {
    padding: 1rem 1.5rem;
    font-size: 0.6rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: left;
}

.dark-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.dark-table tbody tr:last-child {
    border-bottom: none;
}

.dark-table tbody tr:hover {
    background: rgba(13, 43, 79, 0.4);
}

.dark-table td {
    padding: 1.1rem 1.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid;
}

.badge-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.2);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-rose {
    background: rgba(244, 63, 94, 0.1);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.2);
}

.badge-slate {
    background: rgba(100, 116, 139, 0.1);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.2);
}

.badge-teal {
    background: rgba(20, 184, 166, 0.1);
    color: #5eead4;
    border-color: rgba(20, 184, 166, 0.2);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.2);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    border-radius: 0.6rem;
    font-size: 0.8rem;
    transition: all 0.2s;
    cursor: pointer;
}

.action-btn-view {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
}

.action-btn-view:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

.action-btn-edit {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
}

.action-btn-edit:hover {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

.action-btn-delete {
    background: rgba(244, 63, 94, 0.1);
    color: #fda4af;
}

.action-btn-delete:hover {
    background: rgba(244, 63, 94, 0.3);
    color: #fff;
}

.action-btn-approve {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

.action-btn-approve:hover {
    background: rgba(16, 185, 129, 0.3);
    color: #fff;
}

.empty-state {
    padding: 5rem 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.35;
    color: #64748b;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.empty-state-sub {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

/* ==========================================
   PHASE 15: DARK MODAL, INPUT & SIDEBAR
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.modal-dark {
    background: rgba(5, 28, 44, 0.97);
    backdrop-filter: blur(24px);
    border-radius: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(99, 102, 241, 0.15);
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    color: #e2e8f0;
}

.modal-dark h2 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.input-dark {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(13, 43, 79, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-dark:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-dark::placeholder {
    color: #475569;
}

.select-dark {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(13, 43, 79, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
}

.select-dark:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.select-dark option {
    background: #0f172a;
    color: #e2e8f0;
}

.label-dark {
    display: block;
    font-size: 0.6rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.btn-primary {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #D4AF37, #E5C96B);
    color: #051C2C;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E5C96B, #D4AF37);
    box-shadow: 0 4px 20px -2px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.btn-ghost {
    padding: 0.65rem 1.5rem;
    background: transparent;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-label {
    font-size: 0.55rem;
    font-weight: 900;
    color: #334155;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1rem 1rem 0.4rem 1rem;
}

/* Media grid dark */
.media-card {
    position: relative;
    aspect-ratio: 1;
    background: rgba(13, 43, 79, 0.4);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
}

.media-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    transform: translateY(-4px);
}

/* Upload panel dark */
.upload-panel {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
}

/* Blog article card dark */
.article-card {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.article-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.article-card:last-child {
    border-bottom: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #040712;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ==========================================
   RESPONSIVE DESIGN â€” MOBILE + TABLET
   ========================================== */

/* Mobile: â‰¤ 768px */
@media (max-width: 768px) {

    /* Hero Banner */
    .infographic-hero {
        border-radius: 1rem;
        min-height: 120px;
    }

    .infographic-hero img {
        height: 120px;
    }

    .infographic-hero-overlay {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .infographic-hero h1 {
        font-size: 1.5rem;
    }

    .infographic-hero p {
        font-size: 0.5rem;
    }

    /* Stat Cards */
    .info-card {
        min-height: 110px;
        padding: 1.25rem;
    }

    .info-card-value {
        font-size: 1.5rem;
    }

    .info-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    /* Section Panels */
    .section-panel {
        margin-bottom: 1.5rem;
    }

    /* Tables */
    .dark-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .dark-table {
        min-width: 700px;
    }

    .dark-table th,
    .dark-table td {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-dark {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0.5rem;
        border-radius: 1.25rem;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-overlay {
        padding: 0.5rem;
    }

    /* Glass Card */
    .glass-card {
        border-radius: 1rem;
    }

    /* View Headers */
    .view-header {
        font-size: 1.5rem;
    }

    /* Quick Actions */
    .quick-action {
        padding: 0.85rem 1rem;
    }

    /* Charts */
    .glass-card .h-72 {
        height: 200px;
    }

    /* Upload Panel */
    .upload-panel {
        padding: 1.5rem;
    }

    /* Media Grid â€” single column */
    .media-card img {
        height: 120px;
    }

    /* Login Screen */
    .min-h-screen .max-w-md {
        padding: 0.5rem;
    }

    /* Settings Glass Cards */
    .settings-glass-card {
        padding: 1.25rem;
    }
}

/* Small Mobile: â‰¤ 480px */
@media (max-width: 480px) {
    .infographic-hero h1 {
        font-size: 1.25rem;
    }

    .info-card-value {
        font-size: 1.25rem;
    }

    .info-card-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .info-card {
        min-height: 100px;
        padding: 1rem;
    }

    .info-card-label {
        font-size: 0.5rem;
    }

    .modal-dark h2 {
        font-size: 1.25rem;
    }

    .view-header {
        font-size: 1.25rem;
    }
}

/* Mobile: Max 768px */
@media (max-width: 768px) {
    .infographic-hero img {
        height: 120px;
    }

    .infographic-hero-overlay {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 1.5rem;
    }

    .infographic-hero h1 {
        font-size: 1.5rem;
    }

    .infographic-hero .flex.items-center.space-x-3 {
        margin-top: 1rem;
    }

    .dark-table-wrap {
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .modal-dark {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .info-card {
        min-height: 140px;
        padding: 1.25rem;
    }

    .info-card-value {
        font-size: 1.5rem;
    }

    .section-panel {
        padding: 1.5rem;
    }
}

/* Tablet: 769px â€” 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    transform: none;
}

.quick-action:hover {
    transform: none;
}

.media-card:hover {
    transform: none;
}

/* Larger tap targets */
.action-btn {
    min-width: 42px;
    min-height: 42px;
}

.dark-table td button {
    min-width: 40px;
    min-height: 40px;
}
}
