/* ==========================================================================
   SEMKANESH MARTKETPLACE - ADMIN PANEL CSS
   ========================================================================== */

.admin-body { display: flex; height: 100vh; overflow: hidden; background: #F4F6F9; width: 100vw; max-width: 100%; font-family: 'Poppins', sans-serif; }

/* Loading Perlindungan */
.admin-loading { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: white; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Sidebar */
.admin-sidebar { width: 250px; background: #2C3E50; color: white; display: flex; flex-direction: column; transition: 0.3s; z-index: 1000; flex-shrink: 0; }
.sidebar-header { padding: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; gap: 10px; }
.sidebar-header h2 { font-size: 16px; color: white; margin: 0; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 20px 0; }
.nav-link { display: flex; align-items: center; padding: 12px 20px; color: #BDC3C7; transition: 0.3s; font-size: 14px; margin-bottom: 2px; }
.nav-link i { width: 25px; font-size: 16px; }
.nav-link:hover, .nav-link.active { background: #34495E; color: white; border-left: 4px solid var(--primary-color); }
.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }

/* Main Content */
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.admin-header { height: var(--header-height); background: white; display: flex; align-items: center; padding: 0 20px; box-shadow: var(--shadow-sm); z-index: 10; gap: 15px; flex-shrink: 0; }
.admin-header h3 { margin: 0; flex: 1; font-size: 16px; color: #2C3E50; }
.mobile-menu-toggle { display: none; }
.admin-content { flex: 1; overflow-y: auto; padding: 20px; overflow-x: hidden; }

/* Dashboard Cards (Solid Colors untuk visibilitas 100%) */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-card { padding: 20px; border-radius: var(--border-radius); color: white; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-md); }
.bg-blue { background-color: #3B82F6 !important; }
.bg-green { background-color: #10B981 !important; }
.bg-orange { background-color: #F59E0B !important; }
.bg-purple { background-color: #8B5CF6 !important; }
.stat-card i { font-size: 36px; opacity: 0.9; color: white; }
.stat-card h3 { font-size: 24px; margin: 0; color: white; line-height: 1.2; }
.stat-card p { margin: 0; font-size: 12px; color: white; opacity: 0.9; }

/* Form & Layout */
.form-card { background: white; padding: 20px; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.form-card h3 { font-size: 16px; color: #2C3E50; margin-bottom: 15px; border-bottom: 1px solid #F1F5F9; padding-bottom: 10px; }
.m-0 { margin: 0 !important; }

/* Tables Responsive (Anti Offside) */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; min-width: 600px; border-collapse: collapse; white-space: normal; }
.admin-table th, .admin-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 13px; color: #2C3E50; }
.admin-table th { background: #F8F9FA; font-weight: 600; text-transform: uppercase; font-size: 11px; }
.admin-table tr:hover { background: #F1F5F9; }
.admin-table td .btn { padding: 6px 12px; font-size: 11px; width: auto; margin-right: 5px; margin-bottom: 5px; }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.modal-card { background: white; padding: 25px; border-radius: var(--border-radius); width: 90%; max-width: 400px; box-shadow: var(--shadow-lg); }

/* Responsive Mobile */
@media (max-width: 768px) {
    .admin-sidebar { position: fixed; left: -250px; height: 100vh; }
    .admin-sidebar.open { left: 0; box-shadow: 5px 0 15px rgba(0,0,0,0.2); }
    .mobile-menu-toggle { display: block; }
    .form-row { flex-direction: column; gap: 10px; }
    .table-responsive::before { content: "Geser tabel ke kiri-kanan 👉"; display: block; font-size: 10px; color: var(--text-secondary); padding: 8px; background: #F8F9FA; text-align: center; }
}