/* ===================================
   Components CSS - Version Professionnelle & Responsive
    UI Components
   =================================== */

/* === 1. Variables & Reset (Consistency with dashboard.css) === */
:root {
    /* Couleurs Principales */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    
    /* Couleurs Sémantiques */
    --success-color: #10b981;
    --success-bg: #d1fae5;
    --warning-color: #f59e0b;
    --warning-bg: #fef3c7;
    --danger-color: #ef4444;
    --danger-bg: #fee2e2;
    --info-color: #3b82f6;
    --info-bg: #dbeafe;
    
    /* Neutres */
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Layout */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibilité : Focus visible */
a:focus-visible, button:focus-visible, input:focus-visible, .action-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   DASHBOARD COMPONENTS
   =================================== */

/* Stats Cards Modern */
.stats-card-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
}

.stats-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stats-card-modern .stats-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    opacity: 0.8;
    margin-bottom: 1rem;
    display: block;
}

.stats-card-modern .stats-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.stats-card-modern .stats-label {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Variants for Stats Cards */
.stats-card-modern.stats-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-card-modern.stats-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stats-card-modern.stats-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stats-card-modern.stats-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stats-card-modern.stats-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.action-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    aspect-ratio: 1 / 1.2;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.action-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.action-card .action-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
    display: block;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
    color: var(--primary-hover);
}

.action-card .action-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.action-card .action-description {
    color: var(--text-muted);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   PROFILE COMPONENTS
   =================================== */

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
    border-radius: 0 0 2rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
}

.profile-avatar {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    margin: 0 auto 1.5rem;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.profile-info {
    text-align: center;
    position: relative;
    z-index: 1;
}

.profile-info h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.profile-info p {
    opacity: 0.95;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin: 0;
}

/* Info Cards */
.info-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.info-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.info-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
}

.info-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   FORM COMPONENTS
   =================================== */

/* Modern Form Card */
.form-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    width: 100%;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}

.form-header h3 {
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.form-body {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-group-modern {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group-modern label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
}

.form-control-modern {
    width: 100%;
    padding: clamp(0.5rem, 2vw, 0.875rem) clamp(0.75rem, 2vw, 1.25rem);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    transition: var(--transition);
    background: var(--light-color);
    color: var(--dark-color);
    min-height: 48px;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--white);
    outline: none;
}

.form-control-modern::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control-modern:disabled {
    background: var(--light-color);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Form Validation States */
.form-control-modern.is-valid {
    border-color: var(--success-color);
}

.form-control-modern.is-valid:focus {
    box-shadow: 0 0 0 3px var(--success-bg);
}

.form-control-modern.is-invalid {
    border-color: var(--danger-color);
}

.form-control-modern.is-invalid:focus {
    box-shadow: 0 0 0 3px var(--danger-bg);
}

.form-text {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===================================
   NOTIFICATION COMPONENTS
   =================================== */

/* Toast Notifications */
.toast-modern {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: none;
    overflow: hidden;
    background: var(--white);
    min-width: 300px;
    max-width: 400px;
}

.toast-modern .toast-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    border-bottom: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.toast-modern .toast-body {
    padding: 1rem;
    background: var(--white);
    color: var(--dark-color);
}

/* Toast Variants */
.toast-modern.toast-success .toast-header {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.toast-modern.toast-warning .toast-header {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

.toast-modern.toast-danger .toast-header {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
}

.toast-modern.toast-info .toast-header {
    background: linear-gradient(135deg, var(--info-color) 0%, #1d4ed8 100%);
}

/* Alert Banners */
.alert-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-banner .alert-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.alert-banner .alert-content {
    flex: 1;
}

.alert-banner .alert-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.alert-banner .alert-message {
    opacity: 0.95;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Alert Variants */
.alert-banner.alert-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.alert-banner.alert-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: var(--dark-color);
}

.alert-banner.alert-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
}

.alert-banner.alert-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #1d4ed8 100%);
}

/* ===================================
   NAVIGATION COMPONENTS
   =================================== */

/* Breadcrumb Modern */
.breadcrumb-modern {
    background: linear-gradient(135deg, var(--light-color) 0%, #f1f5f9 100%);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-modern .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.breadcrumb-modern .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 600;
}

.breadcrumb-modern .breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Tab Navigation */
.nav-tabs-modern {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-tabs-modern .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.nav-tabs-modern .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-tabs-modern .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    border-bottom-color: var(--primary-hover);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Shadows */
.shadow-soft {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-medium {
    box-shadow: var(--shadow-md) !important;
}

.shadow-strong {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-extra {
    box-shadow: var(--shadow-xl) !important;
}

/* Gradients */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
}

.gradient-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #1d4ed8 100%);
}

/* Spacing */
.spacing-section {
    padding: 5rem 0;
}

.spacing-component {
    margin-bottom: 3rem;
}

.spacing-sm {
    margin-bottom: 1rem;
}

.spacing-md {
    margin-bottom: 2rem;
}

.spacing-lg {
    margin-bottom: 4rem;
}

/* Text Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.4s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Spinner */
.spinner-modern {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ===================================
   RESPONSIVE MEDIA QUERIES
   =================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .spacing-section {
        padding: 4rem 0;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Spacing */
    .spacing-section {
        padding: 3rem 0;
    }
    
    .spacing-component {
        margin-bottom: 2rem;
    }
    
    /* Profile */
    .profile-header {
        padding: 3rem 1.5rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        border-width: 3px;
    }
    
    .profile-info h2 {
        font-size: 1.5rem;
    }
    
    .profile-info p {
        font-size: 1rem;
    }
    
    /* Stats Cards */
    .stats-card-modern {
        padding: 1.5rem;
    }
    
    .stats-card-modern .stats-number {
        font-size: 2rem;
    }
    
    .stats-card-modern .stats-icon {
        font-size: 2.5rem;
    }
    
    /* Quick Actions */
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .action-card {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }
    
    .action-card .action-icon {
        font-size: 2rem;
    }
    
    .action-card .action-title {
        font-size: 1rem;
    }
    
    /* Forms */
    .form-body {
        padding: 1.5rem;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.25rem;
    }
    
    .form-control-modern {
        padding: 0.75rem 1rem;
        font-size: 1rem; /* Prevents zoom on iOS */
    }
    
    /* Navigation */
    .breadcrumb-modern {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-tabs-modern {
        gap: 0.25rem;
    }
    
    .nav-tabs-modern .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        flex: 1;
        text-align: center;
    }
    
    /* Alerts & Toasts */
    .alert-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .alert-banner .alert-icon {
        margin-bottom: 0.5rem;
    }
    
    .toast-modern {
        min-width: auto;
        max-width: calc(100% - 2rem);
        margin: 0 1rem;
    }
    
    /* Info Cards */
    .info-card {
        padding: 1.5rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .spacing-section {
        padding: 2rem 0;
    }
    
    .stats-card-modern .stats-number {
        font-size: 1.75rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        min-height: 120px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        text-align: left;
        padding: 1rem;
    }
    
    .action-card .action-icon {
        margin-bottom: 0;
        font-size: 2rem;
    }
    
    .profile-header {
        padding: 2rem 1rem;
    }
    
    .form-body {
        padding: 1.25rem;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

/* Extra Small Devices (max-width: 575px) */
@media (max-width: 575px) {
    .stats-card-modern {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .stats-card-modern .stats-icon {
        font-size: 2rem;
    }

    .stats-card-modern .stats-number {
        font-size: 1.75rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-header {
        padding: 2rem 1rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-card {
        min-height: 140px;
        padding: 1.25rem 1rem;
    }

    .form-header {
        padding: 1.5rem 1rem;
    }

    .form-body {
        padding: 1.5rem 1rem;
    }

    .info-card {
        margin-bottom: 1rem;
    }

    .toast-modern {
        min-width: 280px;
        max-width: 90vw;
    }

    .nav-tabs-modern .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Small Devices (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-card-modern .stats-number {
        font-size: 2rem;
    }

    .form-body {
        padding: 1.75rem;
    }

    .toast-modern {
        min-width: 300px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header {
        padding: 3rem 2rem;
    }

    .form-body {
        padding: 2rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .action-card {
        min-height: 180px;
    }

    .stats-card-modern:hover {
        transform: translateY(-5px);
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats-card-modern .stats-icon {
        font-size: 3rem;
    }

    .form-card {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .action-card,
    .form-control-modern,
    .nav-tabs-modern .nav-link {
        min-height: 48px;
    }

    .action-card:hover {
        transform: none;
    }

    .action-card .action-icon:hover {
        transform: none;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .btn, .navbar, .footer, .modal, .toast-modern, .alert-banner, 
    .sidebar-toggle, .admin-sidebar, .sidebar-backdrop, .nav-tabs-modern,
    .action-card, .quick-actions-grid {
        display: none !important;
    }
    
    .form-card, .info-card, .stats-card-modern {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .stats-card-modern {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .profile-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        padding: 1rem;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .form-control-modern {
        border: 1px solid #000;
        background: white;
    }
}

/* ===================================
   DARK MODE SUPPORT (Optional)
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support */
    /*
    :root {
        --dark-color: #f8fafc;
        --light-color: #1e293b;
        --white: #1e293b;
        --border-color: #334155;
        --text-muted: #94a3b8;
    }
    
    .form-card, .info-card, .action-card, .toast-modern {
        background: #1e293b;
        color: #f8fafc;
        border-color: #334155;
    }
    
    .form-control-modern {
        background: #0f172a;
        color: #f8fafc;
        border-color: #334155;
    }
    */
}