/* ═══════════════════════════════════════════════════════════════
   DASHBOARD PREMIUM STYLES — Glamorous, Colorful, Animated
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Header ────────────────────────────────────────────── */
.page-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.page-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 4px 0 0 0;
}


/* ═══════════════════════════════════════════════════════════════
   SETUP WIZARD — New User Onboarding
   ═══════════════════════════════════════════════════════════════ */

.wizard-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 48px 32px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 30%, #a855f7 60%, #d946ef 100%);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

.wizard-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.wizard-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.wizard-rocket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    margin-bottom: 16px;
    font-size: 28px;
    color: #fff;
    animation: wizardFloat 3s ease-in-out infinite;
}

@keyframes wizardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wizard-hero h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.wizard-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Progress Bar */
.wizard-progress-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 0 4px;
}

.wizard-progress-bar {
    flex: 1;
    height: 10px;
    border-radius: 8px;
    background: #e2e8f0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.wizard-progress-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #d946ef);
    background-size: 200% 100%;
    animation: wizardProgressShine 2s linear infinite;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.wizard-progress-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6366f1;
    white-space: nowrap;
}

/* Setup Cards */
.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.wizard-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    text-align: center;
}

.wizard-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.35s;
}

.wizard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.18);
    border-color: transparent;
}

.wizard-card:hover::before {
    background: linear-gradient(135deg, #6366f1, #a855f7, #d946ef);
}

.wizard-card.completed {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.wizard-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.wc-purple { background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }
.wc-emerald { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 4px 16px rgba(16,185,129,0.35); }
.wc-amber { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 4px 16px rgba(245,158,11,0.35); }
.wc-blue { background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 4px 16px rgba(59,130,246,0.35); }

.wizard-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.wizard-card p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.4;
}

.wizard-card-count {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.wizard-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.wizard-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.wizard-card.completed .wizard-card-btn {
    background: linear-gradient(135deg, #22c55e, #10b981);
    box-shadow: 0 2px 8px rgba(34,197,94,0.25);
}

.wizard-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    color: #22c55e;
    display: none;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(34,197,94,0.4));
}

.wizard-card.completed .wizard-card-check { display: block; }


/* ═══════════════════════════════════════════════════════════════
   KPI CARDS — Glassmorphism + Gradient Borders
   ═══════════════════════════════════════════════════════════════ */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.kpi-card {
    position: relative;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Gradient accent at top */
.kpi-card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.kpi-grad-blue { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.kpi-grad-green { background: linear-gradient(90deg, #22c55e, #10b981); }
.kpi-grad-amber { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.kpi-grad-red { background: linear-gradient(90deg, #ef4444, #ec4899); }

/* Hover glow */
.kpi-glow-blue:hover { box-shadow: 0 12px 40px rgba(59,130,246,0.15), 0 0 0 1px rgba(59,130,246,0.1); }
.kpi-glow-green:hover { box-shadow: 0 12px 40px rgba(34,197,94,0.15), 0 0 0 1px rgba(34,197,94,0.1); }
.kpi-glow-amber:hover { box-shadow: 0 12px 40px rgba(245,158,11,0.15), 0 0 0 1px rgba(245,158,11,0.1); }
.kpi-glow-red:hover { box-shadow: 0 12px 40px rgba(239,68,68,0.15), 0 0 0 1px rgba(239,68,68,0.1); }

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.kpi-icon-blue { background: linear-gradient(135deg, #dbeafe, #eff6ff); color: #3b82f6; }
.kpi-icon-green { background: linear-gradient(135deg, #dcfce7, #f0fdf4); color: #22c55e; }
.kpi-icon-amber { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #f59e0b; }
.kpi-icon-red { background: linear-gradient(135deg, #fee2e2, #fef2f2); color: #ef4444; }

.kpi-content { flex: 1; min-width: 0; }

.kpi-content h3 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 2px 0;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1;
}

.kpi-content p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.kpi-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.kpi-change.positive { background: #dcfce7; color: #15803d; }
.kpi-change.negative { background: #fee2e2; color: #dc2626; }
.kpi-change.neutral { background: #fef3c7; color: #92400e; }

.kpi-sparkline {
    position: absolute;
    bottom: 8px;
    right: 12px;
    opacity: 0.3;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════
   ONGOING BOOKINGS — Live Strip
   ═══════════════════════════════════════════════════════════════ */

.ongoing-section {
    margin-bottom: 28px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    position: relative;
    animation: pulseDot 2s ease-in-out infinite;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.ongoing-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.ongoing-scroll::-webkit-scrollbar { height: 6px; }
.ongoing-scroll::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.ongoing-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.ongoing-card {
    min-width: 280px;
    max-width: 320px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    padding: 18px 16px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.ongoing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #06b6d4);
}

.ongoing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: #22c55e;
}

.ongoing-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ongoing-pnr {
    font-size: 0.72rem;
    font-weight: 800;
    color: #4338ca;
    background: #e0e7ff;
    padding: 3px 10px;
    border-radius: 6px;
}

.ongoing-card-body { display: flex; flex-direction: column; gap: 6px; }

.ongoing-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #475569;
}

.ongoing-row i { width: 14px; text-align: center; color: #94a3b8; font-size: 0.75rem; }
.ongoing-row strong { color: #1e293b; }


/* ═══════════════════════════════════════════════════════════════
   DASHBOARD GRID
   ═══════════════════════════════════════════════════════════════ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-grid-logs {
    grid-template-columns: 1fr 1fr;
}

.chart-card { grid-column: 1; }


/* ═══════════════════════════════════════════════════════════════
   PREMIUM CARD STYLES — Enhanced Headers
   ═══════════════════════════════════════════════════════════════ */

.card-premium {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-premium:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.card__header--gradient {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.card__header--gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
}

.card__header--green::before { background: linear-gradient(135deg, #10b981, #06b6d4); }
.card__header--purple::before { background: linear-gradient(135deg, #8b5cf6, #d946ef); }

.card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header-left h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.card-header-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

.card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.ch-icon-green {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.ch-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}


/* ═══════════════════════════════════════════════════════════════
   LOGIN LOGS — Premium Timeline Items
   ═══════════════════════════════════════════════════════════════ */

.login-logs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
}

.login-logs-list::-webkit-scrollbar { width: 4px; }
.login-logs-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.login-log-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fafbfc, #f8fafc);
    border: 1px solid #f1f5f9;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.login-log-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #10b981, #06b6d4);
    transition: height 0.25s ease;
}

.login-log-item:hover {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #d1fae5;
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(16,185,129,0.08);
}

.login-log-item:hover::before {
    height: 60%;
}

.login-log-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.login-log-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Online indicator dot */
.login-log-avatar::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
}

.login-log-info { flex: 1; min-width: 0; }

.login-log-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.login-log-username {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.login-log-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.login-log-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

.login-log-ip {
    font-size: 0.62rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', 'Fira Code', 'Inter', monospace;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════════════
   ACTIVITY LOGS — Timeline + Color-coded Types
   ═══════════════════════════════════════════════════════════════ */

.activity-logs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
}

.activity-logs-list::-webkit-scrollbar { width: 4px; }
.activity-logs-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.activity-log-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fafbfc, #f8fafc);
    border: 1px solid #f1f5f9;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.activity-log-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #8b5cf6, #d946ef);
    transition: height 0.25s ease;
}

.activity-log-item:hover {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #e9d5ff;
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(139,92,246,0.08);
}

.activity-log-item:hover::before {
    height: 60%;
}

.activity-log-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.al-icon-booking { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.al-icon-package { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.al-icon-driver { background: linear-gradient(135deg, #10b981, #06b6d4); }
.al-icon-vehicle { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.al-icon-default { background: linear-gradient(135deg, #64748b, #475569); }

.activity-log-body { flex: 1; min-width: 0; }

.activity-log-remark {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-log-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.activity-log-tag {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 6px;
}

.al-tag-booking { background: #dbeafe; color: #1e40af; }
.al-tag-package { background: #fef3c7; color: #92400e; }
.al-tag-driver { background: #d1fae5; color: #065f46; }
.al-tag-vehicle { background: #ede9fe; color: #5b21b6; }
.al-tag-default { background: #f1f5f9; color: #475569; }

.activity-log-ref {
    font-size: 0.68rem;
    font-weight: 700;
    color: #6366f1;
    background: #e0e7ff;
    padding: 1px 8px;
    border-radius: 4px;
}

.activity-log-user {
    font-size: 0.68rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-log-user i { font-size: 0.6rem; }

.activity-log-time {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    margin-left: auto;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   EXISTING STYLES (Preserved)
   ═══════════════════════════════════════════════════════════════ */

/* Supplier Info Cell */
.supplier-info { display: flex; align-items: center; gap: 12px; }
.supplier-avatar { width: 36px; height: 36px; background: #eff6ff; color: #3b82f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; border: 1px solid #dbeafe; }
.supplier-details { display: flex; flex-direction: column; gap: 2px; }
.supplier-details h4 { margin: 0; font-weight: 600; color: #1e293b; font-size: 0.9rem; }
.supplier-details p { margin: 0; color: #64748b; font-size: 0.75rem; }
.supplier-contact { display: flex; flex-direction: column; gap: 4px; }
.supplier-contact span { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #64748b; }
.supplier-contact span i { width: 14px; text-align: center; }

/* Status badges */
.status-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* Activity list */
.activity-list { display: flex; flex-direction: column; gap: 4px; }


/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════════════════════ */

.skeleton {
    background: #f1f5f9;
    background: linear-gradient(110deg, #f1f5f9 8%, #e2e8f0 18%, #f1f5f9 33%);
    background-size: 200% 100%;
    animation: dashboard-shimmer 1.5s infinite linear !important;
    border-radius: 4px;
    display: inline-block;
}

@keyframes dashboard-shimmer {
    to { background-position-x: -200%; }
}

/* KPI Skeletons */
.sk-kpi-num { width: 80px; height: 32px; border-radius: 8px; display: block; }

/* Activity Skeletons */
.activity-skeleton {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    margin-bottom: 8px !important;
    align-items: center;
}
.sk-icon-circle { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.sk-content-wrap { flex: 1; }
.sk-line-lg { width: 70%; height: 18px; margin-bottom: 8px; border-radius: 4px; }
.sk-line-sm { width: 40%; height: 12px; border-radius: 4px; }
.sk-action-btn { width: 80px; height: 32px; border-radius: 8px; }

/* Table Skeletons */
.sk-row-line { width: 100%; height: 16px; margin: 8px 0; border-radius: 4px; }
.sk-row-pill { width: 80px; height: 24px; border-radius: 20px; }

/* Ongoing Skeletons */
.ongoing-skeleton {
    min-width: 280px;
    height: 140px;
    border-radius: 16px;
    flex-shrink: 0;
}

/* Login Log Skeletons */
.login-log-skeleton {
    display: flex;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    align-items: center;
}
.sk-avatar-circle { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.sk-log-wrap { flex: 1; }
.sk-log-line-lg { width: 60%; height: 14px; margin-bottom: 6px; border-radius: 4px; }
.sk-log-line-sm { width: 30%; height: 10px; border-radius: 4px; }

/* Activity Log Skeletons */
.activity-log-skeleton {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    align-items: flex-start;
}
.sk-icon-square { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; }
.sk-al-wrap { flex: 1; }
.sk-al-line-lg { width: 80%; height: 14px; margin-bottom: 6px; border-radius: 4px; }
.sk-al-line-md { width: 50%; height: 10px; margin-bottom: 4px; border-radius: 4px; }
.sk-al-line-sm { width: 30%; height: 10px; border-radius: 4px; }


/* ═══════════════════════════════════════════════════════════════
   QUOTE CARD STYLES (Preserved from quotes.aspx)
   ═══════════════════════════════════════════════════════════════ */

.accent-BookingSent { border-left: 4px solid #6366f1; }
.accent-BookingReceived { border-left: 4px solid #06b6d4; }
.accent-PackageSent { border-left: 4px solid #8b5cf6; }
.accent-PackageReceived { border-left: 4px solid #10b981; }
.accent-ConnectionSent { border-left: 4px solid #f59e0b; }
.accent-ConnectionReceived { border-left: 4px solid #ef4444; }
.accent-all { border-left: 4px solid #334155; }

.quote-row {
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    cursor: pointer;
    transition: all .2s;
    position: relative;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    width: 100%;
}
.quote-row:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.11); }

.quote-row-inner { display: flex; align-items: center; width: 100%; padding: 4px 15px; min-height: 80px; gap: 15px; }
.q-col-supplier { flex: 1; display: flex; align-items: center; min-width: 0; position: relative; }
.q-avatar { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.q-avatar-fallback { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }

.quote-stats-wrap { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.q-col-chat { width: 60px; display: flex; justify-content: center; border-left: 1px solid #f1f5f9; min-height: 40px; align-items: center; }
.q-col-status { width: 150px; display: flex; justify-content: center; }
.q-col-deadline { width: 130px; }
.q-col-amount { width: 140px; display: flex; flex-direction: column; align-items: flex-end; padding-right: 15px; }
.q-col-actions { width: 120px; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

.status-pill { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.sp-confirmed { background: #dcfce7; color: #166534; }
.sp-pending { background: #fef3c7; color: #92400e; }
.sp-rejected { background: #fee2e2; color: #991b1b; }
.sp-conn { background: #e0f2fe; color: #075985; }

.small-label { font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 2px; }
.amount-val { font-size: 1.05rem; font-weight: 800; color: #1e293b; }
.amount-asked { font-size: 0.8rem; color: #64748b; font-style: italic; }

.btn-view-q, .btn-accept-q, .btn-reject-q, .btn-delete-q {
    width: 34px; height: 34px; border-radius: 10px; border: none; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.btn-view-q { background: #f1f5f9; color: #475569; }
.btn-view-q:hover { background: #e2e8f0; color: #1e293b; }
.btn-accept-q { background: #dcfce7; color: #166534; width: auto !important; padding: 0 12px; font-weight: 600; font-size: 0.85rem; }
.btn-accept-q:hover { background: #bbf7d0; }
.btn-reject-q { background: #fee2e2; color: #991b1b; }
.btn-reject-q:hover { background: #fecaca; }

/* ── Table Styles ── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; margin-bottom: 0; background-color: transparent; border-collapse: separate; border-spacing: 0 8px; }
.table thead th { border: none; color: #94a3b8; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 16px; }
.table tbody tr { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: all 0.2s; }
.table tbody tr:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.table tbody td { border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; padding: 16px; vertical-align: middle; }
.table tbody td:first-child { border-left: 1px solid #f1f5f9; border-radius: 12px 0 0 12px; }
.table tbody td:last-child { border-right: 1px solid #f1f5f9; border-radius: 0 12px 12px 0; }

.text-purple { color: #a855f7; }

/* ── Count-up Animation ── */
@keyframes countFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.count-animated { animation: countFadeIn 0.4s ease-out forwards; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid-logs { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .wizard-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .wizard-hero { padding: 32px 20px; }
    .wizard-hero h1 { font-size: 1.3rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid-logs { grid-template-columns: 1fr; }

    .quote-row-inner { display: grid; grid-template-columns: 1fr; padding: 12px; }
    .quote-stats-wrap { display: grid; grid-template-columns: 1fr 1fr; background: #f8fafc; padding: 12px; border-radius: 12px; }
    .q-col-chat, .q-col-status, .q-col-deadline, .q-col-amount { width: 100% !important; border: none !important; align-items: flex-start !important; padding: 0 !important; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .wizard-grid { grid-template-columns: 1fr; }
}
