/**
 * Swisss Public Invoices - Styles
 */

:root {
    --primary: #14B8A6;
    --primary-dark: #0D9488;
    --primary-light: #5EEAD4;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Invoice Card */
.invoice-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Status badges */
.status-badge {
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-draft { background: #F3F4F6; color: #374151; }
.status-sent { background: #DBEAFE; color: #1E40AF; }
.status-paid { background: #D1FAE5; color: #065F46; }
.status-overdue { background: #FEE2E2; color: #991B1B; }
.status-accepted { background: #D1FAE5; color: #065F46; }
.status-rejected { background: #FEE2E2; color: #991B1B; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
}

.btn-secondary {
    background: #F3F4F6;
    color: #374151;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #E5E7EB;
}

.btn-success {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

/* Signature Canvas */
.signature-canvas {
    border: 2px dashed #E5E7EB;
    border-radius: 0.75rem;
    background: #FAFAFA;
    cursor: crosshair;
}

.signature-canvas.signed {
    border-style: solid;
    border-color: var(--primary);
    background: white;
}

/* Payment methods */
.payment-method {
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: var(--primary-light);
}

.payment-method.selected {
    border-color: var(--primary);
    background: rgba(20, 184, 166, 0.05);
}

/* Loading */
.loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #E5E7EB;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #1F2937;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: slideUp 0.3s ease;
}

.toast.success { background: #059669; }
.toast.error { background: #DC2626; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Print styles */
@media print {
    body { background: white; }
    .no-print { display: none !important; }
    .invoice-card { box-shadow: none; }
}
