/* CSS Variables for Premium Light Theme */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-dark: #3730a3;
    
    --success: #10b981;
    --success-light: #d1fae5;
    
    --admin-color: #0284c7;
    --admin-bg: #e0f2fe;
    
    --client-color: #b45309;
    --client-bg: #fef3c7;
    
    --integration-color: #7c3aed;
    --integration-bg: #f3e8ff;
    
    --inventory-color: #db2777;
    --inventory-bg: #fce7f3;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Global Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 40px 20px;
}

/* Base Container */
.proposal-container {
    max-width: 960px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 60px 80px;
}

/* Typography styling */
h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Gradient text accent */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Headers */
.proposal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.header-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin-bottom: 30px;
}

/* Meta Data Grid */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.badge-status {
    display: inline-block;
    background-color: #fef3c7;
    color: #d97706;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    width: fit-content;
}

/* Proposal Sections */
.proposal-section {
    margin-bottom: 50px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.section-icon svg {
    stroke-width: 2.25px;
}

.section-intro-text {
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 800px;
}

/* Cards System */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-intro {
    background-color: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.08rem;
    line-height: 1.6;
}

.card-intro p {
    margin-bottom: 0;
}

/* Requirements & Features List */
.requirement-card {
    border-left: 4px solid var(--border-color);
}

.requirement-card:has(.badge-admin) { border-left-color: var(--admin-color); }
.requirement-card:has(.badge-client) { border-left-color: var(--client-color); }
.requirement-card:has(.badge-integration) { border-left-color: var(--integration-color); }
.requirement-card:has(.badge-inventory) { border-left-color: var(--inventory-color); }

.requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.requirement-header h3 {
    margin-right: auto;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 12px;
}

.badge-admin { background-color: var(--admin-bg); color: var(--admin-color); }
.badge-client { background-color: var(--client-bg); color: var(--client-color); }
.badge-integration { background-color: var(--integration-bg); color: var(--integration-color); }
.badge-inventory { background-color: var(--inventory-bg); color: var(--inventory-color); }

/* Grid Columns */
.grid-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.feature-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.feature-item ul, .asset-card ul, .option-details ul {
    list-style: none;
}

.feature-item li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.925rem;
}

.feature-item li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: bold;
}

.feature-item li:last-child {
    margin-bottom: 0;
}

/* Timeline Components */
.timeline-container {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}

.timeline-container::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    width: 60px;
    height: 22px;
    border-radius: 100px;
    box-shadow: 0 0 0 4px var(--bg-secondary);
}

.timeline-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.timeline-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.timeline-desc p {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.timeline-deliverables {
    background-color: #faf5ff;
    border: 1px solid #f3e8ff;
    border-radius: var(--radius-sm);
    padding: 16px;
}

.timeline-deliverables h5 {
    color: #6b21a8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    border-bottom: 1px solid #ebd5ff;
    padding-bottom: 4px;
}

.timeline-deliverables ul {
    list-style: none;
}

.timeline-deliverables li {
    font-size: 0.85rem;
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
    color: #581c87;
}

.timeline-deliverables li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #a855f7;
}

/* Asset Cards */
.asset-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.asset-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.asset-card h4 {
    margin-bottom: 12px;
}

.asset-card li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.asset-card li::before {
    content: "•";
    position: absolute;
    left: 2px;
    color: var(--primary);
}

/* Deployment Options cards */
.options-grid {
    margin-top: 20px;
}

.option-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.option-recommended {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.badge-rec {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    margin-right: 0;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.option-lead {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.option-details {
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.option-details ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.option-details ul li:last-child {
    margin-bottom: 0;
}

.icon-check {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.bullet-tag {
    background-color: var(--border-color);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.list-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Cost & Billing Table Layout */
.pricing-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.dev-pricing {
    background: linear-gradient(135deg, #fcfdff 0%, #f5f3ff 100%);
    border: 1px solid var(--primary-light);
    text-align: center;
    padding: 40px;
}

.pricing-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 10px;
}

.price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 15px;
}

.pricing-subtext {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.925rem;
    color: var(--text-secondary);
}

.pricing-table-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.cost-table th {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.cost-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.cost-table tr:last-child td {
    border-bottom: none;
}

/* Footer Section */
.proposal-footer {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    margin-top: 50px;
}

.footer-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .proposal-container {
        padding: 30px 20px;
        border-radius: var(--radius-md);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .grid-two-col, .grid-three-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .timeline-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -20px;
        width: 50px;
        font-size: 0.65rem;
    }
    
    .price-value {
        font-size: 2.75rem;
    }
}

/* Table responsiveness for small screens */
@media (max-width: 600px) {
    .table-wrapper {
        border: none;
    }
    
    .cost-table, .cost-table thead, .cost-table tbody, .cost-table th, .cost-table td, .cost-table tr {
        display: block;
    }
    
    .cost-table thead {
        display: none;
    }
    
    .cost-table tr {
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 15px;
        margin-bottom: 15px;
        background-color: var(--bg-primary);
    }
    
    .cost-table tr:last-child {
        margin-bottom: 0;
    }
    
    .cost-table td {
        padding: 8px 0;
        border-bottom: none;
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    
    .cost-table td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 4px;
        letter-spacing: 0.04em;
    }
    
    .cost-table td strong {
        font-size: 1.05rem;
    }
}

/* Smartphone responsiveness */
@media (max-width: 480px) {
    .proposal-container {
        padding: 24px 16px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .meta-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
}

/* PRINT MEDIA STYLES - Crucial for clean standard browser printing */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        font-size: 11pt !important;
    }
    
    .proposal-container {
        max-width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    h1, h2, h3, h4, h5, p, span, li, td, th {
        color: #000000 !important;
    }
    
    .text-gradient {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: #000000 !important;
        font-weight: 800 !important;
    }
    
    .card, .feature-item, .asset-card, .option-card, .timeline-content, .timeline-deliverables, .meta-grid {
        background-color: #ffffff !important;
        border: 1px solid #000000 !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        border-radius: 4px !important;
    }
    
    .timeline-container::before {
        background-color: #000000 !important;
    }
    
    .timeline-marker {
        border: 1px solid #000000 !important;
        background-color: #000000 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }
    
    .cost-table th, .cost-table td {
        border: 1px solid #000000 !important;
        padding: 8px !important;
    }
    
    .cost-table th {
        background-color: #f3f4f6 !important;
    }
    
    /* Page Break Rules for Clean Document Layout */
    .proposal-header {
        page-break-after: auto !important;
    }
    
    .proposal-section {
        page-break-inside: auto !important;
        margin-bottom: 30px !important;
    }
    
    /* Force page break before large sections to avoid half cutoffs */
    #timeline {
        page-break-before: always !important;
    }
    
    #cost {
        page-break-before: always !important;
    }
    
    .icon-check {
        color: #000000 !important;
    }
}

