/* Variables CSS pour les couleurs Netflix */
:root {
    --netflix-red: #E50914;
    --netflix-dark-red: #B20710;
    --netflix-black: #000000;
    --netflix-dark-gray: #141414;
    --netflix-white: #FFFFFF;
    --netflix-gray: #808080;
    --netflix-light-gray: #333333;
}

/* Loading Screen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--netflix-black) 0%, var(--netflix-dark-gray) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-logo .logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--netflix-red);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: var(--netflix-dark-red);
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: var(--netflix-white);
    animation-delay: 0.4s;
}

.loading-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--netflix-red);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.loading-text p {
    font-size: 1.1rem;
    color: var(--netflix-white);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--netflix-dark-gray);
    color: var(--netflix-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.dashboard-header {
    background: var(--netflix-black);
    border-bottom: 1px solid var(--netflix-light-gray);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-left .logo .logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-left .logo:hover .logo-image {
    transform: scale(1.05);
}

.header-center .search-bar {
    display: flex;
    align-items: center;
    background: var(--netflix-light-gray);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    width: 300px;
}

.header-center .search-bar i {
    color: var(--netflix-gray);
    margin-right: 0.5rem;
}

.header-center .search-bar input {
    background: none;
    border: none;
    color: var(--netflix-white);
    outline: none;
    width: 100%;
}

.header-center .search-bar input::placeholder {
    color: var(--netflix-gray);
}

/* Menu utilisateur et avatar */
.header-right .user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.header-right .user-avatar {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--netflix-red);
    background: var(--netflix-red);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-right .user-avatar:hover {
    border-color: var(--netflix-dark-red);
    transform: scale(1.05);
}

.header-right .user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.header-right .user-avatar i {
    color: var(--netflix-white);
    font-size: 1.2rem;
}

.header-right .user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--netflix-dark-gray);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.header-right .user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-right .user-dropdown span {
    display: block;
    color: var(--netflix-white);
    font-weight: bold;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--netflix-light-gray);
    text-transform: capitalize;
}

.header-right .user-dropdown hr {
    border: none;
    border-top: 1px solid var(--netflix-light-gray);
    margin: 0.5rem 0;
}

.header-right .dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--netflix-white);
    text-decoration: none;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.header-right .dropdown-link:hover {
    color: var(--netflix-red);
    background: rgba(229, 9, 20, 0.1);
    transform: translateX(5px);
}

.header-right .dropdown-link i {
    width: 16px;
    color: var(--netflix-gray);
    transition: color 0.3s ease;
}

.header-right .dropdown-link:hover i {
    color: var(--netflix-red);
}

/* Ancien bouton de déconnexion (maintenant caché) */
.header-right .logout-btn {
    display: none;
}

/* Menu burger pour mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
    margin-left: 1rem;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--netflix-white);
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu:hover span {
    background-color: var(--netflix-red);
}

/* Animation du menu burger */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== STYLES MOBILES POUR LE PANEL ===== */
@media (max-width: 768px) {
    /* Header mobile */
    .dashboard-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .header-center .search-bar {
        width: 100%;
        max-width: none;
    }
    
    /* Afficher le menu burger sur mobile */
    .burger-menu {
        display: flex;
    }
    
    /* Sidebar mobile */
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    /* Overlay pour fermer le menu */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Ajuster le contenu principal */
    .dashboard-main {
        margin-left: 0;
        padding-top: 80px;
    }
    
    /* Responsive des cartes */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Responsive des sections */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
    }
    
    /* Responsive des boutons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Responsive des modals */
    .modal {
        width: 95%;
        margin: 1rem;
    }
    
    /* Responsive des tableaux */
    .table-container {
        overflow-x: auto;
    }
    
    /* Responsive des filtres */
    .filter-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-group label {
        margin-bottom: 0.25rem;
    }
    
    /* Responsive des formulaires */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
    }
}

/* ===== STYLES POUR TRÈS PETITS ÉCRANS ===== */
@media (max-width: 480px) {
    .dashboard-header {
        padding: 0.75rem;
    }
    
    .header-left .logo .logo-image {
        height: 35px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h1 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .modal {
        width: 98%;
        margin: 0.5rem;
    }
}

/* Sidebar */
.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    width: 250px;
    background: var(--netflix-black);
    border-right: 1px solid var(--netflix-light-gray);
    overflow-y: auto;
    z-index: 999;
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: var(--netflix-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    background: var(--netflix-light-gray);
    color: var(--netflix-white);
}

.sidebar-nav .nav-link.active {
    background: var(--netflix-red);
    color: var(--netflix-white);
    border-left-color: var(--netflix-white);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

/* Main content */
.dashboard-main {
    margin-left: 250px;
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
}

.section-header p {
    color: var(--netflix-gray);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--netflix-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content h3 {
    color: var(--netflix-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--netflix-white);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
}

.chart-card h3 {
    margin-bottom: 1rem;
    color: var(--netflix-white);
}

/* Recent Activity */
.recent-activity {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
}

.recent-activity h3 {
    margin-bottom: 1rem;
    color: var(--netflix-white);
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--netflix-red);
    color: var(--netflix-white);
}

.btn-primary:hover {
    background: var(--netflix-dark-red);
}

.btn-secondary {
    background: var(--netflix-light-gray);
    color: var(--netflix-white);
}

.btn-secondary:hover {
    background: var(--netflix-gray);
}

/* Controls */
.log-controls, .file-controls, .db-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.log-controls select {
    padding: 0.5rem;
    background: var(--netflix-light-gray);
    border: 1px solid var(--netflix-gray);
    border-radius: 5px;
    color: var(--netflix-white);
}

/* Logs Container */
.logs-container {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.logs-list {
    max-height: 500px;
    overflow-y: auto;
}

/* Files Container */
.files-container {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.files-breadcrumb {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--netflix-light-gray);
}

.breadcrumb-item {
    color: var(--netflix-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover,
.breadcrumb-item.active {
    color: var(--netflix-red);
}

/* Database Info */
.db-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.db-stats, .db-backups {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
}

.db-stats h3, .db-backups h3 {
    margin-bottom: 1rem;
    color: var(--netflix-white);
}

.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Settings */
.settings-container {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.settings-tabs {
    display: flex;
    background: var(--netflix-dark-gray);
    border-bottom: 1px solid var(--netflix-light-gray);
}

.settings-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--netflix-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.settings-tab:hover {
    background: var(--netflix-light-gray);
    color: var(--netflix-white);
}

.settings-tab.active {
    background: var(--netflix-red);
    color: var(--netflix-white);
}

.settings-content {
    padding: 2rem;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--netflix-white);
}

.settings-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--netflix-white);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    background: var(--netflix-light-gray);
    border: 1px solid var(--netflix-gray);
    border-radius: 5px;
    color: var(--netflix-white);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--netflix-red);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: var(--netflix-light-gray);
    border: 1px solid var(--netflix-gray);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--netflix-white);
    font-size: 0.8rem;
}

/* Maintenance Info */
.maintenance-info {
    background: var(--netflix-light-gray);
    border: 1px solid var(--netflix-gray);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
    font-size: 0.9rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--netflix-red);
    width: 16px;
}

.form-group small {
    color: var(--netflix-gray);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--netflix-light-gray);
}

.modal-header h3 {
    color: var(--netflix-white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--netflix-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--netflix-white);
}

.modal-body {
    padding: 1.5rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--netflix-red);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-message {
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 0.8;
}

.notification-error {
    background: #e74c3c;
}

.notification-success {
    background: #27ae60;
}

.notification-warning {
    background: #f39c12;
}

.notification-info {
    background: var(--netflix-red);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 200px;
    }
    
    .dashboard-main {
        margin-left: 200px;
    }
    
    .header-center .search-bar {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .dashboard-header {
        padding: 1rem;
    }
    
    .header-center .search-bar {
        width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .db-info {
        grid-template-columns: 1fr;
    }
    
    .settings-tabs {
        flex-direction: column;
    }
    
    .log-controls, .file-controls, .db-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-center .search-bar {
        width: 100%;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .modal {
        width: 95%;
        margin: 1rem;
    }
}

/* Styles pour les administrateurs */
.admin-container {
    padding: 1rem;
}

.admin-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.admin-card {
    background: var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--netflix-gray);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-header h3 {
    color: var(--netflix-white);
    font-size: 1.2rem;
    margin: 0;
}

.admin-role {
    background: var(--netflix-red);
    color: var(--netflix-white);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.admin-status {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.admin-status.active {
    background: #28a745;
    color: var(--netflix-white);
}

.admin-status.inactive {
    background: #dc3545;
    color: var(--netflix-white);
}

.admin-info {
    margin-bottom: 1rem;
}

.admin-info p {
    margin: 0.5rem 0;
    color: var(--netflix-gray);
}

.admin-info strong {
    color: var(--netflix-white);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Styles pour les produits */
.products-container {
    padding: 1rem;
}

.products-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.products-filters select {
    background: var(--netflix-light-gray);
    border: 1px solid var(--netflix-gray);
    color: var(--netflix-white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    outline: none;
}

.products-filters select:focus {
    border-color: var(--netflix-red);
}

.products-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.product-card {
    background: var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--netflix-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-header h3 {
    color: var(--netflix-white);
    font-size: 1.2rem;
    margin: 0;
}

.product-status {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-status.published {
    background: #28a745;
    color: var(--netflix-white);
}

.product-status.unpublished {
    background: #ffc107;
    color: var(--netflix-black);
}

.product-info {
    margin-bottom: 1rem;
}

.product-info p {
    margin: 0.5rem 0;
    color: var(--netflix-gray);
}

.product-info strong {
    color: var(--netflix-white);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 100px;
}

.product-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Styles pour les modals des bots disponibles */
.available-bots-list {
    max-height: 400px;
    overflow-y: auto;
}

.available-bot-item {
    background: var(--netflix-light-gray);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--netflix-gray);
}

.available-bot-item h5 {
    color: var(--netflix-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.available-bot-item p {
    color: var(--netflix-gray);
    margin: 0.25rem 0;
}

.available-bot-item .btn {
    margin-top: 0.5rem;
}

/* Responsive pour les nouvelles sections */
@media (max-width: 768px) {
    .admin-list {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions,
    .product-actions {
        flex-direction: column;
    }
    
    .admin-actions .btn,
    .product-actions .btn {
        min-width: auto;
    }
    
    .products-filters {
        flex-direction: column;
    }
    
    .product-controls {
        flex-direction: column;
    }
}

/* Styles pour les messages de maintenance */
.maintenance-contacts-container {
    background: var(--netflix-dark-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Styles pour le support */
.support-container {
    background: var(--netflix-dark-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.support-stats {
    display: flex;
    gap: 2rem;
}

.support-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-card {
    background: var(--netflix-light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--netflix-gray);
    transition: all 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ticket-card.high-priority {
    border-left-color: var(--netflix-red);
}

.ticket-card.medium-priority {
    border-left-color: #ffc107;
}

.ticket-card.low-priority {
    border-left-color: #28a745;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ticket-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--netflix-white);
    margin-bottom: 0.5rem;
}

.ticket-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--netflix-gray);
    flex-wrap: wrap;
}

.ticket-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.ticket-status.open {
    background: #28a745;
    color: white;
}

.ticket-status.in_progress {
    background: #ffc107;
    color: black;
}

.ticket-status.closed {
    background: var(--netflix-gray);
    color: var(--netflix-white);
}

.ticket-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.ticket-priority.high {
    background: var(--netflix-red);
    color: white;
}

.ticket-priority.medium {
    background: #ffc107;
    color: black;
}

.ticket-priority.low {
    background: #28a745;
    color: white;
}

.ticket-description {
    color: var(--netflix-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ticket-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ticket-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.no-tickets {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--netflix-gray);
}

.no-tickets i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--netflix-gray);
}

.loading-tickets {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--netflix-gray);
}

.loading-tickets i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--netflix-red);
}

/* Modal pour créer/modifier un ticket */
.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ticket-form label {
    font-weight: bold;
    color: var(--netflix-white);
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea {
    padding: 0.75rem;
    background: var(--netflix-black);
    border: 1px solid var(--netflix-gray);
    border-radius: 5px;
    color: var(--netflix-white);
}

.ticket-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Styles pour les réponses aux tickets */
.ticket-replies {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--netflix-gray);
}

.reply-item {
    background: var(--netflix-black);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--netflix-gray);
}

.reply-item.admin-reply {
    border-left-color: var(--netflix-red);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reply-author {
    font-weight: bold;
    color: var(--netflix-white);
}

.reply-author.admin {
    color: var(--netflix-red);
}

.reply-time {
    font-size: 0.8rem;
    color: var(--netflix-gray);
}

.reply-message {
    color: var(--netflix-gray);
    line-height: 1.5;
}

.reply-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--netflix-gray);
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    background: var(--netflix-black);
    border: 1px solid var(--netflix-gray);
    border-radius: 5px;
    color: var(--netflix-white);
    resize: vertical;
    margin-bottom: 0.75rem;
}

.reply-form .form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.reply-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reply-form .checkbox-group input[type="checkbox"] {
    margin: 0;
}

.reply-form .checkbox-group label {
    font-size: 0.9rem;
    color: var(--netflix-gray);
}

.contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.contacts-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--netflix-red);
}

.stat-item .stat-label {
    color: var(--netflix-gray);
    font-size: 0.9rem;
}

.contacts-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contacts-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--netflix-white);
    font-weight: 500;
}

.filter-group select {
    background: var(--netflix-light-gray);
    border: 1px solid var(--netflix-gray);
    color: var(--netflix-white);
    padding: 0.5rem;
    border-radius: 5px;
    outline: none;
}

.search-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-group input {
    background: var(--netflix-light-gray);
    border: 1px solid var(--netflix-gray);
    color: var(--netflix-white);
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 5px;
    outline: none;
    min-width: 250px;
}

.search-group i {
    position: absolute;
    right: 0.75rem;
    color: var(--netflix-gray);
}

.contacts-list {
    max-height: 600px;
    overflow-y: auto;
}

.contact-item {
    background: var(--netflix-light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--netflix-gray);
    transition: all 0.3s ease;
}

.contact-item.unread {
    border-left-color: var(--netflix-red);
    background: rgba(229, 9, 20, 0.1);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info h4 {
    color: var(--netflix-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-meta span {
    color: var(--netflix-gray);
    font-size: 0.9rem;
}

.contact-subject {
    background: var(--netflix-red);
    color: var(--netflix-white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.contact-message {
    color: var(--netflix-white);
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.loading-contacts {
    text-align: center;
    padding: 2rem;
    color: var(--netflix-gray);
}

.loading-contacts i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-contacts {
    text-align: center;
    padding: 2rem;
    color: var(--netflix-gray);
}

.no-contacts i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Styles pour les cartes de bots */
.bot-card {
    background: var(--netflix-light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.bot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.2);
    border-color: var(--netflix-red);
}

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bot-info h3 {
    color: var(--netflix-white);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.bot-type {
    background: var(--netflix-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.bot-status.active {
    background: #28a745;
    color: white;
}

.bot-status.inactive {
    background: #6c757d;
    color: white;
}

.bot-description {
    margin-bottom: 1rem;
}

.bot-description p {
    color: var(--netflix-gray);
    margin: 0;
}

.bot-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--netflix-gray);
}

.bot-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bot-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bot-actions .btn {
    flex: 1;
    min-width: 120px;
}

.no-bots {
    text-align: center;
    padding: 3rem;
    color: var(--netflix-gray);
}

.no-bots i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--netflix-red);
}

.no-bots h3 {
    margin-bottom: 1rem;
    color: var(--netflix-white);
}

.no-bots p {
    margin-bottom: 2rem;
}

/* Styles pour les modales de bots */
.available-bots-list {
    max-height: 400px;
    overflow-y: auto;
}

.available-bot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--netflix-light-gray);
}

.available-bot-item .bot-info h5 {
    color: var(--netflix-white);
    margin-bottom: 0.5rem;
}

.available-bot-item .bot-info p {
    color: var(--netflix-gray);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.no-bots-found {
    text-align: center;
    padding: 2rem;
    color: var(--netflix-gray);
}

.no-bots-found i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--netflix-red);
}

.bot-logs-container {
    max-height: 400px;
    overflow-y: auto;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #444;
}

.logs-header h4 {
    color: var(--netflix-white);
    margin: 0;
}

.logs-content {
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    border-left: 4px solid;
}

.log-entry.info {
    background: rgba(0, 123, 255, 0.1);
    border-left-color: #007bff;
}

.log-entry.warn {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.log-entry.error {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.log-level {
    font-weight: bold;
    font-size: 0.8rem;
}

.log-time {
    font-size: 0.8rem;
    color: var(--netflix-gray);
}

.log-message {
    color: var(--netflix-white);
    font-size: 0.9rem;
}

/* Responsive pour les messages de maintenance */
@media (max-width: 768px) {
    .contacts-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contacts-stats {
        justify-content: center;
    }
    
    .contacts-actions {
        justify-content: center;
    }
    
    .contacts-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-group input {
        min-width: auto;
        width: 100%;
    }
    
    .contact-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-meta {
        justify-content: center;
    }
    
    .contact-actions {
        justify-content: center;
    }
}

/* Styles pour la section musique */
.music-preview {
    background: var(--netflix-light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--netflix-gray);
}

.music-preview h4 {
    color: var(--netflix-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.music-preview audio {
    width: 100%;
    background: var(--netflix-dark-gray);
    border-radius: 5px;
}

#volume-display {
    display: inline-block;
    margin-left: 1rem;
    color: var(--netflix-white);
    font-weight: bold;
    min-width: 40px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--netflix-light-gray);
    border-radius: 3px;
    outline: none;
    margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--netflix-red);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--netflix-dark-red);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--netflix-red);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--netflix-dark-red);
}

#music-file-group {
    border: 2px dashed var(--netflix-gray);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

#music-file-group:hover {
    border-color: var(--netflix-red);
}

#music-file-group input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    background: var(--netflix-dark-gray);
    border: 1px solid var(--netflix-gray);
    border-radius: 5px;
    color: var(--netflix-white);
    cursor: pointer;
}

#music-file-group input[type="file"]:focus {
    border-color: var(--netflix-red);
    outline: none;
}

/* Styles pour les exemples d'URLs */
.url-examples {
    background: var(--netflix-dark-gray);
    border: 1px solid var(--netflix-gray);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.url-examples h5 {
    color: var(--netflix-white);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.url-examples ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.url-examples li {
    color: var(--netflix-gray);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    padding: 0.2rem 0;
}

.url-examples li strong {
    color: var(--netflix-red);
    font-weight: bold;
}

.url-examples li:last-child {
    margin-bottom: 0;
}

/* Styles pour la validation des URLs */
#music-url.valid-url {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#music-url.invalid-url {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Styles pour les plateformes détectées */
#music-url-group.platform-youtube {
    border-left: 4px solid #ff0000;
}

#music-url-group.platform-spotify {
    border-left: 4px solid #1db954;
}

#music-url-group.platform-soundcloud {
    border-left: 4px solid #ff7700;
}

#music-url-group.platform-deezer {
    border-left: 4px solid #00c7f2;
}

#music-url-group.platform-apple {
    border-left: 4px solid #fa243c;
}

#music-url-group.platform-bandcamp {
    border-left: 4px solid #629aa9;
}

#music-url-group.platform-tidal {
    border-left: 4px solid #000000;
}

#music-url-group.platform-amazon {
    border-left: 4px solid #ff9900;
}

/* Styles pour la gestion des produits */
.product-form {
    max-width: 100%;
}

.product-form .form-group {
    margin-bottom: 1.5rem;
}

.product-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--netflix-white);
}

.product-form input,
.product-form select,
.product-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--netflix-dark-gray);
    border: 1px solid var(--netflix-gray);
    border-radius: 5px;
    color: var(--netflix-white);
    font-size: 0.9rem;
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
    outline: none;
    border-color: var(--netflix-red);
}

.product-form small {
    display: block;
    margin-top: 0.3rem;
    color: var(--netflix-gray);
    font-size: 0.8rem;
}

/* Grille des produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--netflix-dark-gray);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--netflix-gray);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--netflix-red);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.product-card.published {
    border-left: 4px solid #28a745;
    animation: statusChange 0.5s ease-in-out;
}

.product-card.unpublished {
    border-left: 4px solid #ffc107;
    animation: statusChange 0.5s ease-in-out;
}

@keyframes statusChange {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(229, 9, 20, 0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(229, 9, 20, 0);
    }
}

.product-header {
    position: relative;
    height: 150px;
    background: var(--netflix-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    font-size: 3rem;
    color: var(--netflix-gray);
}

.product-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-status.published {
    background: #28a745;
    color: white;
    animation: badgeChange 0.5s ease-in-out;
}

.product-status.unpublished {
    background: #ffc107;
    color: #333;
    animation: badgeChange 0.5s ease-in-out;
}

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

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--netflix-white);
    font-size: 1.2rem;
}

.product-description {
    color: var(--netflix-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.product-meta span {
    font-size: 0.8rem;
    color: var(--netflix-gray);
}

.product-meta .product-price {
    color: var(--netflix-red);
    font-weight: bold;
}

.product-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-details span {
    font-size: 0.8rem;
    color: var(--netflix-gray);
}

.product-actions {
    padding: 1rem 1.5rem;
    background: var(--netflix-light-gray);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.8rem;
    padding: 0.5rem;
}

/* Modal de détails du produit */
.product-details-modal {
    max-width: 600px;
}

.product-details-modal .product-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--netflix-gray);
}

.product-details-modal .product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.product-details-modal .product-info h2 {
    margin: 0 0 0.5rem 0;
    color: var(--netflix-white);
}

.product-details-modal .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.product-details-modal .product-meta span {
    padding: 0.3rem 0.8rem;
    background: var(--netflix-light-gray);
    border-radius: 15px;
    font-size: 0.8rem;
}

.product-details {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--netflix-light-gray);
    border-radius: 5px;
}

.detail-item label {
    font-weight: bold;
    color: var(--netflix-white);
}

.detail-item span {
    color: var(--netflix-gray);
}

/* État vide */
.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--netflix-gray);
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-products h3 {
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
}

/* Filtres des produits */
.products-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.products-filters select {
    padding: 0.5rem 1rem;
    background: var(--netflix-dark-gray);
    border: 1px solid var(--netflix-gray);
    border-radius: 5px;
    color: var(--netflix-white);
    min-width: 150px;
}

.products-filters select:focus {
    outline: none;
    border-color: var(--netflix-red);
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .products-filters {
        flex-direction: column;
    }
    
    .products-filters select {
        width: 100%;
    }
}

/* Styles pour les paramètres de notifications */
.settings-section {
    background: var(--netflix-light-gray);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section h4 {
    color: var(--netflix-white);
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.test-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.test-buttons .btn {
    flex: 1;
    min-width: 150px;
}

.test-buttons .btn i {
    margin-right: 8px;
}

/* Styles pour les champs de configuration */
.settings-form .form-group small {
    color: var(--netflix-gray);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.settings-form input[type="url"],
.settings-form input[type="email"],
.settings-form input[type="password"] {
    background: var(--netflix-dark-gray);
    border: 1px solid #444;
    color: var(--netflix-white);
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 14px;
}

.settings-form input[type="url"]:focus,
.settings-form input[type="email"]:focus,
.settings-form input[type="password"]:focus {
    border-color: var(--netflix-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.25);
}

/* Styles pour les checkboxes de notifications */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--netflix-dark-gray);
    border-radius: 5px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background: var(--netflix-light-gray);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    background: #444;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: background-color 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--netflix-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive pour les notifications */
@media (max-width: 768px) {
    .settings-section {
        padding: 15px;
    }
    
    .test-buttons {
        flex-direction: column;
    }
    
    .test-buttons .btn {
        width: 100%;
    }
}

/* Styles pour les mises à jour */
.new-updates-container {
    background: var(--netflix-black);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.updates-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--netflix-red);
}

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

.updates-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--netflix-gray);
    font-size: 0.9rem;
}

.filter-group select {
    background: var(--netflix-light-gray);
    border: 1px solid var(--netflix-light-gray);
    color: var(--netflix-white);
    padding: 0.5rem;
    border-radius: 5px;
    min-width: 150px;
}

.search-group {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-group input {
    width: 100%;
    background: var(--netflix-light-gray);
    border: 1px solid var(--netflix-light-gray);
    color: var(--netflix-white);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 5px;
}

.search-group i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--netflix-gray);
}

/* Cartes de mises à jour */
.update-card {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.update-card:hover {
    border-color: var(--netflix-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.2);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.update-title h3 {
    color: var(--netflix-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.update-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.update-type.feature {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.update-type.bugfix {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.update-type.improvement {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.update-type.security {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid #6c757d;
}

.update-type.other {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border: 1px solid #17a2b8;
}

.update-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.update-status.published {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.update-status.draft {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.update-content {
    margin-bottom: 1rem;
}

.update-content p {
    color: var(--netflix-gray);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.update-version {
    color: var(--netflix-red);
    font-weight: bold;
    font-size: 0.9rem;
}

.update-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.update-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.update-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--netflix-gray);
    font-size: 0.9rem;
}

.update-meta i {
    color: var(--netflix-red);
    width: 16px;
}

.update-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* État de chargement et absence de mises à jour */
.loading-updates,
.no-updates {
    text-align: center;
    padding: 3rem;
    color: var(--netflix-gray);
}

.loading-updates i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--netflix-red);
}

.no-updates i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--netflix-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .updates-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .updates-stats {
        justify-content: center;
    }
    
    .updates-filters {
        flex-direction: column;
    }
    
    .search-group {
        max-width: none;
    }
    
    .update-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .update-actions {
        justify-content: center;
    }
}

/* Styles pour la sélection de catégorie */
.category-selection {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.category-selection select {
    flex: 1;
}

.category-selection .btn {
    white-space: nowrap;
    padding: 0.75rem 1rem;
}

/* Styles pour le formulaire de catégorie */
.category-form .form-group {
    margin-bottom: 1.5rem;
}

.category-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--netflix-white);
}

.category-form input,
.category-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--netflix-light-gray);
    border-radius: 5px;
    background: var(--netflix-black);
    color: var(--netflix-white);
    font-size: 0.9rem;
}

.category-form input:focus,
.category-form textarea:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.category-form small {
    display: block;
    margin-top: 0.25rem;
    color: var(--netflix-gray);
    font-size: 0.8rem;
}

.category-form input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.category-form input[type="number"] {
    width: 100px;
}

/* Responsive pour la sélection de catégorie */
@media (max-width: 768px) {
    .category-selection {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-selection .btn {
        align-self: flex-start;
    }
}

/* Styles pour le message "Aucune catégorie créée" */
.no-categories-message {
    text-align: center;
    padding: 2rem;
}

.no-categories-icon {
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.no-categories-message h3 {
    color: var(--netflix-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-categories-message p {
    color: var(--netflix-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.no-categories-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.no-categories-actions .btn {
    min-width: 200px;
}

/* Indicateur de champ requis */
.required {
    color: #dc3545;
    font-weight: bold;
}

/* Amélioration du select des catégories */
.category-selection select option {
    padding: 0.5rem;
}

.category-selection select option:disabled {
    color: #6c757d;
    font-style: italic;
}

/* ===== SÉLECTEURS DE BOT STYLE NETFLIX ===== */

/* Conteneur du sélecteur de bot */
.bot-selector-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-right: 1rem;
}

.bot-selector-container label {
    font-size: 0.85rem;
    color: var(--netflix-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wrapper du sélecteur avec flèche personnalisée */
.bot-selector-wrapper {
    position: relative;
    display: inline-block;
}

/* Style du sélecteur de bot */
.bot-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--netflix-black);
    border: 2px solid var(--netflix-light-gray);
    border-radius: 8px;
    color: var(--netflix-white);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bot-selector:hover {
    border-color: var(--netflix-red);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.2);
    transform: translateY(-2px);
}

.bot-selector:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.3);
    transform: translateY(-2px);
}

/* Flèche personnalisée */
.bot-selector-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--netflix-red);
    transition: transform 0.3s ease;
}

.bot-selector:focus + .bot-selector-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Options du sélecteur */
.bot-selector option {
    background: var(--netflix-black);
    color: var(--netflix-white);
    padding: 1rem;
    font-size: 0.9rem;
}

.bot-selector option:hover {
    background: var(--netflix-red);
}

/* ===== MESSAGES D'INFORMATION ===== */

/* Conteneur des messages d'info */
.logs-info,
.files-info {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: var(--netflix-black);
    border-radius: 12px;
    border: 2px dashed var(--netflix-light-gray);
    margin: 1rem 0;
}

.logs-info-content,
.files-info-content {
    text-align: center;
    color: var(--netflix-gray);
}

.logs-info-content i,
.files-info-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--netflix-red);
    opacity: 0.7;
}

.logs-info-content p,
.files-info-content p {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ===== AMÉLIORATIONS DES LOGS ===== */

/* Conteneur des logs */
.logs-container {
    background: var(--netflix-black);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--netflix-light-gray);
}

.logs-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--netflix-dark-gray);
    border-radius: 8px;
    border: 1px solid var(--netflix-light-gray);
}

/* Style des entrées de log */
.log-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--netflix-black);
    border-radius: 6px;
    border-left: 4px solid var(--netflix-gray);
    transition: all 0.3s ease;
}

.log-entry:hover {
    background: var(--netflix-light-gray);
    transform: translateX(5px);
}

.log-entry.info {
    border-left-color: #17a2b8;
}

.log-entry.warning {
    border-left-color: #ffc107;
}

.log-entry.error {
    border-left-color: #dc3545;
}

.log-entry .log-timestamp {
    font-size: 0.8rem;
    color: var(--netflix-gray);
    min-width: 120px;
}

.log-entry .log-level {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.log-entry .log-level.info {
    background: #17a2b8;
    color: white;
}

.log-entry .log-level.warning {
    background: #ffc107;
    color: black;
}

.log-entry .log-level.error {
    background: #dc3545;
    color: white;
}

.log-entry .log-message {
    flex: 1;
    color: var(--netflix-white);
    font-size: 0.9rem;
}

/* ===== AMÉLIORATIONS DES FICHIERS ===== */

/* Conteneur des fichiers */
.files-container {
    background: var(--netflix-black);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--netflix-light-gray);
}

.files-content {
    display: none;
}

.files-content.active {
    display: block;
}

/* Breadcrumb des fichiers */
.files-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--netflix-dark-gray);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--netflix-light-gray);
}

.breadcrumb-item {
    color: var(--netflix-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb-item:hover {
    color: var(--netflix-red);
    background: var(--netflix-light-gray);
}

.breadcrumb-item.active {
    color: var(--netflix-red);
    font-weight: bold;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: var(--netflix-gray);
}

/* Liste des fichiers */
.files-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--netflix-dark-gray);
    border-radius: 8px;
    border: 1px solid var(--netflix-light-gray);
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--netflix-black);
    border-radius: 8px;
    border: 1px solid var(--netflix-light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-item:hover {
    border-color: var(--netflix-red);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.file-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--netflix-red);
}

.file-item .file-name {
    color: var(--netflix-white);
    font-weight: 500;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.file-item .file-size {
    color: var(--netflix-gray);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .bot-selector {
        min-width: 150px;
    }
    
    .log-controls,
    .file-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bot-selector-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* ===== CARTES DE BOTS ===== */

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.bot-card {
    background: var(--netflix-black);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--netflix-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bot-card:hover::before {
    transform: scaleX(1);
}

.bot-card:hover {
    border-color: var(--netflix-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bot-icon {
    width: 50px;
    height: 50px;
    background: var(--netflix-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.bot-status.info {
    color: #17a2b8;
}

.bot-status.success {
    color: #28a745;
}

.bot-status.warning {
    color: #ffc107;
}

.bot-status.danger {
    color: #dc3545;
}

.bot-content h3 {
    color: var(--netflix-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.bot-description {
    color: var(--netflix-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.bot-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--netflix-gray);
    font-size: 0.85rem;
}

.bot-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bot-actions .btn {
    flex: 1;
    min-width: 80px;
}

/* Statuts des bots */
.bot-card.bot-active {
    border-left: 4px solid #28a745;
}

.bot-card.bot-inactive {
    border-left: 4px solid #ffc107;
}

.bot-card.bot-error {
    border-left: 4px solid #dc3545;
}

.bot-card.bot-starting {
    border-left: 4px solid #17a2b8;
}

.bot-card.bot-stopping {
    border-left: 4px solid #6c757d;
}

/* Message "Aucun bot" */
.no-bots-message {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.no-bots-message i {
    font-size: 4rem;
    color: var(--netflix-red);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-bots-message h3 {
    color: var(--netflix-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-bots-message p {
    color: var(--netflix-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== ACTIVITÉ RÉCENTE ===== */

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--netflix-black);
    border-radius: 8px;
    border-left: 4px solid var(--netflix-gray);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--netflix-light-gray);
    transform: translateX(5px);
}

.activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--netflix-dark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
}

.activity-message {
    color: var(--netflix-white);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.activity-timestamp {
    color: var(--netflix-gray);
    font-size: 0.8rem;
}

.no-activity {
    text-align: center;
    padding: 2rem;
    color: var(--netflix-gray);
}

.no-activity i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--netflix-red);
    opacity: 0.7;
}

/* ===== FORMULAIRES DE BOT ===== */

.bot-form {
    max-width: 500px;
}

.bot-form .form-group {
    margin-bottom: 1.5rem;
}

.bot-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
    font-weight: 500;
}

.bot-form input,
.bot-form textarea,
.bot-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--netflix-light-gray);
    border-radius: 5px;
    background: var(--netflix-black);
    color: var(--netflix-white);
    font-size: 0.9rem;
}

.bot-form input:focus,
.bot-form textarea:focus,
.bot-form select:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.bot-form textarea {
    resize: vertical;
    min-height: 100px;
}

.bot-form small {
    display: block;
    margin-top: 0.25rem;
    color: var(--netflix-gray);
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Responsive pour les cartes de bots */
@media (max-width: 768px) {
    .bots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .bot-card {
        padding: 1rem;
    }
    
    .bot-actions {
        flex-direction: column;
    }
    
    .bot-actions .btn {
        width: 100%;
    }
}

/* ===== SECTION ABONNEMENT ===== */

.subscription-container {
    padding: 1rem;
}

.subscription-header {
    margin-bottom: 2rem;
}

.subscription-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.subscription-info {
    margin-bottom: 3rem;
}

.subscription-card {
    background: linear-gradient(135deg, var(--netflix-red) 0%, #B20710 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.subscription-card::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: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.subscription-card-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.subscription-card-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.subscription-card-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.subscription-price {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
}

.subscription-features {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.subscription-features ul {
    list-style: none;
    padding: 0;
}

.subscription-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-features li:last-child {
    border-bottom: none;
}

.subscription-features i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.subscription-actions .btn {
    min-width: 150px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.subscription-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.subscription-history {
    background: var(--netflix-black);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--netflix-light-gray);
}

.subscription-history h3 {
    color: var(--netflix-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--netflix-red);
    padding-bottom: 0.5rem;
}

.payment-history {
    min-height: 200px;
}

.loading-payments {
    text-align: center;
    padding: 2rem;
    color: var(--netflix-gray);
}

.loading-payments i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--netflix-red);
}

/* Responsive pour l'abonnement */
@media (max-width: 768px) {
    .subscription-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .subscription-card {
        padding: 1.5rem;
    }
    
    .subscription-card-header h3 {
        font-size: 1.5rem;
    }
    
    .subscription-price {
        font-size: 1.2rem;
    }
    
    .subscription-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .subscription-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== SECTION MAINTENANCE ===== */

.maintenance-status {
    background: var(--netflix-black);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--netflix-light-gray);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--netflix-gray);
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-item i {
    color: var(--netflix-red);
    width: 16px;
}

.status-item strong {
    color: var(--netflix-white);
}

.maintenance-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.maintenance-actions .btn {
    min-width: 120px;
}

.btn-warning {
    background: #ff9800;
    color: white;
    border: none;
}

.btn-warning:hover {
    background: #f57c00;
}

.btn-success {
    background: #4caf50;
    color: white;
    border: none;
}

.btn-success:hover {
    background: #388e3c;
}

#maintenance-timer {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #ff9800;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

#maintenance-timer i {
    color: #ff9800;
}

/* Responsive pour la maintenance */
@media (max-width: 768px) {
    .maintenance-actions {
        flex-direction: column;
    }
    
    .maintenance-actions .btn {
        width: 100%;
    }
}

/* Styles pour les actions de section */
.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Styles pour les codes de réduction */
.coupons-container {
    padding: 1.5rem;
}


.video-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.video-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.video-type.anime {
    background: #ff6b6b;
    color: white;
}

.video-type.serie {
    background: #4ecdc4;
    color: white;
}

.video-type.film {
    background: #45b7d1;
    color: white;
}

.video-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.video-status.published {
    background: #27ae60;
    color: white;
}

.video-status.draft {
    background: #f39c12;
    color: white;
}

.video-actions {
    display: flex;
    gap: 8px;
}

.video-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.video-actions .edit-btn {
    background: #3498db;
    color: white;
}

.video-actions .delete-btn {
    background: #e74c3c;
    color: white;
}

.video-actions button:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Modal vidéo */
.video-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.video-modal .form-group {
    margin-bottom: 20px;
}

.video-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.video-modal label {
    display: block;
    margin-bottom: 8px;
    color: var(--netflix-white);
    font-weight: 500;
}

.video-modal input,
.video-modal select,
.video-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--netflix-dark-gray);
    border-radius: 6px;
    background: var(--netflix-dark-gray);
    color: var(--netflix-white);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.video-modal input:focus,
.video-modal select:focus,
.video-modal textarea:focus {
    outline: none;
    border-color: var(--netflix-red);
}

.video-modal textarea {
    resize: vertical;
    min-height: 80px;
}

.video-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--netflix-dark-gray);
}

.coupons-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.coupons-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    background: var(--netflix-dark-gray);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 4px;
    color: var(--netflix-white);
    font-size: 0.9rem;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.coupons-table-container {
    background: var(--netflix-dark-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.coupons-table {
    width: 100%;
    border-collapse: collapse;
}

.coupons-table th {
    background: var(--netflix-black);
    color: var(--netflix-white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--netflix-light-gray);
}

.coupons-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--netflix-light-gray);
    color: var(--netflix-white);
}

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

.coupon-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--netflix-red);
    background: rgba(229, 9, 20, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.coupon-type {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.coupon-type.percentage {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.coupon-type.fixed {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.coupon-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.coupon-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.coupon-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.coupon-status.expired {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.coupon-actions {
    display: flex;
    gap: 0.5rem;
}

.coupon-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: auto;
}

/* Modal pour les codes de réduction */
.coupon-modal {
    max-width: 600px;
    width: 90%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--netflix-white);
}

/* Styles pour les cases à cocher */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--netflix-red);
    cursor: pointer;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--netflix-white);
}

.checkbox-group label i {
    color: #ffd700;
    font-size: 1rem;
}

.checkbox-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--netflix-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Badges pour les codes première fois */
.first-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.first-time-badge i {
    color: #ff6b35;
    font-size: 0.7rem;
}

.regular-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--netflix-light-gray);
    color: var(--netflix-gray);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--netflix-dark-gray);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 4px;
    color: var(--netflix-white);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--netflix-gray);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--netflix-light-gray);
}

/* Responsive pour les actions de section */
@media (max-width: 768px) {
    .section-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .section-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive pour les codes de réduction */
@media (max-width: 768px) {
    .coupons-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .coupons-table-container {
        overflow-x: auto;
    }
    
    .coupons-table {
        min-width: 600px;
    }
}

/* ===== STYLES POUR LA SECTION AVIS ===== */

.reviews-container {
    padding: 20px 0;
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.reviews-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.reviews-filters select,
.reviews-filters input {
    padding: 10px 15px;
    border: 1px solid var(--netflix-light-gray);
    border-radius: 8px;
    background: var(--netflix-dark-gray);
    color: var(--netflix-white);
    font-size: 14px;
    min-width: 150px;
}

.reviews-filters input {
    flex: 1;
    min-width: 250px;
}

.reviews-filters select:focus,
.reviews-filters input:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.reviews-list {
    position: relative;
}

.loading-reviews {
    text-align: center;
    padding: 60px 20px;
    color: var(--netflix-gray);
}

.loading-reviews i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: var(--netflix-gray);
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.review-card-admin {
    background: var(--netflix-dark-gray);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.review-card-admin:hover {
    border-color: var(--netflix-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.1);
}

.review-header-admin {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar-admin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--netflix-red), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.review-user-details h4 {
    color: var(--netflix-white);
    font-size: 1rem;
    margin: 0 0 5px 0;
}

.review-date-admin {
    color: var(--netflix-gray);
    font-size: 0.85rem;
}

.review-rating-admin {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.review-rating-admin .star {
    font-size: 1.1rem;
    color: #ffd700;
}

.review-rating-admin .star.empty {
    color: #444;
}

.review-message-admin {
    color: var(--netflix-white);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.review-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.review-actions .btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-actions .btn-danger {
    background: #dc3545;
    color: white;
}

.review-actions .btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.review-actions .btn-info {
    background: #17a2b8;
    color: white;
}

.review-actions .btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
}

.review-id {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--netflix-light-gray);
    color: var(--netflix-gray);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Responsive pour les avis */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reviews-filters select,
    .reviews-filters input {
        min-width: auto;
    }
    
    .review-header-admin {
        flex-direction: column;
        gap: 10px;
    }
    
    .review-actions {
        justify-content: center;
    }
}

/* ===== STYLES POUR LE MODAL BOT ===== */

/* Modal Bot */
#bot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#bot-modal .modal-content {
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
    background: var(--netflix-dark-gray) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    animation: modalSlideIn 0.3s ease !important;
    margin: auto !important;
    position: relative !important;
    overflow-y: auto !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#bot-modal .form-group {
    margin-bottom: 20px;
}

#bot-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--netflix-white);
}

#bot-modal .form-group input,
#bot-modal .form-group textarea,
#bot-modal .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--netflix-light-gray);
    border-radius: 8px;
    background: var(--netflix-dark-gray);
    color: var(--netflix-white);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#bot-modal .form-group input:focus,
#bot-modal .form-group textarea:focus,
#bot-modal .form-group select:focus {
    outline: none;
    border-color: var(--netflix-red);
}

#bot-modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#bot-modal .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

#bot-modal .checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

#bot-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--netflix-light-gray);
}

#bot-modal .modal-header h2 {
    color: var(--netflix-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#bot-modal .modal-close {
    background: none;
    border: none;
    color: var(--netflix-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#bot-modal .modal-close:hover {
    color: var(--netflix-white);
    background: var(--netflix-light-gray);
}

#bot-modal .modal-body {
    padding: 30px;
}

#bot-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid var(--netflix-light-gray);
}

/* Responsive pour le modal bot */
@media (max-width: 768px) {
    #bot-modal .modal-content {
        width: 95% !important;
        margin: 10px !important;
        max-height: 95vh !important;
    }
    
    #bot-modal .modal-footer {
        flex-direction: column !important;
    }
    
    #bot-modal .modal-footer .btn {
        width: 100% !important;
    }
}

/* Styles pour le modal d'ajout de bot */
.add-bot-modal {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    background: var(--netflix-dark-gray);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    margin: auto;
    position: relative;
    overflow-y: auto;
}

.add-bot-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--netflix-light-gray);
}

.add-bot-modal .modal-header h3 {
    color: var(--netflix-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-bot-modal .modal-close {
    background: none;
    border: none;
    color: var(--netflix-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.add-bot-modal .modal-close:hover {
    color: var(--netflix-white);
    background: var(--netflix-light-gray);
}

.add-bot-modal .modal-body {
    padding: 30px;
}

.add-bot-modal .form-group {
    margin-bottom: 20px;
}

.add-bot-modal .form-group label {
    display: block;
    color: var(--netflix-white);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.add-bot-modal .form-group input,
.add-bot-modal .form-group select,
.add-bot-modal .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--netflix-light-gray);
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--netflix-white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.add-bot-modal .form-group input[type="color"] {
    height: 50px;
    padding: 8px;
    cursor: pointer;
    border: 2px solid #444;
}

.add-bot-modal .form-group input[type="color"]:hover {
    border-color: var(--netflix-red);
}

.add-bot-modal .form-group input:focus,
.add-bot-modal .form-group select:focus,
.add-bot-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.add-bot-modal .form-group small {
    display: block;
    color: var(--netflix-gray);
    font-size: 0.8rem;
    margin-top: 5px;
}

.add-bot-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.add-bot-modal .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.add-bot-modal .checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-bot-modal .checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.add-bot-modal .checkbox-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--netflix-white);
}

.add-bot-modal .checkbox-item label i {
    color: var(--netflix-red);
    width: 16px;
}

.add-bot-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--netflix-light-gray);
}

.add-bot-modal .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-bot-modal .btn-primary {
    background: var(--netflix-red);
    color: white;
}

.add-bot-modal .btn-primary:hover {
    background: var(--netflix-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.add-bot-modal .btn-secondary {
    background: var(--netflix-light-gray);
    color: var(--netflix-white);
    border: 1px solid #444;
}

.add-bot-modal .btn-secondary:hover {
    background: #555;
    transform: translateY(-2px);
}

.add-bot-modal .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive pour le modal d'ajout de bot */
@media (max-width: 768px) {
    .add-bot-modal {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .add-bot-modal .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .add-bot-modal .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .add-bot-modal .form-actions {
        flex-direction: column;
    }
    
    .add-bot-modal .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Styles pour le modal des détails du bot */
.bot-details-modal {
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    background: var(--netflix-dark-gray);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    margin: auto;
    position: relative;
    overflow-y: auto;
}

.bot-details-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--netflix-light-gray);
}

.bot-details-modal .modal-header h3 {
    color: var(--netflix-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-details-modal .modal-close {
    background: none;
    border: none;
    color: var(--netflix-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bot-details-modal .modal-close:hover {
    color: var(--netflix-white);
    background: var(--netflix-light-gray);
}

.bot-details-modal .modal-body {
    padding: 30px;
}

.bot-details-content {
    display: grid;
    gap: 25px;
}

.bot-details-section {
    background: var(--netflix-light-gray);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--netflix-red);
}

.bot-details-section h4 {
    color: var(--netflix-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-details-section h4 i {
    color: var(--netflix-red);
}

.bot-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bot-details-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bot-details-item label {
    color: var(--netflix-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.bot-details-item span {
    color: var(--netflix-white);
    font-size: 1rem;
    font-weight: 400;
}

.bot-details-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.bot-details-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.bot-details-status.inactive {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid #9ca3af;
}

.bot-details-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.bot-details-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.bot-details-actions .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-details-actions .btn-primary {
    background: var(--netflix-red);
    color: white;
}

.bot-details-actions .btn-primary:hover {
    background: var(--netflix-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.bot-details-actions .btn-secondary {
    background: var(--netflix-light-gray);
    color: var(--netflix-white);
    border: 1px solid #444;
}

.bot-details-actions .btn-secondary:hover {
    background: #555;
    transform: translateY(-2px);
}

.bot-details-actions .btn-danger {
    background: #dc2626;
    color: white;
}

.bot-details-actions .btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Responsive pour le modal des détails du bot */
@media (max-width: 768px) {
    .bot-details-modal {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .bot-details-grid {
        grid-template-columns: 1fr;
    }
    
    .bot-details-actions {
        flex-direction: column;
    }
    
    .bot-details-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Styles pour la section Mon Compte */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.account-profile {
    background: linear-gradient(135deg, var(--netflix-dark-gray) 0%, var(--netflix-light-gray) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--netflix-red);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar img,
.profile-avatar i {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--netflix-white);
    background: var(--netflix-dark-gray);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    color: var(--netflix-white);
    font-size: 1.5rem;
}

.profile-info h2 {
    color: var(--netflix-white);
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.profile-info p {
    color: var(--netflix-gray);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.role-badge {
    background: var(--netflix-red);
    color: var(--netflix-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.account-form-container {
    background: var(--netflix-dark-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.account-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--netflix-white);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    background: var(--netflix-light-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--netflix-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--netflix-red);
    background: var(--netflix-dark-gray);
}

.form-group input::placeholder {
    color: var(--netflix-gray);
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.account-stats {
    background: var(--netflix-dark-gray);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.account-stats h3 {
    color: var(--netflix-white);
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--netflix-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    color: var(--netflix-red);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--netflix-gray);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: var(--netflix-white);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive pour Mon Compte */
@media (max-width: 768px) {
    .account-container {
        padding: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .account-form {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
