/**
 * ALMA Modern Design System
 * Custom CSS pentru noul design vibrant și modern
 */

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

/* Design System Variables */
:root {
    /* Primary Colors */
    --alma-primary: #E91E63;
    --alma-primary-dark: #9C27B0;
    
    /* Accent Colors */
    --alma-blue: #3B82F6;
    --alma-teal: #14B8A6;
    --alma-green: #22C55E;
    --alma-indigo: #6366F1;
    --alma-sky: #0EA5E9;
    --alma-orange: #F97316;
    --alma-red: #EF4444;
    --alma-yellow: #F59E0B;
    
    /* Neutral Colors */
    --alma-bg: #F8F9FA;
    --alma-card-bg: #FFFFFF;
    --alma-border: #E5E7EB;
    --alma-text-primary: #1F2937;
    --alma-text-secondary: #6B7280;
    
    /* Shadows */
    --alma-shadow-soft: 0px 4px 16px rgba(0, 0, 0, 0.05);
    --alma-shadow-md: 0px 6px 20px rgba(0, 0, 0, 0.08);
    --alma-shadow-lg: 0px 10px 30px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --alma-radius-sm: 8px;
    --alma-radius-md: 12px;
    --alma-radius-lg: 16px;
    --alma-radius-xl: 20px;
    --alma-radius-2xl: 24px;
    --alma-radius-full: 9999px;
    
    /* Spacing */
    --alma-space-xs: 4px;
    --alma-space-sm: 8px;
    --alma-space-md: 16px;
    --alma-space-lg: 24px;
    --alma-space-xl: 32px;
    --alma-space-2xl: 48px;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--alma-bg);
    color: var(--alma-text-primary);
    line-height: 1.6;
}

/* Gradient Utilities */
.primary-gradient-bg {
    background-image: linear-gradient(to right, var(--alma-primary), var(--alma-primary-dark));
}

.primary-gradient-text {
    background-image: linear-gradient(to right, var(--alma-primary), var(--alma-primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Soft Card Shadow */
.soft-card-shadow {
    box-shadow: var(--alma-shadow-soft);
}

.soft-card-shadow-md {
    box-shadow: var(--alma-shadow-md);
}

.soft-card-shadow-lg {
    box-shadow: var(--alma-shadow-lg);
}

/* Toggle Switch Styles */
.toggle-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-checkbox + .toggle-label {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    background-color: #cbd5e0;
    border-radius: var(--alma-radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-checkbox + .toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-label {
    background-color: var(--alma-green);
}

.toggle-checkbox:checked + .toggle-label::after {
    transform: translateX(24px);
}

.toggle-checkbox:focus + .toggle-label {
    outline: 2px solid var(--alma-primary);
    outline-offset: 2px;
}

/* Button Hover Effects */
.btn-hover-scale:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.btn-hover-opacity:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

/* Card Hover Effects */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--alma-shadow-md);
    transition: all 0.3s ease;
}

/* Icon Sizing */
.icon-sm { font-size: 14px; }
.icon-md { font-size: 16px; }
.icon-lg { font-size: 20px; }
.icon-xl { font-size: 24px; }
.icon-2xl { font-size: 32px; }

/* Responsive Text Sizes */
@media (max-width: 768px) {
    .text-responsive-xl { font-size: 1.25rem; }
    .text-responsive-2xl { font-size: 1.5rem; }
    .text-responsive-3xl { font-size: 1.875rem; }
}

@media (min-width: 769px) {
    .text-responsive-xl { font-size: 1.5rem; }
    .text-responsive-2xl { font-size: 1.875rem; }
    .text-responsive-3xl { font-size: 2.25rem; }
}

/* Currency Formatting */
.currency-format .decimal-zero {
    display: none;
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Focus States */
.focus-ring:focus {
    outline: 2px solid var(--alma-primary);
    outline-offset: 2px;
}

/* Success/Error States */
.state-success {
    border-left: 4px solid var(--alma-green);
    background-color: #f0fdf4;
    color: #166534;
}

.state-error {
    border-left: 4px solid var(--alma-red);
    background-color: #fef2f2;
    color: #dc2626;
}

.state-warning {
    border-left: 4px solid var(--alma-yellow);
    background-color: #fffbeb;
    color: #d97706;
}

/* Mobile Navigation Rail */
@media (max-width: 768px) {
    .nav-rail {
        width: 80px;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 40;
    }
    
    .main-content-mobile {
        margin-left: 80px;
    }
}

/* Sidebar Responsive */
.sidebar-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print Styles */
@media print {
    .no-print { display: none !important; }
    .print-break { page-break-before: always; }
}