/* ==========================================================================
   ExcelFlow Suite — Trang chủ Tối giản (Chỉ có các nút bấm chức năng)
   ========================================================================== */

/* Ẩn header mặc định khi ở trang chủ */
.ef-header.is-hidden {
  display: none !important;
}

/* Header Navigation Bar khi ở màn hình làm việc */
.ef-main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0f4f9;
  padding: 4px;
  border-radius: 12px;
  margin-left: 14px;
}

.ef-nav-tab {
  border: 0;
  background: transparent;
  color: #556882;
  font-size: 13px;
  font-weight: 650;
  padding: 7px 15px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ef-nav-tab:hover {
  background: #e2ecf7;
  color: #17243b;
}

.ef-nav-tab.active {
  background: #ffffff;
  color: #0b816d;
  font-weight: 750;
  box-shadow: 0 2px 6px rgba(18, 155, 142, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ef-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f7f3;
  color: #0a846f;
  border: 1px solid #b7ecde;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.ef-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

/* Breadcrumb in ExcelFlow Sub-page */
.ef-page-breadcrumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 11px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.ef-back-home-btn {
  border: 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ef-back-home-btn:hover {
  background: #0d9488;
  color: #ffffff;
  transform: translateX(-2px);
}

.ef-badge-active-tool {
  font-size: 12.5px;
  font-weight: 650;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 8px;
}

/* ==========================================================================
   Trang chủ Tối giản: Căn giữa, ít chữ, không icon thừa
   ========================================================================== */
.ef-home-minimal {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.ef-brand-hero {
  text-align: center;
  margin-bottom: 36px;
}

.ef-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

.ef-brand-name {
  font-size: 32px;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.8px;
  margin: 0 0 6px;
}

.ef-brand-sub {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Lưới các nút chức năng (Minimal Button Grid) */
.ef-button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

/* Thẻ nút bấm */
.ef-btn-card {
  appearance: none;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 18px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.ef-btn-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ef-btn-card:active {
  transform: translateY(-1px);
}

/* Nút Chức năng đang hoạt động (ExcelFlow) */
.ef-btn-card.is-active {
  border: 2px solid #0d9488;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 60%);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.12);
}

.ef-btn-card.is-active:hover {
  border-color: #0f766e;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.22);
}

.ef-card-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 6px;
  background: #d1fae5;
  color: #065f46;
  letter-spacing: 0.2px;
}

.ef-card-badge.muted {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.ef-card-name {
  font-size: 15.5px;
  font-weight: 750;
  color: #1e293b;
  line-height: 1.35;
  margin-top: 14px;
}

.ef-btn-card.is-active .ef-card-name {
  color: #0d7a6e;
}

/* Responsive */
@media (max-width: 860px) {
  .ef-button-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .ef-brand-name {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .ef-button-grid {
    grid-template-columns: 1fr;
  }
}
