/* ============================================
   SBC 360° - Admin Stylesheet
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --sidebar-width: 260px;
}

* { font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width); min-height: 100vh; position: fixed;
    left: 0; top: 0; z-index: 1000; display: flex; flex-direction: column;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    transition: transform 0.3s ease;
}
.sidebar .nav-link {
    border-radius: 8px; padding: 10px 15px; margin-bottom: 4px; transition: all 0.2s ease;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(255,255,255,0.1); color: #fff !important;
}
.main-content { margin-left: var(--sidebar-width); }

/* Cards */
.card { border: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: all 0.2s ease; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.stat-card { border-left: 4px solid var(--primary); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--accent); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

/* Buttons */
.btn-primary { background-color: var(--primary); border-color: var(--primary); border-radius: 8px; font-weight: 600; padding: 8px 20px; }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }

/* Tables */
.table { border-radius: 12px; overflow: hidden; }
.table th { background-color: var(--bg-light); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.table td { vertical-align: middle; padding: 12px 16px; }

/* Badge statuts */
.badge-brouillon { background-color: #94a3b8; }
.badge-en_cours { background-color: var(--accent); }
.badge-publiee { background-color: var(--success); }
.badge-archivee { background-color: var(--text-muted); }

/* Upload zone */
.upload-zone { border: 2px dashed var(--border); border-radius: 12px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.3s ease; background-color: #fff; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background-color: #eff6ff; }
.upload-zone i { font-size: 3rem; color: var(--primary); }

/* Visite card */
.visite-card { overflow: hidden; cursor: pointer; }
.visite-card .visite-thumbnail { height: 180px; background-size: cover; background-position: center; background-color: var(--secondary); position: relative; }
.visite-card .visite-thumbnail .visite-status { position: absolute; top: 10px; right: 10px; }
.visite-card .visite-thumbnail .visite-views { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; }

/* Login */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%); }
.login-card { width: 100%; max-width: 420px; border-radius: 16px; overflow: hidden; }
.login-header { background: linear-gradient(135deg, var(--primary), #7c3aed); padding: 30px; text-align: center; color: #fff; }

/* Scene grid */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.scene-item { border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 16/9; background-color: #1e293b; cursor: pointer; }
.scene-item img { width: 100%; height: 100%; object-fit: cover; }
.scene-item .scene-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 8px; opacity: 0; transition: opacity 0.3s; }
.scene-item:hover .scene-overlay { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); position: fixed; }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.card { animation: fadeIn 0.3s ease; }

/* Dropzone */
.dz-progress { height: 4px !important; background: #e2e8f0 !important; border-radius: 2px !important; }
.dz-upload { background: var(--primary) !important; }
