/* ============================================================
   EKSPEDISI KILAT - Premium Tracking UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #DC2626;
    --primary-light: #EF4444;
    --primary-dark: #B91C1C;
    --accent: #E11D48;
    --accent-light: #F43F5E;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #F9FAFB;
    --dark-card: #FFFFFF;
    --dark-lighter: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(220, 38, 38, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Patterns */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(220, 38, 38, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(225, 29, 72, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(220, 38, 38, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* =========== NAVBAR =========== */
.navbar-custom {
    background: #DC2626;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-custom .brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .brand svg {
    width: 28px; height: 28px;
    fill: #ffffff;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: #ffffff;
    color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* =========== HERO SECTION =========== */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.4rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    max-width: 500px;
    margin: 0 auto 20px;
}

.hero-bg-image {
    background: url('hero-banner.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(239,68,68,0.4) 0%, rgba(220,38,38,0.85) 50%, rgba(220,38,38,1) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* =========== SEARCH BOX =========== */
.search-container {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto 50px;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 8px;
    display: flex;
    gap: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 5px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: var(--shadow), 0 0 30px rgba(220, 38, 38, 0.1);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.btn-search svg {
    width: 18px; height: 18px;
}

/* =========== LOADING OVERLAY =========== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
}

.loading-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(99, 102, 241, 0.15);
    border-top-color: var(--primary-light);
    animation: spin 0.8s linear infinite;
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px;
    right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--accent);
    animation: spin 1.5s linear infinite reverse;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* =========== GLASS CARD =========== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

.glass-card + .glass-card {
    margin-top: 24px;
}

.card-header-custom {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-custom h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-custom h3 svg {
    width: 20px; height: 20px;
    opacity: 0.7;
}

.card-body-custom {
    padding: 24px;
}

/* =========== PROGRESS STEPS =========== */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 20px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--dark-lighter);
    border-radius: 2px;
}

.progress-steps .progress-fill {
    position: absolute;
    top: 48px;
    left: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 1s ease;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-card);
    border: 2px solid var(--dark-lighter);
    transition: all 0.5s ease;
    position: relative;
}

.step-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: all 0.5s ease;
}

.step.active .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.step.active .step-icon svg {
    fill: white;
}

.step.done .step-icon {
    background: var(--primary);
    border-color: var(--primary);
}

.step.done .step-icon svg {
    fill: white;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step.active .step-label,
.step.done .step-label {
    color: var(--text-primary);
}

/* =========== DETAIL GRID =========== */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    border-color: rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.detail-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-item .value.resi-number {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary-light);
    letter-spacing: 1px;
}

/* =========== ESTIMATION BAR =========== */
.estimation-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03), rgba(220, 38, 38, 0.08));
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 14px;
    padding: 24px;
    margin-top: 16px;
}

.estimation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.estimation-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.estimation-countdown {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.estimation-bar {
    background: var(--dark-lighter);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.estimation-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1.5s ease;
    position: relative;
}

.estimation-bar-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 0;
    width: 20px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: shimmer 1.5s ease-in-out infinite;
}

.estimation-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========== TIMELINE =========== */
.timeline-modern {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent), transparent);
}

.timeline-item-modern {
    position: relative;
    padding: 0 0 28px 50px;
    animation: slideUp 0.5s ease both;
}

.timeline-item-modern:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 3px solid var(--primary);
    z-index: 2;
}

.timeline-item-modern:first-child .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
    animation: pulse 2s infinite;
}

.timeline-item-modern.delivered .timeline-dot {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.timeline-content {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(220, 38, 38, 0.3);
    transform: translateX(4px);
}

.timeline-time {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-location {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========== ACTION BUTTONS =========== */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-copy {
    background: rgba(220, 38, 38, 0.08);
    color: var(--primary);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.btn-copy:hover { background: var(--primary); color: white; }

.btn-share {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-share:hover { background: var(--success); color: white; }

/* =========== STATUS BADGES =========== */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.badge-pickup { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-pickup::before { background: var(--warning); }
.badge-processing { background: rgba(220, 38, 38, 0.1); color: var(--primary); }
.badge-processing::before { background: var(--primary); }
.badge-transit { background: rgba(220, 38, 38, 0.1); color: var(--primary); }
.badge-transit::before { background: var(--primary); }
.badge-delivery { background: rgba(220, 38, 38, 0.1); color: var(--primary); }
.badge-delivery::before { background: var(--primary); }
.badge-delivered { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-delivered::before { background: var(--success); animation: pulse 1.5s infinite; }

/* =========== ALERT =========== */
.alert-custom {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideUp 0.3s ease;
}

.alert-custom svg {
    width: 22px; height: 22px; fill: #fca5a5;
}

/* =========== FOOTER =========== */
.footer-custom {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

/* =========== ADMIN STYLES =========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card.stat-total .stat-value { color: var(--primary-light); }
.stat-card.stat-transit .stat-value { color: var(--accent); }
.stat-card.stat-delivered .stat-value { color: var(--success); }
.stat-card.stat-pending .stat-value { color: var(--warning); }

/* =========== TABLES =========== */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead th {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.table-custom tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-custom tbody tr {
    transition: all 0.2s ease;
}

.table-custom tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

/* =========== FORM ELEMENTS =========== */
.form-custom-group {
    margin-bottom: 18px;
}

.form-custom-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-custom-input,
.form-custom-select,
.form-custom-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-custom-input:focus,
.form-custom-select:focus,
.form-custom-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-custom-select option {
    background: var(--dark-card);
    color: var(--text-primary);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

.btn-success-custom {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-warning-custom {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-warning-custom:hover {
    background: var(--warning);
    color: var(--dark);
}

.btn-danger-custom {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger-custom:hover {
    background: var(--danger);
    color: white;
}

.btn-info-custom {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-info-custom:hover {
    background: var(--accent);
    color: white;
}

/* Search Bar (Admin) */
.search-admin {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    min-width: 250px;
    transition: all 0.3s ease;
}

.search-admin:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* =========== CONTAINER FIX =========== */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* =========== ANIMATIONS =========== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* =========== RESPONSIVE =========== */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p { font-size: 0.95rem; }
    
    .search-box {
        flex-direction: column;
    }
    
    .btn-search { justify-content: center; }
    
    .progress-steps {
        padding: 20px 5px;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .step-icon {
        width: 34px; height: 34px;
    }
    
    .step-icon svg {
        width: 14px; height: 14px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .estimation-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .action-buttons { justify-content: center; }
    
    .search-admin { min-width: 100%; margin-bottom: 12px; }
    
    .table-custom { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========== TOAST NOTIFICATION =========== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10000;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 2s forwards;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(20px); }
}

/* =========== DELIVERED BANNER =========== */
.delivered-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.delivered-banner .check-icon {
    width: 60px; height: 60px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.delivered-banner .check-icon svg {
    width: 30px; height: 30px; fill: white;
}

.delivered-banner h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 4px;
}

.delivered-banner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========== HERO BANNER =========== */
.hero-banner-container {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}
.hero-banner-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========== MARQUEE =========== */
.marquee-container {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 40px;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* =========== WA WIDGET =========== */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
.wa-widget-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.wa-widget-btn:hover {
    transform: scale(1.1);
}
.wa-widget-btn svg {
    fill: white;
    width: 35px;
    height: 35px;
}
.wa-widget-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--dark-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow), 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}
.wa-widget.show .wa-widget-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.wa-popup-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
}
.wa-popup-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.wa-popup-header p {
    font-size: 0.8rem;
    opacity: 0.9;
}
.wa-popup-body {
    padding: 15px;
    max-height: 280px;
    overflow-y: auto;
}
.wa-agent-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--dark-lighter);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}
.wa-agent-item:hover {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.3);
}
.wa-agent-icon {
    width: 40px;
    height: 40px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}
.wa-agent-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}
.wa-agent-details {
    flex: 1;
}
.wa-agent-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.wa-agent-status {
    font-size: 0.75rem;
    color: #25D366;
    font-weight: 600;
}
.wa-agent-status.offline {
    color: var(--text-muted);
}
.wa-agent-input {
    margin-top: 5px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}
.wa-agent-input label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    display: block;
    margin-bottom: 8px;
}
.wa-agent-input textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    resize: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    height: 60px;
}
.wa-agent-input textarea:focus {
    border-color: var(--primary);
}
.wa-popup-footer {
    padding: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--dark-lighter);
    border-top: 1px solid var(--glass-border);
}
 
 