* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f6f9; color: #333; height: 100vh; overflow: hidden; }

/* Layout App Container */
.app-layout { display: flex; height: 100vh; width: 100vw; }

/* Left Sidebar */
.app-sidebar { width: 240px; background-color: #1b2a47; color: #fff; display: flex; flex-direction: column; flex-shrink: 0; height: 100%; border-right: 1px solid #142035; }
.sidebar-header { padding: 20px 15px; font-size: 1.1rem; font-weight: bold; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-menu { list-style: none; padding: 10px 0; overflow-y: auto; flex-grow: 1; }
.sidebar-menu li a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #a6b0cf; text-decoration: none; font-size: 0.95rem; transition: all 0.2s; border-left: 3px solid transparent; }
.sidebar-menu li a:hover, .sidebar-menu li.active a { color: #fff; background-color: rgba(255,255,255,0.08); border-left-color: #28a745; }
.sidebar-footer { padding: 15px 20px; font-size: 0.8rem; color: #8a99ad; border-top: 1px solid rgba(255,255,255,0.05); }

/* Main Wrapper */
.app-main { flex-grow: 1; display: flex; flex-direction: column; height: 100%; overflow: hidden; background-color: #f4f6f9; }

/* Top Header Bar */
.app-topbar { height: 60px; background-color: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; flex-shrink: 0; }
.topbar-title { font-size: 1rem; font-weight: 600; color: #2d3748; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-info { display: flex; align-items: center; gap: 15px; font-size: 0.9rem; color: #4a5568; }
.user-dropdown { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: #2d3748; }

/* Content Scrollable Body */
.app-content { flex-grow: 1; overflow-y: auto; padding: 20px; }

/* Bottom Status Bar */
.app-statusbar { height: 35px; background-color: #fff; border-top: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 0.85rem; color: #718096; flex-shrink: 0; }
.status-item { display: flex; align-items: center; gap: 6px; }

/* Dashboard Widgets & Cards */
.dash-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.dash-left { display: flex; flex-direction: column; gap: 20px; }
.dash-right { display: flex; flex-direction: column; gap: 20px; }

/* Welcome Banner */
.welcome-banner { background: #fff; border-radius: 8px; padding: 20px 25px; border: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.welcome-text h2 { font-size: 1.3rem; color: #1a202c; margin-bottom: 4px; }
.welcome-text p { font-size: 0.9rem; color: #718096; }
.store-badge { background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px 15px; display: flex; align-items: center; gap: 10px; }
.store-badge i { font-size: 1.5rem; color: #28a745; }

/* KPI Row: Mở rộng thành 6 cột hiển thị ngang */
.kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kpi-card { background: #fff; border-radius: 8px; padding: 14px 12px; border: 1px solid #e2e8f0; position: relative; }
.kpi-card .kpi-header { display: flex; justify-content: space-between; align-items: center; color: #718096; font-size: 0.8rem; margin-bottom: 8px; }
.kpi-card .kpi-val { font-size: 1.15rem; font-weight: bold; color: #1a202c; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-card .kpi-trend { font-size: 0.75rem; color: #28a745; font-weight: 600; display: flex; align-items: center; gap: 3px; }

/* Charts Row */
.charts-row { display: grid; grid-template-columns: 7fr 5fr; gap: 15px; }
.card-box { background: #fff; border-radius: 8px; padding: 20px; border: 1px solid #e2e8f0; }
.card-box-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.card-box-title { font-size: 1.05rem; font-weight: bold; color: #2d3748; }

/* Quick Actions Grid */
.quick-actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.action-btn { background: #0072f0; color: #fff; border: none; border-radius: 8px; padding: 15px 10px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; transition: opacity 0.2s; text-decoration: none; }
.action-btn:hover { opacity: 0.9; color: #fff; }
.action-btn.btn-green { background: #28a745; }
.action-btn.btn-orange { background: #ff9800; }
.action-btn.btn-purple { background: #673ab7; }
.action-btn.btn-teal { background: #009688; }
.action-btn.btn-blue { background: #2196f3; }
.action-btn small { font-size: 0.75rem; font-weight: normal; opacity: 0.9; }

/* Tables & Lists */
.tables-row { display: grid; grid-template-columns: 7fr 5fr; gap: 15px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: #f7fafc; color: #4a5568; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 12px; border-bottom: 1px solid #edf2f7; color: #2d3748; }
.badge-status { background: #e6fffa; color: #319795; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.badge-status.pending { background: #feebc8; color: #c05621; }

/* Notifications List */
.notif-list { display: flex; flex-direction: column; gap: 12px; }
.notif-item { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid #edf2f7; }
.notif-content strong { display: block; font-size: 0.9rem; color: #2d3748; margin-bottom: 2px; }
.notif-content span { font-size: 0.85rem; color: #718096; }
.notif-time { font-size: 0.75rem; color: #a0aec0; white-space: nowrap; }