/* 
 * Admin Premium Theme - Route du Shot
 * Thème admin exclusif avec design sophistiqué et animations fluides
 * Antonin TalentAI - 2025
 */

:root {
    /* Couleurs principales */
    --primary: #2196F3;
    --primary-light: #64B5F6;
    --primary-dark: #1976D2;
    --secondary: #673AB7;
    --accent: #FFC107;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --info: #00BCD4;
    
    /* Couleurs de fond et de texte */
    --bg-body: #000000;
    --bg-card: rgba(30, 30, 30, 0.6);
    --bg-navbar: rgba(15, 15, 15, 0.8);
    --bg-input: rgba(40, 40, 40, 0.6);
    --bg-hover: rgba(60, 60, 60, 0.4);
    
    /* Texte */
    --text: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-light: #FFFFFF;
    --text-faded: rgba(255, 255, 255, 0.7);
    
    /* Bordures */
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* Ombres */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.35);
    --inner-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
    
    /* Espacements */
    --spacing-sm: 8px;
    --spacing: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glass-backdrop: blur(12px);
    
    /* Glow Effects */
    --glow-primary: 0 0 15px rgba(33, 150, 243, 0.5);
    --glow-secondary: 0 0 15px rgba(103, 58, 183, 0.5);
    --glow-success: 0 0 15px rgba(76, 175, 80, 0.5);
    --glow-danger: 0 0 15px rgba(244, 67, 54, 0.5);
    --glow-warning: 0 0 15px rgba(255, 152, 0, 0.5);
    --glow-info: 0 0 15px rgba(0, 188, 212, 0.5);
    
    /* Autres */
    --sidebar-width: 250px;
    --header-height: 70px;
    --card-header-height: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background-color: #000000;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 10%, rgba(33, 150, 243, 0.1), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(103, 58, 183, 0.1), transparent 40%);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* NAVIGATION */
.navbar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    height: var(--header-height);
    background-color: var(--bg-navbar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    
    color: var(--text-light);
}

.navbar-brand img {
    height: 40px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    }
}

.navbar-actions {
    display: flex;
    gap: var(--spacing);
}

/* Layout principal */
.content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 70px; /* Espace pour le footer fixe */
}

.page-container {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.main-content {
    width: 100%;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    font-size: 1.2rem;
}

.footer-brand {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.footer-brand .heart {
    color: #F44336;
    font-size: 1.3rem;
    position: relative;
    top: -1px;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.footer-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.footer-link:hover {
    color: var(--primary);
}

.olive-logo {
    height: 22px;
    width: auto;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-radius);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-normal);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    transform: var(--card-hover-translate);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: var(--glass-border);
    position: relative;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text);
}

.card-title i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.card-body {
    padding: var(--spacing-lg);
    position: relative;
}

.card-body.p-0 {
    padding: 0;
}

/* Bienvenue et statistiques */
.welcome-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-radius);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.welcome-message::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, rgba(127, 99, 201, 0.15), transparent 70%);
    pointer-events: none;
}

.welcome-text h2 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.welcome-text p {
    color: var(--text-muted);
    max-width: 600px;
}

.welcome-actions {
    display: flex;
    gap: var(--spacing-md);
}

.stat-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-radius);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.stat-card:hover {
    transform: var(--card-hover-translate);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-light);
    text-shadow: var(--glow-primary);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-card:nth-child(2) .stat-icon {
    color: var(--secondary-light);
    text-shadow: var(--glow-secondary);
}

.stat-card:nth-child(3) .stat-icon {
    color: var(--accent);
    text-shadow: var(--glow-accent);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    background: rgba(20, 20, 28, 0.4);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text);
    margin-bottom: 0;
}

.table thead th {
    background: rgba(43, 88, 118, 0.2);
    color: var(--text);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: var(--glass-border);
    text-align: left;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table thead th:first-child {
    border-top-left-radius: 10px;
}

.table thead th:last-child {
    border-top-right-radius: 10px;
}

.table tbody tr {
    transition: var(--transition-normal);
    position: relative;
}

.table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: var(--transition-normal);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table tbody tr:hover::before {
    background: var(--primary-light);
    box-shadow: var(--glow-primary);
}

.table tbody td {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table .progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.table .progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(75, 134, 197, 0.5);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-primary {
    background: linear-gradient(90deg, #2196F3, #1A237E);
    border: none;
    color: white;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(90deg, #F44336, #C62828);
    border: none;
    color: white;
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.btn-success {
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
    border: none;
    color: white;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon.btn-sm {
    width: 30px;
    height: 30px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
    transition: var(--transition-normal);
}

.badge-primary {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.badge-secondary {
    background: rgba(78, 67, 118, 0.2);
    color: #7f63c9;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(78, 67, 118, 0.3);
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Formulaires */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    background: rgba(20, 20, 28, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: rgba(75, 134, 197, 0.5);
    box-shadow: 0 0 0 3px rgba(75, 134, 197, 0.2);
    background: rgba(20, 20, 28, 0.6);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-backdrop.d-none {
    display: none !important;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    margin: 0 15px;
}

.modal.d-none {
    display: none !important;
}

.modal.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.25rem;
    
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: var(--primary);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 15px 25px;
    border-top: 1px solid var(--border);
}

.close-btn, .modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover, .modal-close:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.5s ease forwards;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Highcharts */
.chart-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-radius);
    border: var(--glass-border);
    padding: var(--spacing-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1060;
    max-width: 350px;
}

.notification {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--glass-radius);
    border-left: 3px solid var(--primary);
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    animation: slideInRight 0.3s ease forwards;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.notification-success {
    border-left-color: var(--success);
}

.notification-error {
    border-left-color: var(--danger);
}

.notification-warning {
    border-left-color: var(--warning);
}

.notification-icon {
    flex-shrink: 0;
    margin-right: var(--spacing-sm);
    font-size: 1.25rem;
}

.notification-success .notification-icon {
    color: var(--success);
}

.notification-error .notification-icon {
    color: var(--danger);
}

.notification-warning .notification-icon {
    color: var(--warning);
}

.notification-content {
    flex: 1;
}

.notification-title {
    
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    margin-left: var(--spacing-sm);
    transition: var(--transition-normal);
}

.notification-close:hover {
    color: var(--text);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* TABLE ACTIONS & BUTTONS */
.table-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 5px;
}

.vote-btn, 
.delete-btn,
.action-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Effet de lumière sur les boutons */
.vote-btn::before, 
.delete-btn::before,
.action-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.vote-btn:hover::before, 
.delete-btn:hover::before,
.action-btn:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-out;
}

/* Effet d'agrandissement sur les icônes */
.vote-btn i, 
.delete-btn i,
.action-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    color: white;
}

.vote-btn:hover i, 
.delete-btn:hover i,
.action-btn:hover i {
    transform: scale(1.3);
}

.vote-btn:active, 
.delete-btn:active,
.action-btn:active {
    transform: scale(0.95);
}

/* Styles des boutons d'action */
.btn-success {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.5), 0 0 15px rgba(76, 175, 80, 0.3);
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, #F44336, #C62828);
    color: white;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 15px rgba(244, 67, 54, 0.5), 0 0 15px rgba(244, 67, 54, 0.3);
    transform: translateY(-3px);
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid rgba(244, 67, 54, 0.5);
    color: #F44336;
}

.btn-outline-danger:hover {
    background: rgba(244, 67, 54, 0.1);
    border-color: #F44336;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2), 0 0 15px rgba(244, 67, 54, 0.2);
    transform: translateY(-3px);
}

/* Style pour les boutons désactivés */
.btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(80%);
}

.btn[disabled]:hover {
    transform: none;
    box-shadow: none;
}

.btn[disabled]:hover i {
    transform: none;
}

/* Les boutons doivent être bien cliquables */
.table tr td:last-child {
    position: relative;
    z-index: 5;
}

/* VOTE COUNT */
.vote-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    display: block;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

tr:hover .vote-count {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.progress {
    height: 15px !important;
    background-color: rgba(30, 30, 30, 0.8) !important;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    height: 100%;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
    transition: width 0.5s ease-out;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(200%);
    }
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 18px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.table th {
    
    color: var(--text-faded);
    background-color: rgba(30, 30, 30, 0.5);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(60, 60, 60, 0.4);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.chart-container {
    margin: 0 auto;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: var(--transition);
    padding: 15px;
    background: rgba(25, 25, 25, 0.5);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.chart-updated {
    animation: chartPulse 0.8s ease;
}

@keyframes chartPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}
