/* Variables CSS */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #00d2d3;
    --danger-color: #ff6b6b;
    --warning-color: #feca57;
    --info-color: #48dbfb;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --sidebar-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #00d2d3 0%, #00a8a8 100%);
    --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    --gradient-warning: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
    --gradient-info: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fb 0%, #e9ecef 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Page de connexion */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 70%);
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 70%);
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: -100px;
    animation: float 9s ease-in-out infinite 3s;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 70%);
}

.shape-4 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: -75px;
    animation: float 7s ease-in-out infinite 1s;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 70%);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-30px) rotate(15deg) scale(1.05);
    }
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-form:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-container {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 25px rgba(102, 126, 234, 0.4);
    animation: pulse 3s infinite;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 15px 25px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
        transform: scale(1.05);
    }
}

.logo-container i {
    font-size: 2.2rem;
    color: white;
    z-index: 1;
    position: relative;
}

.login-header h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.login-header p {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 0;
}

/* Amélioration des labels pour les champs de saisie */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* Animation de saisie améliorée */
.input-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
}

.input-container input:valid {
    background: rgba(255, 255, 255, 0.95);
}

/* Effet de remplissage progressif */
.input-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 0 16px 16px;
}

.input-container:focus-within::before {
    width: 100%;
}

/* Amélioration de l'icône de validation */
.input-container.valid .input-icon {
    color: var(--success-color);
}

.input-container.invalid .input-icon {
    color: var(--danger-color);
}

/* Animation de secousse pour les champs invalides */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.input-container.invalid {
    animation: shake 0.5s ease-in-out;
    border-color: var(--danger-color);
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.1);
}

.input-container.valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(6, 255, 165, 0.1);
}

/* Icônes de validation */
.input-container.valid::after {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInCheck 0.3s ease forwards;
}

.input-container.invalid::after {
    content: '\f00d'; /* Font Awesome times icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--danger-color);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInCheck 0.3s ease forwards;
}

/* Ne pas afficher l'icône de validation si le bouton de bascule du mot de passe est présent */
.input-container:has(.password-toggle)::after {
    display: none;
}

@keyframes fadeInCheck {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Amélioration de l'effet de focus */
.input-container:focus-within {
    transform: translateY(-2px);
}

/* Animation de l'icône lors de la saisie */
.input-container:has(input:focus) .input-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.input-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 15px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 1);
}

.input-icon {
    position: absolute;
    left: 20px;
    color: #8b92a8;
    font-size: 1.2rem;
    z-index: 2;
    transition: var(--transition);
}

.input-container input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.8rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    background: transparent;
    color: var(--dark-color);
}

.input-container input::placeholder {
    color: #a0a9c4;
    font-weight: 400;
    transition: var(--transition);
}

.input-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
}

.input-container input:focus + .input-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.input-container:focus-within .input-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.input-container input:focus::placeholder {
    opacity: 0.7;
}

.password-toggle {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: #8b92a8;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2;
    transition: var(--transition);
    padding: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.password-toggle:active {
    transform: scale(0.95);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-color);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 8px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e9ecef;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-login:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-login:hover:before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.login-error {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(248, 215, 218, 0.9);
    backdrop-filter: blur(5px);
    color: #721c24;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.login-footer p {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Application principale */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--gradient-primary);
    color: white;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.sidebar-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-header i {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
    position: relative;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border-radius: 0 25px 25px 0;
}

.sidebar-menu a:hover {
    color: white;
    transform: translateX(5px);
}

.sidebar-menu a:hover::before {
    width: 100%;
}

.sidebar-menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.sidebar-menu a.active::before {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu i {
    margin-right: 1rem;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.sidebar-menu a:hover i {
    transform: scale(1.1);
}

.sidebar-menu a.active i {
    transform: scale(1.1);
}

/* Logout button special styling */
.sidebar-menu li:last-child a {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-menu li:last-child a:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: white;
    padding: 1.2rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-left: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-toggle {
    display: none;
    background: var(--gradient-primary);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: var(--transition);
}

.user-info:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.user-info i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content */
.content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: #e9ecef;
    color: var(--dark-color);
}

.btn-secondary:hover {
    background: #dee2e6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-card:nth-child(1) .stat-icon {
    background: var(--gradient-success);
}

.stat-card:nth-child(2) .stat-icon {
    background: var(--gradient-info);
}

.stat-card:nth-child(3) .stat-icon {
    background: var(--gradient-warning);
}

.stat-card:nth-child(4) .stat-icon {
    background: var(--gradient-primary);
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    position: relative;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.stat-card:hover .stat-value::after {
    width: 50px;
}

/* Trend indicators */
.trend {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.trend.positive {
    color: var(--success-color);
    background: rgba(0, 210, 211, 0.1);
}

.trend.negative {
    color: var(--danger-color);
    background: rgba(255, 107, 107, 0.1);
}

/* Charts */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.chart-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.chart-controls {
    margin-bottom: 1rem;
}

.chart-controls select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

/* Canvas containers for charts */
.chart-card canvas {
    max-height: 300px !important;
    height: 300px !important;
}

.chart-card .chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Recent Activities */
.recent-activities {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.recent-activities h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    background: var(--primary-color);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filters .form-control {
    min-width: 200px;
}

/* Enhanced Form controls */
.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    position: relative;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(102, 126, 234, 0.1) 50%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.form-control:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background-size: 100% 100%;
    transform: translateY(-2px);
}

/* Enhanced Select dropdowns */
select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
    cursor: pointer;
}

select.form-control:hover {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23764ba2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Enhanced Date inputs */
input[type="date"].form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

/* Enhanced Text inputs */
input[type="text"].form-control,
input[type="number"].form-control,
input[type="tel"].form-control,
input[type="email"].form-control {
    padding-left: 1.2rem;
}

/* Enhanced Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    position: relative;
    padding-left: 0.5rem;
}

.form-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enhanced Search inputs */
input[type="search"].form-control,
input[placeholder*="Rechercher"].form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cpath d='m21 21-4.35-4.35'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 20px;
    padding-left: 3rem;
}

/* Enhanced Number inputs */
input[type="number"].form-control {
    -moz-appearance: textfield;
}

input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Form validation styles */
.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d2d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20,6 9,17 4,12'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cline x1='15' y1='9' x2='9' y2='15'%3e%3c/line%3e%3cline x1='9' y1='9' x2='15' y2='15'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

/* Tables */
.table-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f3f5;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: var(--dark-color);
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Product image */
.product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Status badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.in-stock {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 210, 211, 0.3);
}

.status-badge.low-stock {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 10px rgba(254, 202, 87, 0.3);
}

.status-badge.out-of-stock {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* Enhanced Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.5rem 0.8rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s;
}

.btn-action:hover::before {
    left: 100%;
}

.btn-edit {
    background: var(--gradient-info);
    color: white;
    box-shadow: 0 4px 10px rgba(72, 219, 251, 0.3);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(72, 219, 251, 0.4);
}

.btn-delete {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.btn-view {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(241, 243, 245, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(241, 243, 245, 0.8);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Form rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Products section in sale form */
.products-section {
    margin-bottom: 2rem;
    background: rgba(102, 126, 234, 0.02);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.products-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.product-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-remove-product {
    padding: 0.6rem;
    background: var(--gradient-danger);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.btn-remove-product:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

/* Sale summary */
.sale-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-top: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.summary-row:hover {
    padding-left: 0.5rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    margin: 0 -1.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 999;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .sidebar.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .filters {
        flex-direction: column;
    }

    .filters .form-control {
        min-width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .header-left h1 {
        font-size: 1.3rem;
    }

    .modal {
        width: 95%;
        margin: 1rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
}

/* Additional animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeInUp 0.4s ease;
}

/* Enhanced loading animation */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg);
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Enhanced charts */
.chart-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.chart-card:hover::before {
    opacity: 1;
}

.chart-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Enhanced recent activities */
.recent-activities {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.recent-activities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-info);
}

.recent-activities h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.activity-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(241, 243, 245, 0.8);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.activity-item:hover {
    background: rgba(102, 126, 234, 0.03);
    transform: translateX(5px);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    background: var(--gradient-info);
    box-shadow: 0 4px 10px rgba(72, 219, 251, 0.3);
    transition: var(--transition);
}

.activity-item:hover .activity-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.3s ease;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Export buttons */
.export-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-export {
    padding: 0.5rem 1rem;
    background: #e9ecef;
    color: var(--dark-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export:hover {
    background: #dee2e6;
}

/* Print styles */
@media print {
    .sidebar,
    .header,
    .btn-action,
    .modal-overlay {
        display: none !important;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }

    .table-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Category Management Styles */
.category-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
}

.category-items {
    padding: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f5;
    transition: var(--transition);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background: #f8f9fa;
}

.category-name {
    font-weight: 500;
    color: var(--dark-color);
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

.add-category-section {
    border-top: 1px solid #f1f3f5;
    padding-top: 1.5rem;
}

.add-category-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

.add-category-section .form-group {
    margin-bottom: 1rem;
}

.add-category-section .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.add-category-section .btn-primary {
    width: 100%;
    justify-content: center;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: var(--success-color);
    color: var(--dark-color);
}

.notification-error {
    background: var(--danger-color);
}

.notification-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.notification-info {
    background: var(--info-color);
}
/* Enhanced Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    color: white;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 300px;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.notification-success {
    background: var(--gradient-success);
    color: white;
}

.notification-success::before {
    background: rgba(255, 255, 255, 0.3);
}

.notification-error {
    background: var(--gradient-danger);
    color: white;
}

.notification-error::before {
    background: rgba(255, 255, 255, 0.3);
}

.notification-warning {
    background: var(--gradient-warning);
    color: white;
}

.notification-warning::before {
    background: rgba(255, 255, 255, 0.3);
}

.notification-info {
    background: var(--gradient-info);
    color: white;
}

.notification-info::before {
    background: rgba(255, 255, 255, 0.3);
}

/* Enhanced Category Management */
.category-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius-lg);
    background: white;
}

.category-items {
    padding: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(241, 243, 245, 0.8);
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

.category-name {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding-left: 1rem;
}

.category-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

.add-category-section {
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    padding-top: 1.5rem;
    background: rgba(102, 126, 234, 0.02);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}

.add-category-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-category-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.add-category-section .form-group {
    margin-bottom: 1rem;
}

.add-category-section .form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.add-category-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.add-category-section .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-category-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}