/* Custom Stylesheet for Pro Invoice V2
   Compatible con Bootstrap 5 y PHP 7.4 */

:root {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    
    --bg-light-custom: #f8f9ff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light-custom);
    color: var(--slate-800);
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Custom width wrapper */
.container-custom {
    max-width: 800px !important;
}

/* Rounded and shadows */
.card-custom {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

/* Inputs and Forms styling */
.form-control-custom, .form-select-custom {
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    background-color: var(--slate-50);
    transition: all 0.2s;
}

.form-control-custom:focus, .form-select-custom:focus {
    background-color: #ffffff;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    outline: none;
}

.label-custom {
    font-size: 10px;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    display: block;
}

/* Micro-animations */
.btn-primary-custom {
    background-color: var(--blue-600);
    border-color: var(--blue-600);
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary-custom:hover {
    background-color: var(--blue-700);
    border-color: var(--blue-700);
    transform: translateY(-1px);
}

.btn-secondary-custom {
    background-color: #ffffff;
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-secondary-custom:hover {
    background-color: var(--slate-50);
    color: var(--slate-900);
}

/* Pulse indicator */
.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Custom Bottom Pill Nav Bar */
.nav-pill-container {
    height: 76px !important;
}

.nav-pill-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 56px;
    border-radius: 12px;
    color: var(--slate-400);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: none;
    background: none;
}

.nav-pill-btn i {
    font-size: 18px;
    margin-bottom: 2px;
}

.nav-pill-btn span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

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

/* Active State Normal */
.nav-pill-btn.active {
    background-color: var(--blue-50);
    color: var(--blue-600) !important;
    font-weight: 700;
}

/* Active Primary State (Invoices center highlight) */
.nav-pill-btn.active-primary {
    background-color: var(--blue-600);
    color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    font-weight: 700;
}

/* Signature Pad canvas styling */
.signature-container {
    border: 2px dashed var(--slate-300);
    border-radius: 12px;
    background-color: var(--slate-50);
    position: relative;
    overflow: hidden;
}

.signature-pad {
    display: block;
    width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
}

.signature-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(0,0,0,0.05);
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--slate-500);
    pointer-events: none;
}

/* Utilities */
.bg-blue-soft {
    background-color: var(--blue-50);
}

.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-900 { color: var(--slate-900); }

/* Print Media Styles */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background-color: #ffffff !important;
        font-size: 12px;
    }
    main {
        margin: 0 !important;
        padding: 0 !important;
    }
    .card-custom {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .container-custom {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
