/* ===== Layout tổng ===== */
.app-wrapper {
  min-height: 100vh;
  background-color: #f5f7fb;
}

.main-wrapper {
  background-color: #f5f7fb;
}

/* Nền phần chính phía trên (Khám phá Aiva + search + card) */
.main-content {
  background: linear-gradient(to bottom, #f8faff, #f5f7fb);
  border-bottom: 1px solid #e5e7eb;
}

/* Tiêu đề & mô tả phần chính */
.main-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
}

.main-content p {
  font-size: 1rem;
  color: #475569;
}

/* ===== Topbar (Đăng nhập / Đăng ký) ===== */
.topbar {
  height: 56px;
  background: #ffffff;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.topbar-link {
  font-size: 0.9rem;
  color: #4b5563;
  text-decoration: none;
}

.topbar-link:hover {
  color: #111827;
  text-decoration: underline;
}

.topbar .btn {
  transition: all 0.2s ease;
}

.topbar .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
}

/* ===== Sidebar ===== */
.sidebar-wrapper {
  border-right: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.sidebar {
  font-size: 0.9rem;
}

/* Logo tròn */
.logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* Tiêu đề nhóm (CHUNG, BỘ CÔNG CỤ, ...) */
.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
}

/* Link sidebar */
.sidebar-nav .sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  color: #4b5563;
  text-decoration: none;
  margin-bottom: 0.1rem;
}

.sidebar-nav .sidebar-link:hover {
  background-color: #f4f4ff;
  color: #111827;
}

.sidebar-nav .sidebar-link.active {
  background-color: #2563eb;
  color: #ffffff;
}

/* Icon trái trong sidebar */
.nav-icon {
  font-size: 1rem;
  color: #6b7280;
}

.sidebar-nav .sidebar-link.active .nav-icon {
  color: #ffffff;
}

/* Mũi tên nhỏ bên phải */
.arrow-icon {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ===== Search box ===== */
.search-box {
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
  transition: box-shadow 0.2s ease;
}

.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.search-box input {
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
}

.search-box input::placeholder {
  color: #9ca3af;
}

/* ===== Card danh mục công cụ ===== */
.tool-card .card {
  border-radius: 0.9rem;
  background-color: #ffffff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.shadow-sm-hover {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.tool-card:hover .card {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ===== Footer ===== */
.footer-area {
  background-color: #ffffff;
  font-size: 0.85rem;
}

.footer-links li + li {
  margin-top: 0.25rem;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #111827;
}
/* === COMING SOON PAGE === */
.text-gradient {
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.coming-icon i {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(1); }
}
