/* ── Dashboard Header ── */

.dashboard-header {
    text-align: center;
    padding: 60px 20px 30px;
}

.dashboard-header h1 {
    font-size: 42px;
    color: #2E8B57;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: #6b7280;
    font-size: 18px;
}

/* ── Section wrapper ── */

.dash-section {
    display: flex;
    justify-content: center;
    padding: 12px 20px;
}

/* ── Card ── */

.dash-card {
    width: 100%;
    max-width: 950px;
    background: white;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #2E8B57;
    margin-bottom: 8px;
}

.dash-card h2 {
    font-size: 22px;
    color: #2E8B57;
    margin-bottom: 24px;
}

/* ── Trip Grid ── */

.trip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trip-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    transition: 0.3s;
}

.trip-item:hover {
    border-color: #2E8B57;
    background: #E8F7EF;
}

.trip-label {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trip-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

/* ── Progress Bar ── */

.progress-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #374151;
    font-weight: 500;
    margin-bottom: 14px;
}

.progress-info span {
    font-weight: 700;
    color: #2E8B57;
}

.progress-percent {
    margin-left: auto;
    font-size: 20px;
    font-weight: 700;
    color: #2E8B57;
}

.progress-bar-bg {
    width: 100%;
    height: 14px;
    background: #e5e7eb;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2E8B57, #4ade80);
    border-radius: 40px;
    width: 0%;
    transition: width 0.8s ease;
}

.budget-fill {
    background: linear-gradient(90deg, #3B82F6, #60a5fa);
}

.budget-fill.over {
    background: linear-gradient(90deg, #EF4444, #f87171);
}

.progress-note {
    font-size: 14px;
    color: #6b7280;
}

/* ── Budget Row ── */

.budget-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.budget-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
}

.budget-label {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-value {
    font-size: 22px;
    font-weight: 700;
}

.budget-value.green { color: #2E8B57; }
.budget-value.red   { color: #EF4444; }
.budget-value.blue  { color: #3B82F6; }

/* ── Empty state ── */

.empty-state {
    text-align: center;
    color: #9ca3af;
    font-size: 15px;
    padding: 10px 0;
}

.empty-state a {
    color: #2E8B57;
    font-weight: 600;
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* ── Export Button ── */

.export-section {
    display: flex;
    justify-content: center;
    padding: 16px 20px 60px;
}

#exportPdfBtn {
    padding: 15px 40px;
    background: #2E8B57;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.3);
}

#exportPdfBtn:hover {
    background: #236b45;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(46, 139, 87, 0.35);
}

/* ── Print / PDF Styles ── */

@media print {

    @page {
        margin: 20mm 15mm;
        size: A4;
    }

    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        font-family: 'Poppins', sans-serif;
        color: #1f2937;
    }

    header {
        display: none !important;
    }

    .dashboard-header {
        padding: 20px 0 16px;
    }

    .dashboard-header h1 {
        font-size: 28px;
        color: #2E8B57;
    }

    .dashboard-header p {
        font-size: 14px;
        color: #6b7280;
    }

    .dash-section {
        padding: 8px 0;
    }

    .dash-card {
        box-shadow: none !important;
        border: 1px solid #e5e7eb;
        border-left: 4px solid #2E8B57;
        border-radius: 12px;
        padding: 20px 24px;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .dash-card h2 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .trip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .trip-item {
        padding: 10px 14px;
        border-radius: 8px;
    }

    .trip-label {
        font-size: 10px;
    }

    .trip-value {
        font-size: 14px;
    }

    .progress-bar-bg {
        height: 10px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .progress-bar-fill,
    .budget-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .budget-stat {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .budget-value {
        font-size: 18px;
    }

    .budget-value.green { color: #2E8B57 !important; }
    .budget-value.red   { color: #EF4444 !important; }
    .budget-value.blue  { color: #3B82F6 !important; }
}

/* ── Responsive ── */

@media (max-width: 768px) {

    .dashboard-header h1 {
        font-size: 32px;
    }

    .dash-card {
        padding: 25px 20px;
    }

    .trip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .budget-row {
        flex-direction: column;
    }
}

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