/* =============================
   🎨 TASKVIET THEME COLOR SYSTEM
   ============================= */
:root {
  --tv-primary: #0061f2;
  --tv-primary-hover: #004bb5;
  --tv-secondary: #6c757d;
  --tv-success: #00b894;
  --tv-warning: #f39c12;
  --tv-danger: #e74c3c;
  --tv-info: #17a2b8;
  --tv-dark: #1e272e;
  --tv-light: #f8f9fa;
  --tv-gradient: linear-gradient(90deg, #0061f2, #00b4d8);
}

/* =============================
   🌐 GLOBAL BASE
   ============================= */
body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background-color: var(--tv-light);
  color: #2f3640;
}

a {
  color: var(--tv-primary);
  text-decoration: none;
}
a:hover {
  color: var(--tv-primary-hover);
  text-decoration: underline;
}

.btn-primary {
  background: var(--tv-gradient);
  border: none;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline-primary {
  border: 1px solid var(--tv-primary);
  color: var(--tv-primary);
}
.btn-outline-primary:hover {
  background: var(--tv-gradient);
  color: #fff;
}

/* =============================
   🧭 NAVBAR & FOOTER
   ============================= */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.navbar .nav-link.active {
  color: var(--tv-primary) !important;
  font-weight: 600;
}

footer {
  background: var(--tv-dark);
  color: #dfe6e9;
}
footer a {
  color: #dfe6e9;
}
footer a:hover {
  color: #fff;
}

/* =============================
   📦 CARDS
   ============================= */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
}

/* =============================
   🧠 HEADINGS & TITLES
   ============================= */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: .3px;
}

/* =============================
   🌈 HERO SECTION
   ============================= */
.hero {
  background: var(--tv-gradient);
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero .btn-primary {
  background: #fff;
  color: var(--tv-primary);
  font-weight: 600;
}
.hero .btn-primary:hover {
  background: #f8f9fa;
}

/* =============================
   🧍 USER AVATAR
   ============================= */
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tv-primary);
}

/* =============================
   📱 RESPONSIVE ADJUSTMENTS
   ============================= */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
    text-align: center;
  }
  footer {
    font-size: 14px;
  }
}

/* Fix Chart Overflow */
.card canvas {
  width: 100% !important;
  height: 60px !important; /* cố định chiều cao nhỏ gọn */
  display: block;
}
