/* RESET & FONT */
body, html { margin: 0; padding: 0; font-family: 'Quicksand', sans-serif; background: #f4f7fa; color: #333; }
* { box-sizing: border-box; }

/* LAYOUT CỐT LÕI */
.od-dashboard { display: flex; min-height: 100vh; width: 100%; }

/* SIDEBAR */
.od-sidebar { width: 260px; background: #fff; border-right: 1px solid #e2e8f0; padding: 30px 20px; flex-shrink: 0; }
.od-logo img { max-width: 100%; height: auto; margin-bottom: 40px; display: block; }
.od-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 15px; }
.od-menu ul { list-style: none; padding: 0; margin: 0; }
.od-menu ul li a { display: block; padding: 12px 15px; color: #475569; text-decoration: none; border-radius: 8px; font-weight: 600; margin-bottom: 5px; transition: 0.3s; }
.od-menu ul li a.active, .od-menu ul li a:hover { background: #1a1a1a; color: #fff; }

/* MAIN CONTENT */
.od-main { flex-grow: 1; padding: 40px; width: 100%; overflow-x: hidden; }
.od-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; }
.od-title h1 { margin: 0; font-size: 24px; color: #1e293b; }
.od-title p { margin: 5px 0 0; color: #64748b; font-size: 14px; }
.od-btn-refresh { background: #fff; border: 1px solid #cbd5e1; padding: 10px 18px; border-radius: 6px; font-weight: 600; cursor: pointer; }

/* WIDGETS */
.od-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.od-card { background: #fff; padding: 25px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.od-card small { color: #64748b; font-weight: 700; font-size: 11px; }
.od-card h3 { margin: 10px 0 0; font-size: 32px; color: #0f172a; }
.txt-warning { color: #f59e0b; }
.txt-success { color: #10b981; }

/* DETAILS GRID */
.od-details { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.od-block { background: #fff; padding: 30px; border-radius: 12px; border: 1px solid #e2e8f0; }
.od-block h2 { font-size: 16px; margin: 0 0 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
.od-empty { color: #94a3b8; font-style: italic; }

/* API BLOCK */
.od-status { background: #f0fdf4; padding: 15px; border-radius: 8px; border-left: 4px solid #10b981; margin-bottom: 20px; }
.od-status strong { display: block; font-size: 14px; color: #166534; }
.od-status span { font-size: 12px; color: #166534; opacity: 0.8; }
.od-btn-api { width: 100%; background: #1a1a1a; color: #fff; border: none; padding: 14px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.od-btn-api:hover { opacity: 0.8; }

/* ==========================================================================
   RESPONSIVE - ĐẢM BẢO KHÔNG BỊ VỠ
   ========================================================================== */

@media (max-width: 1200px) {
    .od-widgets { grid-template-columns: repeat(2, 1fr); }
    .od-details { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .od-dashboard { flex-direction: column; }
    .od-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #eee; padding: 15px; }
    .od-logo img { max-width: 120px; margin-bottom: 15px; }
    .od-menu ul { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 5px; }
    .od-menu ul li a { white-space: nowrap; padding: 8px 15px; font-size: 13px; }
    .od-main { padding: 20px; }
    .od-widgets { grid-template-columns: 1fr; }
    .od-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .od-btn-refresh { width: 100%; }
}