@import url('https://fonts.googleapis.com/css2?family=Inter:wght=300;400;500;600;700;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.8);
}

.preview-viewport {
    width: 100%;
    height: calc(100vh - 64px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow: hidden;
}

.preview-scale-wrapper {
    transform-origin: top center;
    transition: transform 0.2s ease;
}

.quote-preview {
    width: 800px;
    min-height: 1056px;
    background: white;
    padding: 60px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    color: #1e293b;
}

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

    body {
        background: white !important;
        padding: 0;
        margin: 0;
    }

    .preview-viewport {
        padding: 0;
        display: block;
        height: auto;
        overflow: visible;
    }

    .preview-scale-wrapper {
        transform: scale(1) !important;
        margin: 0 !important;
    }

    .quote-preview {
        box-shadow: none;
        margin: 0;
        width: 100%;
        padding: 40px;
    }

    main {
        overflow: visible !important;
        height: auto !important;
    }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
}

.status-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pendiente {
    background: #fef9c3;
    color: #854d0e;
}

.status-disenando {
    background: #dbeafe;
    color: #1e40af;
}

.status-procesado {
    background: #f3e8ff;
    color: #6b21a8;
}

.status-entrega {
    background: #ffedd5;
    color: #9a3412;
}

.status-entregado {
    background: #dcfce7;
    color: #166534;
}

.dragging {
    opacity: 0.5;
    background: #eff6ff;
}

.dark .dragging {
    background: #1e293b;
}

#sidebar {
    transition: transform 0.3s ease-in-out;
    z-index: 60;
}

.exit-preview-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.export-image-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 100;
}

.dot {
    transition: all 0.3s ease-in-out;
}

input:checked~.dot {
    transform: translateX(100%);
    background-color: #3b82f6;
}

/* Estilos de la Calculadora (Traducidos de directivas @apply de Tailwind) */
.calc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-width: 1px;
}

.calc-btn:active {
    transform: scale(0.95);
}

body:not(.dark) .calc-btn {
    border-color: #e2e8f0;
}

body.dark .calc-btn {
    border-color: #334155;
}

.calc-btn-op {
    background-color: #fffbeb;
    color: #d97706;
    border-color: #fef3c7;
}

body.dark .calc-btn-op {
    background-color: rgba(146, 64, 14, 0.3);
    color: #fbbf24;
    border-color: rgba(146, 64, 14, 0.8);
}

.calc-btn-num {
    background-color: #ffffff;
    color: #334155;
}

body.dark .calc-btn-num {
    background-color: #1e293b;
    color: #e2e8f0;
}

.calc-btn-eq {
    background-color: #d97706;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2), 0 2px 4px -1px rgba(217, 119, 6, 0.1);
}

body.dark .calc-btn-eq {
    box-shadow: none;
}
