/* CSS Stylesheet: Thiệp Mời Đêm Hội Ngộ - Team 05 SG11 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600&family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --color-gold-light: #fff3a8;
  --color-gold-main: #e2b842;
  --color-gold-dark: #a1781b;
  --color-emerald-deep: #03140e;
  --color-emerald-card: rgba(8, 35, 26, 0.85);
  --color-emerald-border: rgba(226, 184, 66, 0.25);
}

/* Tinh chỉnh thanh cuộn */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #04140f;
}

::-webkit-scrollbar-thumb {
  background: #194435;
  border-radius: 9999px;
  border: 1px solid rgba(226, 184, 66, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: #25614c;
}

/* Thẻ kính sang trọng Glassmorphism */
.glass-panel {
  background: linear-gradient(135deg, rgba(9, 38, 28, 0.88) 0%, rgba(5, 23, 17, 0.94) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 184, 66, 0.22);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 243, 168, 0.1);
}

.glass-panel-sub {
  background: rgba(4, 20, 15, 0.6);
  border: 1px solid rgba(226, 184, 66, 0.15);
}

/* Ánh sáng vàng lấp lánh (Shimmer Effect) */
.gold-shimmer {
  background: linear-gradient(
    90deg,
    #e2b842 0%,
    #fff5b8 30%,
    #e2b842 50%,
    #fff8d6 70%,
    #a1781b 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Nút bấm Vàng Hoàng Gia */
.btn-gold-primary {
  background: linear-gradient(135deg, #ffd768 0%, #e2b842 50%, #b88610 100%);
  color: #03140e;
  font-weight: 800;
  border: 1px solid #ffe994;
  box-shadow: 0 4px 18px rgba(226, 184, 66, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold-primary:hover {
  background: linear-gradient(135deg, #ffe085 0%, #ebb93e 50%, #c59117 100%);
  box-shadow: 0 6px 24px rgba(226, 184, 66, 0.55);
  transform: translateY(-1px);
}

.btn-gold-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Nút phụ Viền Vàng */
.btn-gold-outline {
  background: rgba(9, 38, 28, 0.6);
  color: #f7df94;
  border: 1px solid rgba(226, 184, 66, 0.35);
  transition: all 0.2s ease;
}

.btn-gold-outline:hover {
  background: rgba(226, 184, 66, 0.15);
  border-color: #e2b842;
  color: #fff3a8;
}

/* Thanh trượt Range slider tinh xảo */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #0a2e22;
  border-radius: 9999px;
  outline: none;
  border: 1px solid rgba(226, 184, 66, 0.2);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4a3, #e2b842 60%, #9e7818);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(226, 184, 66, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(255, 243, 168, 0.9);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.25);
}

/* Khung Canvas sang trọng */
.canvas-wrapper {
  position: relative;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(226, 184, 66, 0.35) 0%, rgba(9, 45, 33, 0.9) 25%, rgba(4, 18, 13, 0.95) 100%);
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(226, 184, 66, 0.25);
}

#cardCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  cursor: crosshair;
  touch-action: none;
}

#cardCanvas.dragging {
  cursor: grabbing !important;
}

/* Dropzone kéo thả ảnh */
.dropzone-box {
  border: 2px dashed rgba(226, 184, 66, 0.35);
  transition: all 0.25s ease;
  background: rgba(4, 22, 16, 0.4);
}

.dropzone-box:hover,
.dropzone-box.dragover {
  border-color: #ffd768;
  background: rgba(226, 184, 66, 0.08);
  transform: translateY(-1px);
}

/* Toast Thông báo */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(5, 26, 19, 0.96);
  color: #fff;
  border: 1px solid rgba(226, 184, 66, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 15px rgba(226, 184, 66, 0.2);
  backdrop-filter: blur(10px);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
