/* 📁 Đường dẫn: /assets/css/gianhatot.ui.full.css */

:root {
  --main-color: #0053b8;
  --accent-color: #00b894;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --success-color: #2ecc71;
  --bg-light: #f4f6f9;
  --gray-light: #e0e6ed;
  --text-dark: #222;
  --text-muted: #777;
  --border-radius: 10px;
  --transition: 0.3s ease;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  margin: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 16px;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1500px;
  margin: 40px auto 80px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.05);
}

.card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-2px);
}

.header, .footer {
  background: var(--main-color);
  color: white;
  padding: 16px 20px;
  text-align: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--main-color);
  color: white;
  padding: 14px 24px;
}
.navbar a {
  color: white;
  margin-left: 16px;
  font-weight: 500;
}

.btn {
  display: inline-block;
  width: auto;
  padding: 8px 16px;
  font-size: 1rem;
}
.btn:hover {
  background: #003f8a;
}
.btn-secondary {
  background: var(--accent-color);
}
.btn-secondary:hover {
  background: #009f7a;
}
.btn-danger {
  background: var(--danger-color);
}
.btn-danger:hover {
  background: #c0392b;
}
.btn-warning {
  background: var(--warning-color);
  color: #fff;
}
.btn-warning:hover {
  background: #d68910;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-size: 1rem;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--main-color);
  outline: none;
  box-shadow: 0 0 4px rgba(0, 83, 184, 0.2);
}

.alert {
  padding: 14px 18px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  font-weight: 500;
}
.alert-success {
  background: #eafaf1;
  color: var(--success-color);
}
.alert-error {
  background: #fdecec;
  color: var(--danger-color);
}
.alert-warning {
  background: #fff3cd;
  color: #856404;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b;
}

.text-center {
  text-align: center;
}
.text-muted {
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.85em;
  border-radius: 999px;
  background: var(--accent-color);
  color: white;
  font-weight: 600;
}

.plan-box {
  border: 1px solid var(--gray-light);
  padding: 20px;
  border-radius: var(--border-radius);
  background: #fff;
  transition: var(--transition);
}
.plan-box:hover {
  border-color: var(--main-color);
  box-shadow: var(--shadow);
}
.plan-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.plan-price {
  font-size: 1.6rem;
  color: var(--main-color);
  margin-bottom: 6px;
}
.plan-desc {
  font-size: 0.95rem;
  color: #666;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 24px 0;
}

/* Tiện ích bổ sung */
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--shadow); }
.fade-in {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hidden { display: none !important; }

.result-wrapper {
  padding: 28px 32px;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-left: 6px solid var(--main-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1e293b;
  overflow-wrap: break-word;
  word-break: break-word;
  max-height: 600px;
  overflow-y: auto;
}

.result-content {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.5;           /* 👈 kiểm soát chiều cao dòng */
  font-weight: normal;        /* 👈 bỏ in đậm toàn khối */
  font-size: 1rem;
}

.result-content strong,
.result-content h2,
.result-content h3 {
  font-weight: bold;          /* 👈 chỉ in đậm ở phần cần */
}

.btn-logout {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background-color: #dc3545;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}
.btn-logout:hover {
  background-color: #c82333;
}

.layout-two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}
.left-column {
  flex: 1 1 100%;
  min-width: 300px;
}
.right-column {
  flex: 1 1 35%;
  min-width: 260px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.profile-box h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #1e40af;
}
.profile-box p {
  margin: 6px 0;
  font-size: 0.95rem;
}
.profile-box .action-buttons {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-box .action-buttons a {
  padding: 8px 12px;
  background: #3b82f6;
  color: white;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  transition: 0.2s;
}
.profile-box .action-buttons a:hover {
  background: #1e40af;
}

@media (max-width: 768px) {
  .layout-two-columns {
    flex-direction: column;
  }
}
/* Thêm vào file CSS chính */
body.dark-mode {
  background: #121212;
  color: #f5f5f5;
}
body.dark-mode a {
  color: #90cdf4;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  background: #1e293b;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}
.dropdown-toggle:hover {
  background: #374151;
}
.dropdown-menu {
  display: none;
  position: absolute;
  background: #ffffff;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  z-index: 999;
  top: 120%;
  right: 0;
}
.dropdown-menu a {
  color: #1f2937;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  font-size: 0.95rem;
}
.dropdown-menu a:hover {
  background: #f3f4f6;
}
.dropdown:hover .dropdown-menu {
  display: block;
}

/* ✅ Dark mode support */
body.dark-mode .dropdown-toggle {
  background: #111827;
  color: #fcd535;
}
body.dark-mode .dropdown-menu {
  background: #1f2937;
}
body.dark-mode .dropdown-menu a {
  color: #e5e7eb;
}
body.dark-mode .dropdown-menu a:hover {
  background: #374151;
}
.used-function {
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 6px;
}
.price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1e40af;
}
.source {
  font-size: 0.9rem;
  color: #6c757d;
}
.faq-section details summary {
  font-weight: 600;
  color: #1e293b;
}
.faq-section details div {
  padding-top: 4px;
  color: #475569;
}
.faq-section summary {
  text-transform: uppercase;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: 0.3px;
}
