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

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --color-bg: #FDFDFF;
    --color-white: #FFFFFF;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;

    --color-indigo-50: #eef2ff;
    --color-indigo-100: #e0e7ff;
    --color-indigo-400: #818cf8;
    --color-indigo-500: #6366f1;
    --color-indigo-600: #4f46e5;
    --color-indigo-700: #4338ca;

    --color-emerald-50: #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-500: #10b981;

    --color-rose-50: #fff1f2;
    --color-rose-100: #ffe4e6;
    --color-rose-500: #f43f5e;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-slate-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-slate-100);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-200);
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ===== NAVIGATION ===== */
nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-slate-100);
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--color-indigo-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-indigo-600);
    border: 1px solid var(--color-indigo-100);
    transform: rotate(-2deg);
}

.nav-title {
    display: flex;
    flex-direction: column;
}

.nav-title-main {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--color-slate-800);
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.nav-title-sub {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--color-slate-400);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.125rem;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--color-slate-50);
    padding: 0.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-slate-100);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    background: transparent;
    color: var(--color-slate-400);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    color: var(--color-slate-600);
}

.nav-btn.active {
    background: var(--color-white);
    color: var(--color-indigo-600);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-slate-100);
}

/* ===== MAIN CONTAINER ===== */
main {
    max-width: 36rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
}

/* ===== LOADING SPINNER ===== */
.loading-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid var(--color-indigo-100);
    border-top-color: var(--color-indigo-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== FORM ELEMENTS ===== */
.form-section {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-200);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-slate-700);
    outline: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.form-input::placeholder {
    color: var(--color-slate-300);
    font-weight: 500;
}

.form-input:focus {
    border-color: var(--color-indigo-400);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input+.form-input {
    margin-top: 0.5rem;
}

/* ===== INPUT CARD ===== */
.input-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.input-group {
    text-align: center;
}

.input-group-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.input-number {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-slate-50);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-slate-700);
    border: 1px solid transparent;
    outline: none;
    transition: all var(--transition-fast);
}

.input-number:focus {
    border-color: var(--color-indigo-100);
    background: var(--color-white);
}

/* Remove number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-indigo-600);
    color: var(--color-white);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-indigo-700);
    transform: translateY(-1px);
    box-shadow: 0 15px 20px -3px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--color-slate-50);
    color: var(--color-slate-600);
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-slate-100);
}

.btn-success {
    background: var(--color-emerald-500);
    color: var(--color-white);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn.success {
    background: var(--color-emerald-500) !important;
}

.btn-full {
    width: 100%;
}

/* ===== ITEMS LIST ===== */
.items-container {
    margin-bottom: 1rem;
}

.items-list {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-200);
    overflow: hidden;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--color-slate-50);
    transition: background var(--transition-fast);
}

.item-row:last-child {
    border-bottom: none;
}

.item-row:hover {
    background: var(--color-slate-50);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-dimensions {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-700);
}

.item-count {
    font-size: 0.5625rem;
    color: var(--color-slate-400);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-m2 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-indigo-600);
}

.btn-remove {
    background: none;
    border: none;
    color: var(--color-slate-300);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.btn-remove:hover {
    color: var(--color-rose-500);
}

/* ===== SUMMARY CARD ===== */
.summary-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 2rem;
    border: 2px solid var(--color-indigo-50);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1);
    margin-bottom: 1rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.summary-price-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-slate-50);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-slate-100);
}

.price-input {
    width: 4rem;
    font-size: 0.875rem;
    font-weight: 700;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-indigo-600);
}

.price-currency {
    font-weight: 700;
    color: var(--color-slate-300);
}

.summary-total-m2 {
    text-align: right;
}

.summary-total-m2-label {
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-total-m2-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-slate-800);
}

.summary-total-m2-unit {
    font-size: 0.625rem;
    opacity: 0.3;
}

.summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-slate-50);
}

.summary-total-price-label {
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--color-indigo-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-total-price-value {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--color-slate-900);
}

.summary-total-price-currency {
    font-size: 0.75rem;
    color: var(--color-slate-400);
    font-weight: 500;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== HISTORY ===== */
.history-header {
    font-size: 0.625rem;
    font-weight: 900;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 1.5rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--color-white);
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-100);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.history-item:hover {
    border-color: var(--color-indigo-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.history-info {
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
}

.history-customer {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--color-slate-800);
    text-transform: uppercase;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.history-date,
.history-m2 {
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-md);
}

.history-date {
    background: var(--color-slate-50);
    color: var(--color-slate-400);
}

.history-m2 {
    background: var(--color-indigo-50);
    color: var(--color-indigo-500);
}

.history-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-price {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-slate-800);
    white-space: nowrap;
}

.history-buttons {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.history-item:hover .history-buttons {
    opacity: 1;
}

.btn-edit,
.btn-delete,
.btn-view {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.btn-edit:hover {
    color: var(--color-indigo-500);
}

.btn-delete:hover {
    color: var(--color-rose-500);
}

.btn-view:hover {
    color: var(--color-indigo-600);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-slate-300);
}

.empty-state svg {
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== PROFORMA ===== */
.proforma-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.proforma-actions {
    display: flex;
    gap: 0.5rem;
}

.proforma-content {
    background: var(--color-white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--color-slate-100);
}

.proforma-header {
    background: var(--color-white);
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-slate-50);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.proforma-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.proforma-brand-icon {
    background: var(--color-indigo-50);
    padding: 0.75rem;
    border-radius: var(--radius-xl);
    color: var(--color-indigo-600);
    border: 1px solid var(--color-indigo-100);
}

.proforma-brand-text h1 {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    color: var(--color-slate-800);
}

.proforma-brand-text p {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--color-indigo-400);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.proforma-header-info {
    text-align: right;
}

.proforma-header-title {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-slate-300);
    letter-spacing: 0.3em;
    margin-bottom: 0.25rem;
}

.proforma-id {
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--color-indigo-500);
    background: var(--color-indigo-50);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-indigo-100);
    display: inline-block;
}

.proforma-body {
    padding: 2.5rem;
}

.proforma-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    border-bottom: 1px solid var(--color-slate-50);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

.proforma-detail-label {
    font-size: 0.5625rem;
    font-weight: 900;
    color: var(--color-indigo-300);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.proforma-customer-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-slate-800);
    text-transform: uppercase;
    line-height: 1;
}

.proforma-job-desc {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-slate-400);
    margin-top: 0.25rem;
    font-style: italic;
}

.proforma-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-600);
}

.proforma-detail-right {
    text-align: right;
}

.proforma-table {
    width: 100%;
    font-size: 0.75rem;
    margin-bottom: 2.5rem;
}

.proforma-table thead tr {
    border-bottom: 1px solid var(--color-slate-100);
    text-align: left;
}

.proforma-table th {
    padding: 1rem 0;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-slate-300);
    letter-spacing: 0.2em;
}

.proforma-table tbody tr {
    border-bottom: 1px solid var(--color-slate-50);
}

.proforma-table tbody tr:last-child {
    border-bottom: none;
}

.proforma-table td {
    padding: 1.5rem 0;
}

.proforma-item-title {
    font-weight: 700;
    color: var(--color-slate-700);
    text-transform: uppercase;
}

.proforma-item-desc {
    font-size: 0.5625rem;
    color: var(--color-slate-400);
    margin-top: 0.125rem;
}

.proforma-table .text-center {
    text-align: center;
    font-weight: 700;
    color: var(--color-slate-400);
}

.proforma-table .text-right {
    text-align: right;
    font-weight: 700;
    color: var(--color-indigo-500);
}

.proforma-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 2rem;
    border-top: 1px solid var(--color-slate-50);
    flex-wrap: wrap;
    gap: 2rem;
}

.proforma-notes {
    font-size: 0.5rem;
    color: var(--color-slate-300);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.8;
    max-width: 20rem;
    font-style: italic;
}

.proforma-notes p {
    margin-bottom: 0.375rem;
}

.proforma-total-box {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: right;
    border: 1px solid var(--color-indigo-50);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.05);
    min-width: 16rem;
}

.proforma-total-m2-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-slate-50);
}

.proforma-total-m2-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.proforma-total-m2-value {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--color-slate-700);
    letter-spacing: -0.025em;
}

.proforma-total-price-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--color-indigo-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.proforma-total-price-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-indigo-600);
    letter-spacing: -0.05em;
}

.proforma-footer {
    background: var(--color-slate-50);
    padding: 1rem;
    text-align: center;
    font-size: 0.5rem;
    color: var(--color-slate-300);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--color-white);
    border-radius: 2rem;
    padding: 2rem;
    max-width: 24rem;
    width: 100%;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid var(--color-slate-100);
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-rose-50);
    color: var(--color-rose-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-800);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-text {
    font-size: 0.75rem;
    color: var(--color-slate-400);
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-actions .btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
}

/* ===== FOOTER ===== */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.5rem;
    color: var(--color-slate-300);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    border-top: 1px solid var(--color-slate-50);
    z-index: 30;
}

/* ===== ANIMATIONS ===== */
.animate-in {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .proforma-content {
        box-shadow: none;
        border: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-title-main {
        font-size: 1rem;
    }

    .nav-btn span {
        display: none;
    }

    main {
        padding: 1.5rem 1rem 5rem;
    }

    .input-grid {
        gap: 0.75rem;
    }

    .proforma-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .proforma-header-info {
        text-align: left;
    }

    .proforma-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .proforma-detail-right {
        text-align: left;
    }

    .proforma-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .proforma-total-box {
        width: 100%;
    }

    .summary-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .summary-actions {
        width: 100%;
    }

    .summary-actions .btn {
        width: 100%;
    }
}