/* Custom style cho Catalogue của Han's Studio (V5.1 - Đa Theme & Dashboard Widescreen) */

:root {
  --primary: #C9A96E;       /* Vàng champagne */
  --secondary: #2C2C2C;     /* Đen than */
  --accent: #E8D5B7;        /* Kem nhạt */
  --bg-light: #FAFAF8;      /* Trắng kem */
  --bg-white: #FFFFFF;
  --text: #333333;          /* Xám đậm */
  --text-muted: #6B7280;
  --border-color: rgba(201, 169, 110, 0.2);
  --shadow: 0 4px 24px rgba(201, 169, 110, 0.12);
  --card-bg: rgba(255, 255, 255, 0.9);
}

/* Theme tối (Dark Mode) */
html.dark, body.dark {
  --bg-light: #121214;       /* Đen charcoal tối hẳn */
  --bg-white: #1A1A1E;       /* Đen xám */
  --text: #E5E7EB;           /* Xám nhạt */
  --text-muted: #9CA3AF;     /* Xám mờ */
  --border-color: rgba(201, 169, 110, 0.35);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --card-bg: rgba(26, 26, 30, 0.9);
  --secondary: #0F0F12;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

/* Glassmorphism card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(201, 169, 110, 0.25);
  border-color: rgba(201, 169, 110, 0.4);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
html.dark ::-webkit-scrollbar-track {
  background: #1e1e24;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b5955f;
}

/* Hiệu ứng chuyển tab */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nút bấm vàng champagne */
.btn-primary {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background-color: #b5955f;
  transform: translateY(-2px);
}

/* Active tab style */
.active-tab {
  background-color: rgba(201, 169, 110, 0.15) !important;
  color: #C9A96E !important;
  border: 1px solid rgba(201, 169, 110, 0.3);
}

/* Thẻ xuất ảnh báo giá */
.wedding-package-export {
  width: 500px;
  padding: 30px;
  background-color: #FAFAF8;
  color: #333333;
  border: 4px solid #C9A96E;
  border-radius: 12px;
  position: relative;
  font-family: 'Inter', sans-serif;
  margin: 10px auto;
}

.wedding-package-export .header-brand {
  text-align: center;
  border-bottom: 2px solid #C9A96E;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.wedding-package-export .package-price {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: #C9A96E;
  font-weight: bold;
  text-align: center;
  margin: 15px 0;
}

/* List view styling */
.list-view-item {
  display: flex;
  flex-direction: row;
  height: 280px;
  width: 100%;
}
@media (max-width: 768px) {
  .list-view-item {
    flex-direction: column;
    height: auto;
  }
}

/* Sub-tabs dạng nút tròn */
.sub-tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid #E5E7EB;
  background-color: var(--bg-white);
  color: var(--text-muted);
  transition: all 0.2s ease;
}
html.dark .sub-tab-btn {
  border-color: #374151;
}
.sub-tab-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(201, 169, 110, 0.2);
}

/* Bảng in ấn chi tiết */
.pricing-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
}

.detail-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.detail-pricing-table th {
  background-color: #2C2C2C;
  color: #FFFFFF;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}
html.dark .detail-pricing-table th {
  background-color: #1A1A1E;
}
.detail-pricing-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text);
  background-color: var(--bg-white);
}
.detail-pricing-table tr:hover td {
  background-color: rgba(201, 169, 110, 0.08);
}

/* Theme Switcher Toggle Switch */
.theme-switch-container {
  display: flex;
  align-items: center;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Custom list-style for vertical sidebar folder menus */
.sidebar-vertical-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: var(--text);
  background-color: transparent;
}
.sidebar-vertical-btn:hover {
  background-color: rgba(201, 169, 110, 0.08);
}
.sidebar-vertical-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.18);
}

/* Concept Edit A4 Preview Page Styles */
.concept-preview-a4 {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1.414; /* Tỷ lệ A4 đứng */
  background-color: #FAFAF8;
  color: #2C2C2C;
  border: 4px solid #C9A96E;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;
}

/* Zooming container for posing images */
.pose-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 130%; /* Tỷ lệ khung đứng chụp mẫu */
  overflow: hidden;
  border-radius: 12px;
  background-color: #F3F4F6;
  border: 1px solid rgba(201, 169, 110, 0.15);
}
html.dark .pose-card-img-wrapper {
  background-color: #2D2D34;
}
.pose-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pose-card-img-wrapper:hover .pose-card-img {
  transform: scale(1.05);
}
.pose-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(44, 44, 44, 0.8);
  color: #E8D5B7;
  border: 1px solid rgba(201, 169, 110, 0.3);
  backdrop-filter: blur(4px);
}
