/* Panel Mobile CSS - Version mobile pour panel.html */
/* Ce CSS ne s'applique qu'aux écrans mobiles (max-width: 768px) */

/* Variables CSS pour les couleurs */
: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;
    --success-green: #4CAF50;
    --warning-orange: #FF9800;
    --error-red: #F44336;
    --info-blue: #2196F3;
}

/* Media query pour mobile uniquement */
@media (max-width: 768px) {

/* Header Mobile */
.dashboard-header {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.dashboard-header.scrolled {
    background-color: var(--netflix-black);
}

/* Structure du header mobile */
.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    flex: 1;
}

.header-center {
    flex: 2;
    justify-content: center;
}

.header-right {
    flex: 1;
    justify-content: flex-end;
}

/* Container principal du header */
.dashboard-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--netflix-white);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 0.5rem;
}

/* Barre de recherche mobile */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--netflix-light-gray);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 300px;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--netflix-white);
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.search-bar i {
    color: var(--netflix-gray);
    margin-right: 0.5rem;
}

/* Menu de navigation mobile */
.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--netflix-dark-gray);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1rem;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-menu.active {
    display: flex;
    transform: translateX(0);
}

.nav-menu li {
    list-style: none;
    margin: 0;
}

.nav-menu a {
    color: var(--netflix-white);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--netflix-red);
    background: rgba(229, 9, 20, 0.1);
}

/* Menu utilisateur mobile */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    position: relative;
    cursor: pointer;
}

.user-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--netflix-red);
}

.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: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1002;
}

.user-avatar:hover .user-dropdown {
    display: block;
}

.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);
}

.dropdown-link {
    display: block;
    color: var(--netflix-gray);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.dropdown-link:hover {
    color: var(--netflix-red);
}

/* Menu burger mobile */
.burger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--netflix-white);
    transition: all 0.3s ease;
    margin: 2px 0;
}

.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);
}

/* Sidebar mobile */
.dashboard-sidebar {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--netflix-dark-gray);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.dashboard-sidebar.active {
    display: block;
    transform: translateX(0);
}

.sidebar-nav {
    padding: 1rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--netflix-white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: var(--netflix-red);
    color: var(--netflix-white);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

/* Contenu principal mobile */
.dashboard-main {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    padding: 1rem;
    width: 100%;
}

/* Dashboard mobile */
.dashboard {
    max-width: 100%;
    margin: 0 auto;
}

/* Sections du dashboard mobile */
.dashboard-section {
    display: none;
    width: 100%;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--netflix-red);
}

.section-header h1 {
    font-size: 1.5rem;
    color: var(--netflix-white);
    margin: 0;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--netflix-dark-gray);
    border-radius: 12px;
    border: 1px solid var(--netflix-light-gray);
}

.dashboard-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
}

.dashboard-header p {
    color: var(--netflix-gray);
    font-size: 0.9rem;
}

/* Stats grid mobile */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Grilles responsives */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--netflix-dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--netflix-light-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--netflix-red);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
    border-color: var(--netflix-red);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--netflix-red), var(--netflix-dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    color: var(--netflix-white);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--netflix-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections mobile */
.section {
    background: var(--netflix-dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--netflix-light-gray);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--netflix-red);
}

.section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--netflix-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    width: 30px;
    height: 30px;
    background: var(--netflix-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--netflix-white);
}

/* Boutons mobile */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-bottom: 0.75rem;
}

/* Boutons en ligne pour mobile */
.btn-inline {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--netflix-red);
    color: var(--netflix-white);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background: var(--netflix-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
    background: var(--netflix-light-gray);
    color: var(--netflix-white);
    border: 1px solid var(--netflix-gray);
}

.btn-secondary:hover {
    background: var(--netflix-gray);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-green);
    color: var(--netflix-white);
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning-orange);
    color: var(--netflix-white);
}

.btn-warning:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--error-red);
    color: var(--netflix-white);
}

.btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* Formulaires mobile */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--netflix-light-gray);
    border-radius: 8px;
    background: var(--netflix-black);
    color: var(--netflix-white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tables mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--netflix-black);
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--netflix-light-gray);
}

.table th {
    background: var(--netflix-dark-gray);
    color: var(--netflix-white);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    color: var(--netflix-gray);
    font-size: 0.9rem;
}

.table tr:hover {
    background: rgba(229, 9, 20, 0.05);
}

/* Modales mobile */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    padding: 1rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--netflix-dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--netflix-light-gray);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--netflix-light-gray);
}

.modal-title {
    font-size: 1.2rem;
    color: var(--netflix-white);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--netflix-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--netflix-light-gray);
    color: var(--netflix-white);
}

/* Alertes mobile */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: var(--success-green);
    color: var(--success-green);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: var(--warning-orange);
    color: var(--warning-orange);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: var(--error-red);
    color: var(--error-red);
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border-left-color: var(--info-blue);
    color: var(--info-blue);
}

/* Onglets et panneaux mobile */
.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--netflix-dark-gray);
    border: 1px solid var(--netflix-light-gray);
    border-radius: 8px;
    color: var(--netflix-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.settings-tab:hover,
.settings-tab.active {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
}

.settings-panel {
    display: none;
    background: var(--netflix-dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--netflix-light-gray);
}

.settings-panel.active {
    display: block;
}

/* Formulaires de paramètres mobile */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Status et actions mobile */
.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--netflix-black);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.status-item i {
    color: var(--netflix-red);
}

.maintenance-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
    .dashboard-main {
        padding: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .section-header h1 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .search-bar {
        max-width: 200px;
    }
    
    .search-bar input {
        font-size: 0.8rem;
    }
}

} /* Fin de la media query @media (max-width: 768px) */
