﻿@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;700&display=swap');

body {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9fb;
}

/* Tiêu đề */
h1, h2, h3, h4, h5 {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

/* Văn bản mô tả, nhẹ nhàng */
.text-muted {
    color: #6c757d !important;
    font-size: 15px;
}

/* Chữ trong thẻ card */
.card-body {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 15.5px;
}

/* Chữ trong nút hoặc tab */
.nav-link, .btn {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Làm đẹp bảng */
.table td, .table th {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 15px;
}

/* Optional: đẹp hơn khi load font từ Google Fonts */

body {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    background-color: #f9f9fb;
    -webkit-font-smoothing: antialiased;
}

/* Tiêu đề */
h1, h2, h3, h4, h5 {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

/* Văn bản phụ */
.text-muted {
    color: #6c757d !important;
    font-size: 15px;
}

/* Chữ trong thẻ card */
.card-body {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 15.5px;
}

/* Tab, nút */
.nav-link, .btn {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Reset cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    background-color: #f9f9f9;
}

.inbox-item {
    position: relative; /* <== Cần thiết cho tooltip hoạt động đúng */
}

.chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    position: relative;
}

.tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10000;
    max-width: 250px;
    word-break: break-word;
}



path.outer {
    transition: transform 0.3s ease, filter 0.3s ease;
}

path.outer:hover {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
}

.chart-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0;
    max-width: 650px;
    margin: auto;
    text-align: center;
}

.chart-card h3 {
    margin-bottom: 20px;
    color: #333;
}

.chart-wrapper svg {
    display: block;
    margin: auto;
}

text.label {
    font-size: 14px;
    font-weight: 600;
    fill: #000;
    text-anchor: middle;
    pointer-events: none; /* Để không chắn tooltip */
}

div.md-reader.md-reader-review {
    max-height: 450px;
    overflow-y: auto;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

div.md-reader.md-reader-review::-webkit-scrollbar {
    width: 8px;
}

div.md-reader.md-reader-review::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

div.md-reader.md-reader-review::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
}

div.md-reader.md-reader-review::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

div.md-reader.md-reader-review p {
    margin-bottom: 12px;
}

div.md-reader.md-reader-review h1, div.md-reader.md-reader-review h2, div.md-reader.md-reader-review h3,
div.md-reader.md-reader-review h4, div.md-reader.md-reader-review h5, div.md-reader.md-reader-review h6 {
    margin-top: 16px;
    margin-bottom: 12px;
    color: #212529;
}

div.md-reader.md-reader-review code {
    background-color: #f1f3f5;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9em;
}

div.md-reader.md-reader-review pre {
    background-color: #f1f3f5;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
}

/* ====== Global Text & Layout ====== */
html, body {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

*,
*::before,
*::after {
    color: #ffffff !important;
    box-sizing: border-box;
}

/* ====== Card ====== */
.card,
.card-body {
    background-color: #252526 !important;
    border: 1px solid #3c3c3c;
    color: #ffffff !important;
}

/* ====== Labels ====== */
label,
.form-label {
    color: #9cdcfe !important;
}

/* ====== Inputs ====== */
input.form-control {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #3c3c3c;
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

input.form-control::placeholder {
    color: #888 !important;
    font-style: italic;
}

input.form-control:focus {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.3);
    outline: none;
}

/* ====== Tooltip ====== */
.invalid-tooltip {
    color: #f44747 !important;
    background-color: transparent !important;
}

/* ====== Modal ====== */
.modal-content {
    background-color: #252526 !important;
    color: #ffffff !important;
}

.modal-header,
.modal-footer {
    background-color: #2a2a2a !important;
    border-color: #3c3c3c !important;
    color: #ffffff !important;
}

.modal-title {
    color: #9cdcfe !important;
}

/* ====== Misc ====== */
.banner-text h1,
h1, h2, h3, h4, h5, h6,
p, span, strong, b {
    color: #ffffff !important;
}

.scroll-button {
    background-color: #2d2d30 !important;
    color: #ffffff !important;
    border: 1px solid #3c3c3c;
}

.scroll-button:hover {
    background-color: #3c3c3c !important;
}

/* ====== Navbar container ====== */
.navbar,
.navbar-expand-lg,
.navbar-dark,
.navbar-collapse {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #3c3c3c;
    color: #ffffff !important;
}

/* ====== Nav item ====== */
.nav-item,
.nav-link {
    color: #cccccc !important;
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* ====== Nav item - hover & active ====== */
.nav-link:hover,
.nav-link:focus {
    color: #ffffff !important;
    background-color: #2d2d30 !important;
}

.nav-link.active {
    color: #ffffff !important;
    background-color: #007acc !important;
    border-radius: 4px;
}

.nav-link {
    color: #0c0c0c !important;
}

/* ====== Dropdown menu (nếu có) ====== */
.dropdown-menu {
    background-color: #252526 !important;
    border: 1px solid #3c3c3c;
}

.dropdown-item {
    color: #cccccc !important;
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #ffffff !important;
    background-color: #007acc !important;
}

/* ====== Navbar brand/logo ====== */
.navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

.navbar-brand:hover {
    color: #9cdcfe !important;
}
/* ====== Nav link bình thường ====== */
.navbar .nav-link {
    color: #cccccc !important;
    background-color: transparent !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* ====== Hover & focus ====== */
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff !important;
    background-color: #2d2d30 !important;
}

/* ====== Active tab ====== */
.navbar .nav-link.active {
    color: #ffffff !important;
    background-color: #007acc !important;
    border-radius: 4px;
    font-weight: 500;
}

/* ====== Global text color ====== */
body,
h1, h2, h3, h4, h5, h6,
p, span, label,
div, li, dt, dd,
strong, b, small,
.form-label,
.card-title,
.modal-title,
th, td {
    color: #ffffff !important;
}

/* SVG text color fix for dark theme */
svg text {
    fill: #ffffff !important;
}

/* Nếu có text phụ, bạn có thể tùy chỉnh tone */
svg text.secondary,
svg text[style*="fill: rgb(102"],
svg text[style*="fill: rgb(51"] {
    fill: #cccccc !important;
}

.chart-wrapper {
    border-radius: 8px;
    padding: 1rem;
}

.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.7); /* tối hơn */
}



