@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

[x-cloak] { display: none !important; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #0c0a09; /* very dark warm tone */
    color: #f8fafc;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Montserrat', sans-serif;
}

/* Custom Scrollbar for sleek UI */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: #3f3f46; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f97316; 
}

/* Glassmorphism Control Panel */
.glass-panel {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.input-glow {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
}
.input-glow:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

/* Form checkboxes custom */
input[type="checkbox"].accent-orange {
    accent-color: #f97316;
}

/* === A4 PREVIEW (PAPER) === */
.preview-container {
    background: #f1f5f9;  /* soft gray canvas background */
}

.a4-paper {
    width: 210mm;
    min-height: 297mm;
    padding: 15mm 18mm;
    margin: 40px auto;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.6;
}

/* Subtle Watermark or branding */
.a4-paper::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(249,115,22,0.15) 0%, rgba(255,255,255,0) 70%);
    border-bottom-left-radius: 100%;
    z-index: 0;
    pointer-events: none;
}
.a4-paper::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(234,88,12,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure contents are above watermark */
.a4-content {
    position: relative;
    z-index: 10;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #fdba74; /* orange-300 */
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.company-name {
    font-size: 14pt;
    font-weight: 700;
    color: #ea580c; /* orange-600 */
    letter-spacing: 0.5px;
}

.doc-meta {
    font-size: 10pt;
    color: #475569; /* slate-600 */
}
.doc-meta strong {
    color: #334155;
    font-weight: 600;
}

.doc-title {
    text-align: center;
    font-size: 20pt;
    font-weight: 800;
    color: #9a3412; /* orange-800 */
    margin: 25px 0 15px 0;
    letter-spacing: 1px;
}
.doc-subtitle {
    text-align: center;
    font-size: 11pt;
    font-style: italic;
    color: #64748b;
    margin-bottom: 30px;
}

/* Tables */
.quotation-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.quotation-table th, .quotation-table td {
    border: 1px solid #cbd5e1; /* slate-300 */
    padding: 10px 12px;
    vertical-align: top;
}

.quotation-table th {
    background-color: #fff7ed; /* orange-50 */
    color: #c2410c; /* orange-700 */
    font-weight: 700;
    text-align: left;
    font-size: 11pt;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
}
.feature-list li {
    margin-bottom: 4px;
}
.feature-list li::marker {
    color: #f97316;
}

.price-col {
    width: 130px;
    text-align: right !important;
    font-weight: 600;
    color: #0f172a;
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5pt;
}

.total-row {
    background-color: #ffedd5; /* orange-100 */
}
.total-row td {
    border-top: 2px solid #f97316;
}
.total-title {
    text-align: right;
    font-weight: 800;
    color: #9a3412;
    font-size: 12pt;
    text-transform: uppercase;
}
.total-price {
    text-align: right;
    font-weight: 800;
    color: #ea580c;
    font-size: 14pt;
    font-family: 'Montserrat', sans-serif;
}

.signature-box {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    padding-right: 20px;
}
.signature {
    text-align: center;
    min-width: 200px;
}

.print-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.39);
}
.print-btn:hover {
    background: linear-gradient(135deg, #fb923c, #f97316);
    transform: translateY(-1px);
}
