/* assets/css/style.css - Fixed Per-Page Pricing Modern CSS */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

.hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}

.card {
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    background-color: #ffffff;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.drop-zone i {
    color: #3b82f6;
}

.formula-box {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-left: 4px solid #2563eb;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.formula-highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.badge-format {
    background-color: #e0e7ff;
    color: #3730a3;
    font-weight: 600;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: #16a34a;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.75rem;
}

.status-step {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.status-step.active {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.status-step.completed {
    border-color: #16a34a;
    background-color: #f0fdf4;
}

/* Glassmorphic accent card */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================================
   PRINT MEDIA RULES - PERFECT PAGE FITTING & NO OVERFLOW
   ============================================================ */
@page {
    size: A4 portrait;
    margin: 8mm;
}

@media print {
    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
    }

    .container, .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    table {
        width: 100% !important;
        max-width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    thead {
        display: table-header-group;
    }

    img, canvas {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    .card, .glass-card, .status-step, .formula-box {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        page-break-inside: avoid;
    }

    .btn, button, .navbar, .admin-sidebar, .admin-topbar, .admin-mobile-header, .btn-no-print {
        display: none !important;
    }
}

