/* ══════════════════════════════════════════════════════════════ admin.css — Backoffice Mon Cinéma (Hérite de public.css) ══════════════════════════════════════════════════════════════ */ /* Conteneur principal plus large pour le tableau */ .admin-wrap { max-width: 1200px; padding-top: 3rem; } /* En-tête */ .admin-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 2rem; margin-bottom: 2rem; text-align: left; } .header-titles { margin: 0; } .header-actions { display: flex; gap: 0.8rem; } /* Boutons d'action */ .btn-action { background: var(--surface-card); color: var(--text); border: 1px solid var(--border); padding: 0.65rem 1.2rem; border-radius: 8px; font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); } .btn-action:hover { border-color: var(--gold); background: var(--gold-dim); } .btn-action.outline.danger:hover { border-color: #ff6b6b; background: rgba(255, 107, 107, 0.1); color: #ff6b6b; } .btn-action.primary { background: var(--gold); color: var(--background); border-color: var(--gold); font-weight: 600; } .btn-action.primary:hover { background: var(--gold); box-shadow: 0 0 15px var(--gold-glow); transform: translateY(-2px); } .btn-action.danger-solid { background: #ff4757; color: #fff; border-color: #ff4757; } .btn-action.danger-solid:hover { background: #ff6b81; box-shadow: 0 0 15px rgba(255, 71, 87, 0.3); } .btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; } /* Barre d'outils */ .admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .bulk-actions-bar { background: var(--gold-dim); border: 1px solid var(--gold); border-radius: 8px; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; color: var(--gold); animation: slideDown 0.3s ease; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } /* Tableau */ .table-container { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-cinematic); } .admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; } .admin-table th { background: var(--surface); color: var(--muted); font-weight: 500; padding: 1.2rem 1rem; border-bottom: 1px solid var(--border); text-align: left; } .admin-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-secondary); } .admin-table tbody tr { transition: background 0.2s; } .admin-table tbody tr:hover { background: var(--surface-hover); } .admin-table tbody tr:last-child td { border-bottom: none; } .admin-table strong { color: var(--text); font-weight: 600; font-size: 1.05rem; } /* Éléments du tableau */ .thumb { width: 45px; height: 65px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.5); } .thumb-ph { width: 45px; height: 65px; background: var(--surface); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--border); } .badge-format { background: var(--surface); border: 1px solid var(--border); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; color: var(--gold); display: inline-block; font-weight: 500; } .tbl-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; } .tbl-actions button { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 0.5rem; font-size: 1.2rem; transition: all 0.2s; border-radius: 6px; } .tbl-actions button:hover { color: var(--gold); background: var(--surface); } .tbl-actions button.del:hover { color: #ff4757; } /* Checkbox personnalisées */ input[type="checkbox"] { appearance: none; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 6px; background: var(--surface); cursor: pointer; position: relative; transition: all 0.2s; } input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); } input[type="checkbox"]:checked::after { content: '✓'; color: var(--background); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 13px; font-weight: 900; } /* Bandeau de sécurité */ .security-banner { background: rgba(255, 71, 87, 0.05); border: 1px solid rgba(255, 71, 87, 0.3); color: #ff4757; padding: 1.2rem 1.5rem; border-radius: 12px; margin-bottom: 2.5rem; display: flex; justify-content: space-between; align-items: center; } .security-banner i { font-size: 1.3rem; margin-right: 0.5rem; } .security-banner .sec-text { display: flex; align-items: center; } /* Modales (Surcouche) */ .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1000; } .overlay.open { opacity: 1; visibility: visible; } .modal { background: var(--surface-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; width: 90%; position: relative; transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-overlay); max-height: 90vh; overflow-y: auto; } .overlay.open .modal { transform: translateY(0) scale(1); } .modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--surface); border: 1px solid var(--border); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; } .modal-close:hover { color: var(--text); border-color: var(--text); } .modal-h { margin-bottom: 2rem; color: var(--text); font-size: 1.4rem; display: flex; align-items: center; gap: 0.6rem; } .modal-h i { color: var(--gold); font-size: 1.6rem; } /* Formulaires */ .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; } .form-group { margin-bottom: 1.2rem; text-align: left; } .form-group label { display: block; margin-bottom: 0.6rem; font-size: 0.9rem; color: var(--muted); font-weight: 500; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem 1rem; background: var(--background); border: 1px solid var(--border); color: var(--text); border-radius: 8px; font-family: inherit; font-size: 0.95rem; transition: all 0.2s; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); } .divider { margin: 2rem 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); color: var(--gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; } /* Zone d'import CSV */ .import-box { border: 2px dashed var(--border); border-radius: 12px; padding: 3rem 2rem; text-align: center; background: var(--surface); transition: all 0.2s; cursor: pointer; position: relative; } .import-box:hover { border-color: var(--gold); background: var(--gold-dim); } .import-box input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; } .import-box i { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; display: block; } /* Responsive */ @media (max-width: 768px) { .admin-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; } .header-actions { width: 100%; flex-wrap: wrap; } .form-grid { grid-template-columns: 1fr; } .table-container { overflow-x: auto; } .admin-table th, .admin-table td { white-space: nowrap; } } /* ══════════════════════════════════════════════════════════════ AMÉLIORATIONS UI (Recherche, Pagination, Lignes) ═══════════════════════════════════════════════════════════════ */ /* Barre de recherche */ .admin-filters { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; } .search-box { position: relative; flex: 1; max-width: 350px; } .search-box input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.8rem; background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 0.95rem; transition: all 0.2s; } .search-box input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); } .search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; } /* Pagination */ .pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 2rem; padding: 1rem 0; flex-wrap: wrap; } .pagination button { background: var(--surface-card); border: 1px solid var(--border); color: var(--text-secondary); min-width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-weight: 500; font-size: 0.9rem; } .pagination button:hover:not(:disabled):not(.active) { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); } .pagination button.active { background: var(--gold); color: var(--background); border-color: var(--gold); font-weight: 600; box-shadow: 0 4px 10px var(--gold-glow); } .pagination button:disabled { opacity: 0.3; cursor: not-allowed; } .pagination-info { color: var(--muted); font-size: 0.9rem; margin: 0 1rem; font-weight: 500; } /* Amélioration des lignes du tableau */ .admin-table tbody tr { transition: all 0.2s ease; } .admin-table tbody tr:hover { background: var(--surface-hover); } .film-title-cell { display: flex; flex-direction: column; gap: 0.2rem; } .film-title-cell strong { font-size: 1rem; color: var(--text); line-height: 1.2; } .film-title-cell span { font-size: 0.85rem; color: var(--muted); } .info-cell { display: flex; flex-direction: column; gap: 0.4rem; } .streaming-badge { font-size: 0.75rem; color: var(--gold); background: var(--gold-dim); padding: 0.25rem 0.7rem; border-radius: 20px; display: inline-block; width: fit-content; border: 1px solid rgba(212, 175, 55, 0.2); font-weight: 500; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .physical-badge { font-size: 0.75rem; color: var(--muted); background: var(--surface); padding: 0.25rem 0.7rem; border-radius: 20px; display: inline-block; width: fit-content; border: 1px solid var(--border); } /* Badge note numérique à côté des étoiles */ .rating-badge { background: var(--surface); border: 1px solid var(--border); color: var(--gold); font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 6px; min-width: 32px; text-align: center; } /* Badge streaming : plus large, pas de troncation agressive */ .streaming-badge { font-size: 0.75rem; color: var(--gold); background: var(--gold-dim); padding: 0.3rem 0.8rem; border-radius: 20px; display: inline-block; width: fit-content; border: 1px solid rgba(212, 175, 55, 0.25); font-weight: 500; max-width: 220px; /* élargi */ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; } .physical-badge { font-size: 0.75rem; color: var(--muted); background: var(--surface); padding: 0.3rem 0.8rem; border-radius: 20px; display: inline-block; width: fit-content; border: 1px solid var(--border); } /* Espacement vertical dans la cellule infos */ .info-cell { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; } /* Alignement vertical des cellules */ .admin-table td { vertical-align: middle; }