.review-section {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    border: 2.5px solid var(--sidebar-border);
    border-radius: 10px;
    background: var(--card-bg);
    overflow: hidden;
}
.review-section .row {
    display: grid;
    gap: 0;
}
.review-section .row-1 {
    grid-template-columns: 1fr 2fr;
    border-bottom: none;
}
.review-section .row-2 {
    border-top: 2.5px solid var(--sidebar-border); /* Đường kẻ ngang giữa 2 hàng giống border giữa các ô */
    grid-template-columns: 1fr 1fr;
}
.review-section .cell {
    background: var(--card-bg);
    border: none;
    border-radius: 0;
    padding: 1.2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-text);
    box-shadow: none;
}
/* Review section layout - tối ưu border */
.review-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
    border: 2.5px solid var(--sidebar-border); /* Bo viền 4 cạnh rõ hơn */
    border-radius: 10px;
    background: var(--card-bg);
    overflow: hidden;
}
.review-section .row {
    display: grid;
    gap: 0;
}
.review-section .row-1 {
    grid-template-columns: 1fr 2fr;
    border-bottom: 4px solid var(--sidebar-border); /* Đường kẻ ngang rõ hơn giữa 2 hàng */
}
.review-section .row-2 {
    grid-template-columns: 1fr 1fr;
}
.review-section .row-1 .cell-1-1 {
    border-right: 2.5px solid var(--sidebar-border); /* Đường kẻ dọc giữa 2 ô hàng 1 */
}
.review-section .row-2 .cell-2-1 {
    border-right: 2.5px solid var(--sidebar-border); /* Đường kẻ dọc giữa 2 ô hàng 2 */
}
.review-section .cell {
    background: var(--card-bg);
    border: none;
    border-radius: 0;
    padding: 1.2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-text);
    box-shadow: none;
}
/* Review section layout */
.review-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}
.review-section .row {
    display: grid;
    gap: 0;
}
.review-section .row-1 {
    grid-template-columns: 1fr 2fr;
}
.review-section .row-2 {
    grid-template-columns: 1fr 1fr;
}
.review-section .cell {
    background: var(--card-bg);
    border: none;
    border-radius: 0;
    padding: 1.2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-text);
    box-shadow: none;
    position: relative;
}
/* Vạch kẻ dọc giữa các ô hàng 1 */
.review-section .row-1 .cell-1-1 {
    border-right: 1.5px solid var(--card-border);
}
.review-section .row-1 .cell-1-2 {
    border-left: none;
}
/* Vạch kẻ ngang giữa các ô hàng 2 */
.review-section .row-2 .cell-2-1 {
    border-right: 1.5px solid var(--card-border);
}
.review-section .row-2 .cell-2-2 {
    border-left: none;
}

:root {
    --bg-color: #18191b;
    --sidebar-bg: #111216;
    --sidebar-border: #23272f;
    --header-bg: #23272f;
    --primary-text: #e0e0e0;
    --secondary-text: #a0a0a0;
    --accent: #3b82f6;
    --danger: #ef4444;
    --card-bg: #202124;
    --card-border: #23272f;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--primary-text);
    min-height: 100vh;
}

.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    background: var(--header-bg);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    padding: 0 2rem;
    box-sizing: border-box;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--sidebar-border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo {
    font-size: 2rem;
}
.env-badge {
    background: #23272f;
    color: #fff;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.9rem;
    margin-left: 1rem;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.user-avatar {
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 40px;
    height: calc(100vh - 64px);
    background: var(--sidebar-bg);
    border-right: 1.5px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
    transition: width 0.25s cubic-bezier(.4,0,.2,1);
    box-sizing: border-box;
    padding-top: 0.5rem;
    overflow-x: hidden;
}
.sidebar:hover {
    width: 200px;
    box-shadow: 4px 0 16px rgba(0,0,0,0.18);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin-top: 0.5rem;
}
.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 44px;
    width: 100%;
    color: var(--secondary-text);
    font-size: 1.5rem;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, transform 0.18s, padding 0.2s;
    cursor: pointer;
    margin: 2px 0;
    padding-left: 0;
    overflow: hidden;
}
.sidebar:hover .nav-item {
    padding-left: 18px;
    font-size: 1.15rem;
}
.nav-item span {
    opacity: 0;
    white-space: nowrap;
    margin-left: 0.5rem;
    transition: opacity 0.2s, margin 0.2s;
}
.sidebar:hover .nav-item span {
    opacity: 1;
    margin-left: 1rem;
}
.nav-item.active,
.nav-item:hover {
    background: #23272f;
    color: var(--accent);
    transform: scale(1.13);
}

/* Main content */
.content-columns {
    display: flex;
    margin-top: 64px;
}
.main-content {
    margin-left: 40px;
    padding: 2rem 2.5rem;
    flex: 1 1 0;
    min-width: 0;
    background: var(--bg-color);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Dashboard header */
.dashboard-header {
    margin-bottom: 2rem;
}
.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}
.nano-badge {
    background: #23272f;
    color: #fff;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 1rem;
    margin-left: 1rem;
}
.project-status {
    color: var(--secondary-text);
    font-size: 1rem;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 44px;
    width: 100%;
    color: var(--secondary-text);
    font-size: 1.5rem;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, transform 0.18s, padding 0.2s;
    cursor: pointer;
    margin: 2px 0;
    padding-left: 0;
    overflow: hidden;
}
.sidebar:hover .nav-item {
    padding-left: 18px;
    font-size: 1.15rem;
}
.nav-item span {
    opacity: 0;
    white-space: nowrap;
    margin-left: 0.5rem;
    transition: opacity 0.2s, margin 0.2s;
}
.sidebar:hover .nav-item span {
    opacity: 1;
    margin-left: 1rem;
}
.nav-item.active,
.nav-item:hover {
    background: #23272f;
    color: var(--accent);
    transform: scale(1.13);
}
.issues-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.issue-count {
    background: var(--danger);
    color: #fff;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 1rem;
    margin-right: 0.5rem;
}
.attention {
    color: var(--danger);
    font-weight: 700;
}
.issues-table {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
}
.issue-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--primary-text);
}
.issue-type {
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 0.5rem;
}
.issue-type.security {
    background: var(--danger);
    color: #fff;
}

/* Slow queries section */
.slow-queries-section {
    margin-bottom: 2rem;
}
.slow-queries-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.queries-table {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
}
.query-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--primary-text);
}
.query-time {
    color: var(--accent);
    font-weight: bold;
}
.query-calls {
    color: var(--secondary-text);
}

/* Responsive */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding: 1rem 0.5rem;
    }
    .header-bar {
        padding: 0 0.5rem;
    }
}
