/* ====================
 * VELITES PARTNERS USA - CLEAN STYLESHEET
 * Built on top of Pico CSS framework
 * ==================== */

/* Custom Pico CSS variables for dark theme */
:root {
    --pico-primary: #3b82f6;
    --pico-primary-hover: #2563eb;
    --pico-primary-focus: rgba(59, 130, 246, 0.25);
    --pico-primary-inverse: #0f172a;
    --pico-primary-background: rgba(59, 130, 246, 0.1);
}

/* Enhanced dark theme colors */
[data-theme="dark"] {
    --pico-primary: #60a5fa;
    --pico-primary-hover: #3b82f6;
    --pico-primary-focus: rgba(96, 165, 250, 0.25);
    --pico-primary-inverse: #1e293b;
    --pico-primary-background: rgba(96, 165, 250, 0.1);
    --pico-success: #22c55e;
    --pico-warning: #f59e0b;
    --pico-error: #ef4444;
}

/* ====================
 * CUSTOM ENHANCEMENTS
 * ==================== */

/* Form improvements */
fieldset {
    margin-bottom: 2rem;
}

fieldset legend {
    font-weight: 600;
    color: var(--pico-primary);
    margin-bottom: 1rem;
}

/* Grid improvements for better responsiveness */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Switch/checkbox improvements */
input[type="checkbox"][role="switch"] {
    margin-bottom: 1rem;
}

/* Alert enhancements */
[role="alert"] {
    padding: 1rem;
    border-radius: var(--pico-border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--pico-primary);
    background-color: var(--pico-primary-background);
    color: var(--pico-color);
}

/* Navigation active state */
.nav-tabs a.active {
    font-weight: 600;
}

/* Form field disabled state */
input:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error states */
.success {
    --pico-border-color: #22c55e;
    --pico-background-color: rgba(34, 197, 94, 0.0625);
    border-left-color: #22c55e;
}

.error {
    --pico-border-color: #ef4444;
    --pico-background-color: rgba(239, 68, 68, 0.0625);
    border-left-color: #ef4444;
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--pico-muted-color); }

/* ====================
 * RESPONSIVE IMPROVEMENTS
 * ==================== */

/* Ensure forms look good on all devices */
@media (max-width: 576px) {
    article {
        padding: 1rem;
    }
    
    fieldset {
        margin-bottom: 1.5rem;
    }
    
    button {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .header-nav,
    .logout-form,
    button {
        display: none;
    }
}