/* =============================================
   CLEANSPACE – main.css
   ============================================= */

/* ── Design Tokens ─────────────────────────── */
:root {
  --cs-primary:       #1A6B4A;
  --cs-primary-light: #2E8B63;
  --cs-primary-dark:  #114D35;
  --cs-accent:        #F5C842;
  --cs-accent-hover:  #E0B030;
  --cs-surface:       #F8FAF9;
  --cs-surface-2:     #EEF4F1;
  --cs-text:          #1C2B25;
  --cs-text-muted:    #5A7A6A;
  --cs-border:        #D4E4DC;
  --cs-white:         #FFFFFF;
  --cs-danger:        #D94040;

  --cs-font-display:  'Bookman', serif;
  --cs-font-body:     'Garamond', serif;

  --cs-radius:        12px;
  --cs-radius-lg:     20px;
  --cs-radius-pill:   999px;

  --cs-shadow-sm:     0 2px 8px  rgba(26,107,74,.08);
  --cs-shadow:        0 6px 24px rgba(26,107,74,.12);
  --cs-shadow-hover:  0 12px 32px rgba(26,107,74,.2);

  --cs-nav-height:    64px;
  --cs-transition:    .35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--cs-font-body);
  color: var(--cs-text);
  background: var(--cs-surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cs-font-display);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--cs-primary);
  text-decoration: none;
  transition: color var(--cs-transition);
}
a:hover { color: var(--cs-primary-light); }

/* ── Navbar ─────────────────────────────────── */
.cs-navbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cs-border);
  height: var(--cs-nav-height);
  transition: box-shadow var(--cs-transition);
}
.cs-navbar.scrolled { box-shadow: var(--cs-shadow); }

.cs-navbar .navbar-brand {
  font-family: var(--cs-font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--cs-primary) !important;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 0;
}
.cs-navbar .brand-icon {
  width: 32px; height: 32px;
  background: var(--cs-primary);
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; margin-right: 5px;
  color: #fff;
  font-size: .85rem;
}
.cs-navbar .brand-dot { color: var(--cs-accent); display: inline-block; margin-left: 0; } 

.cs-navbar .nav-link {
  font-family: var(--cs-font-display);
  font-weight: 500;
  font-size: .9rem;
  color: var(--cs-text-muted) !important;
  padding: .4rem .8rem !important;
  border-radius: 8px;
  transition: color var(--cs-transition), background var(--cs-transition);
}
.cs-navbar .nav-link:hover,
.cs-navbar .nav-link.active {
  color: var(--cs-primary) !important;
  background: var(--cs-surface-2);
}

.cs-navbar .navbar-toggler {
  border: 1.5px solid var(--cs-border);
  border-radius: 8px;
  padding: .3rem .55rem;
}
.cs-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(26,107,74,.15);
}
.cs-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231A6B4A' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ── Buttons ────────────────────────────────── */
.btn-cs-primary {
  background: var(--cs-primary);
  color: #fff;
  font-family: var(--cs-font-display);
  font-weight: 600;
  font-size: .88rem;
  border: none;
  border-radius: var(--cs-radius-pill);
  padding: .5rem 1.25rem;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background var(--cs-transition), transform var(--cs-transition), box-shadow var(--cs-transition);
  cursor: pointer;
}
.btn-cs-primary:hover {
  background: var(--cs-primary-light);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--cs-shadow-hover);
}

.btn-cs-accent {
  background: var(--cs-accent);
  color: var(--cs-text);
  font-family: var(--cs-font-display);
  font-weight: 700;
  border: none;
  border-radius: var(--cs-radius-pill);
  padding: .65rem 1.75rem;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background var(--cs-transition), transform var(--cs-transition);
  cursor: pointer;
}
.btn-cs-accent:hover {
  background: var(--cs-accent-hover);
  color: var(--cs-text);
  transform: translateY(-2px);
}

.btn-cs-outline {
  background: transparent;
  color: var(--cs-primary);
  border: 2px solid var(--cs-primary);
  font-family: var(--cs-font-display);
  font-weight: 600;
  font-size: .88rem;
  border-radius: var(--cs-radius-pill);
  padding: .45rem 1.15rem;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: all var(--cs-transition);
  cursor: pointer;
}
.btn-cs-outline:hover {
  background: var(--cs-primary);
  color: #fff;
}

/* ── Cards ──────────────────────────────────── */
.cs-card {
  background: var(--cs-white);
  border-radius: var(--cs-radius-lg);
  border: 1px solid var(--cs-border);
  box-shadow: var(--cs-shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--cs-transition), transform var(--cs-transition);
}
.cs-card:hover {
  box-shadow: var(--cs-shadow-hover);
  transform: translateY(-6px);
}

/* ── Form ───────────────────────────────────── */
.form-control, .form-select {
  border: 1.5px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: .6rem 1rem;
  font-family: var(--cs-font-body);
  font-size: .95rem;
  color: var(--cs-text);
  transition: border-color var(--cs-transition), box-shadow var(--cs-transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--cs-primary);
  box-shadow: 0 0 0 3px rgba(26,107,74,.12);
  outline: none;
}
.form-label {
  font-family: var(--cs-font-display);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .35rem;
}

/* ── Badge ──────────────────────────────────── */
.cs-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--cs-font-display);
  font-size: .75rem; font-weight: 600;
  padding: .25rem .75rem;
  border-radius: var(--cs-radius-pill);
}
.cs-badge-primary { background: rgba(26,107,74,.1);  color: var(--cs-primary); }
.cs-badge-accent  { background: rgba(245,200,66,.2); color: #7A6000; }
.cs-badge-danger  { background: rgba(217,64,64,.1);  color: var(--cs-danger); }

/* ── Section helpers ────────────────────────── */
.cs-section    { padding: 80px 0; }
.cs-section-sm { padding: 48px 0; }

.cs-section-title {
  font-family: var(--cs-font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
}
.cs-section-subtitle {
  color: var(--cs-text-muted);
  font-size: 1.05rem;
  font-weight: 300;
}
.cs-label-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--cs-font-display);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--cs-primary);
  background: rgba(26,107,74,.08);
  padding: .28rem .85rem;
  border-radius: var(--cs-radius-pill);
  margin-bottom: .6rem;
}

/* ── Breadcrumb ─────────────────────────────── */
.cs-breadcrumb {
  background: var(--cs-surface-2);
  border-bottom: 1px solid var(--cs-border);
  padding: .7rem 0;
}
.cs-breadcrumb .breadcrumb { margin-bottom: 0; font-size: .85rem; }
.cs-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›"; color: var(--cs-text-muted);
}
.cs-breadcrumb .breadcrumb-item a { color: var(--cs-primary); font-weight: 500; }
.cs-breadcrumb .breadcrumb-item.active { color: var(--cs-text-muted); }

/* ── Footer ─────────────────────────────────── */
.cs-footer {
  background: var(--cs-primary-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
  margin-top: auto;
}
.cs-footer .footer-brand {
  font-family: var(--cs-font-display);
  font-weight: 800; font-size: 1.3rem;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: .85rem;
}
.cs-footer .footer-brand .brand-icon {
  width: 34px; height: 34px;
  background: var(--cs-accent);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cs-text); font-size: .95rem;
}
.cs-footer .footer-tagline {
  font-size: .9rem; line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}
.cs-footer .footer-heading {
  font-family: var(--cs-font-display);
  font-weight: 700; font-size: .9rem;
  color: #fff; margin-bottom: 1rem;
}
.cs-footer .footer-links {
  list-style: none; padding: 0; margin: 0;
}
.cs-footer .footer-links li { margin-bottom: .5rem; }
.cs-footer .footer-links a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: color var(--cs-transition), padding-left var(--cs-transition);
}
.cs-footer .footer-links a:hover {
  color: var(--cs-accent);
  padding-left: 4px;
}
.cs-footer .footer-contact {
  color: rgba(255,255,255,.6);
  font-size: .88rem; margin-bottom: .5rem;
  display: flex; align-items: flex-start; gap: .5rem;
}
.cs-footer .footer-contact i { color: var(--cs-accent); margin-top: .15rem; }
.cs-footer .footer-social {
  display: flex; gap: .5rem; margin-top: 1.25rem;
}
.cs-footer .footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .9rem;
  transition: background var(--cs-transition), color var(--cs-transition), transform var(--cs-transition);
}
.cs-footer .footer-social a:hover {
  background: var(--cs-accent);
  color: var(--cs-text);
  transform: translateY(-2px);
}
.cs-footer .footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 2.5rem 0 0;
}
.cs-footer .footer-bottom {
  padding: 1.1rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ── Back to top ────────────────────────────── */
#cs-back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cs-primary); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  box-shadow: var(--cs-shadow);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .2s;
  z-index: 999;
}
#cs-back-top.visible { opacity: 1; visibility: visible; }
#cs-back-top:hover { transform: translateY(-2px); }

/* ── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeup { animation: fadeUp .5s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ── Navbar Profile Icon Styles ──────────────── */

/* Nút chứa icon hồ sơ */
.btn-cs-outline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;  
    height: 44px;
    border: 1.5px solid var(--cs-border);
    border-radius: 50%;
    color: var(--cs-primary);
    background-color: var(--cs-white);
    transition: all var(--cs-transition);
    text-decoration: none;
}

.btn-cs-outline-icon:hover {
    background-color: var(--cs-primary);
    color: var(--cs-white);
    border-color: var(--cs-primary);
    transform: translateY(-2px);
    box-shadow: var(--cs-shadow-sm);
}

/* Kích thước icon mặt người bên trong */
.btn-cs-outline-icon i {
    font-size: 1.8rem; 
    line-height: 1;
}

/* Đảm bảo Navbar đủ chiều cao để chứa icon to */
.cs-navbar {
    height: 78px; 
}


/* =============================================
   CLEANSPACE – admin.css
   Dùng chung cho tất cả trang management/
   ============================================= */

/* ── Admin Layout ── */
.admin-wrapper {
  display: flex;
  min-height: calc(100vh - var(--cs-nav-height));
}

/* ── Sidebar ── */
.admin-sidebar {
  width: 240px;
  background: var(--cs-primary-dark);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: sticky;
  top: var(--cs-nav-height);
  height: calc(100vh - var(--cs-nav-height));
  overflow-y: auto;
}
.sidebar-label {
  font-family: var(--cs-font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: .75rem 1.25rem .35rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1.25rem;
  color: rgba(255,255,255,.65);
  font-family: var(--cs-font-display);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--cs-transition);
}
.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: var(--cs-accent);
}
.sidebar-link i { font-size: 1rem; width: 20px; text-align: center; }

/* ── Main content ── */
.admin-main {
  flex: 1;
  padding: 2rem;
  background: var(--cs-surface);
  overflow-y: auto;
}
.admin-page-title {
  font-family: var(--cs-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cs-text);
  margin-bottom: 1.5rem;
}

/* ── Stat cards ── */
.stat-card {
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--cs-shadow-sm);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--cs-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.green  { background: rgba(26,107,74,.12); color: var(--cs-primary); }
.stat-icon.yellow { background: rgba(245,200,66,.2);  color: #7A6000; }
.stat-icon.red    { background: rgba(217,64,64,.1);   color: var(--cs-danger); }
.stat-icon.blue   { background: rgba(59,130,246,.1);  color: #2563eb; }
.stat-value {
  font-family: var(--cs-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cs-text);
}
.stat-label {
  font-size: .82rem;
  color: var(--cs-text-muted);
  margin-top: .2rem;
}

/* ── Admin Table ── */
.admin-table {
  background: var(--cs-white);
  border-radius: var(--cs-radius-lg);
  border: 1px solid var(--cs-border);
  overflow: hidden;
  box-shadow: var(--cs-shadow-sm);
}
.admin-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.admin-table thead th {
  background: var(--cs-surface-2);
  padding: .75rem 1rem;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--cs-text-muted);
  border-bottom: 1px solid var(--cs-border);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--cs-border);
  vertical-align: middle;
  color: var(--cs-text);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--cs-surface-2); }

/* ── Status badges ── */
.status-pending   { background: rgba(245,200,66,.2);  color: #7A6000;           padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; font-family: var(--cs-font-display); }
.status-confirmed { background: rgba(26,107,74,.12);  color: var(--cs-primary); padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; font-family: var(--cs-font-display); }
.status-cancelled { background: rgba(217,64,64,.1);   color: var(--cs-danger);  padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; font-family: var(--cs-font-display); }
.status-done      { background: rgba(59,130,246,.1);  color: #2563eb;           padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; font-family: var(--cs-font-display); }