/* =====================================================
   Wedding Planner Pro — Premium Design System
   ===================================================== */

/* === CSS Custom Properties === */
:root {
    /* Brand Colors - Warm Elegant */
    --brand-50: #fdf8f6;
    --brand-100: #f2e8e5;
    --brand-200: #eaddd7;
    --brand-300: #e0cec7;
    --brand-400: #d2bab0;
    --brand-500: #a3877d;
    --brand-600: #8c736a;
    --brand-700: #755f58;
    --brand-800: #5e4c46;
    --brand-900: #473a35;

    /* Accent Colors */
    --gold: #c9a96e;
    --gold-light: #e8d5a8;
    --gold-dark: #a68844;
    --rose: #d4a0a0;
    --rose-light: #f0d5d5;
    --emerald: #6b9e8a;
    --sky: #7eacc1;

    /* Semantic Colors */
    --success: #4ade80;
    --success-bg: #dcfce7;
    --warning: #fbbf24;
    --warning-bg: #fef3c7;
    --danger: #f87171;
    --danger-bg: #fef2f2;
    --info: #60a5fa;
    --info-bg: #eff6ff;

    /* Layout */
    --bg-primary: #fdf8f6;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f2e8e5;
    --text-primary: #473a35;
    --text-secondary: #755f58;
    --text-muted: #a3877d;
    --border-color: #eaddd7;
    --shadow-color: rgba(71, 58, 53, 0.08);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #a3877d 0%, #c9a96e 100%);
    --gradient-hero: linear-gradient(135deg, #5e4c46 0%, #8c736a 50%, #c9a96e 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(242,232,229,0.5));
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px var(--shadow-color);
    --shadow-md: 0 4px 12px var(--shadow-color);
    --shadow-lg: 0 8px 30px rgba(71, 58, 53, 0.12);
    --shadow-xl: 0 16px 50px rgba(71, 58, 53, 0.15);
    --shadow-glow: 0 0 20px rgba(201, 169, 110, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Dark Mode === */
[data-theme="dark"] {
    --bg-primary: #1a1412;
    --bg-secondary: #231e1b;
    --bg-tertiary: #2d2622;
    --text-primary: #f2e8e5;
    --text-secondary: #d2bab0;
    --text-muted: #8c736a;
    --border-color: #3d3330;
    --shadow-color: rgba(0, 0, 0, 0.3);

    --gradient-card: linear-gradient(145deg, rgba(45,38,34,0.9), rgba(35,30,27,0.5));
    --gradient-hero: linear-gradient(135deg, #1a1412 0%, #3d3330 50%, #c9a96e 100%);
}

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-400);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-500);
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in { animation: fadeIn 0.4s ease-out forwards; }
.fade-in-down { animation: fadeInDown 0.5s ease-out forwards; }
.slide-in-right { animation: slideInRight 0.5s ease-out forwards; }
.slide-in-up { animation: slideInUp 0.5s ease-out forwards; }
.scale-in { animation: scaleIn 0.3s ease-out forwards; }
.float-anim { animation: float 3s ease-in-out infinite; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* === Login Screen === */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(201,169,110,0.1) 0%, transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(212,160,160,0.08) 0%, transparent 60%);
    animation: float 10s ease-in-out infinite;
}

.login-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.login-card h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 8px;
    text-align: center;
}

.login-card p {
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.login-card .ornament {
    text-align: center;
    color: var(--gold);
    font-size: 1.5rem;
    letter-spacing: 8px;
    margin-bottom: 24px;
}

/* === Header === */
.app-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
}

.header-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    position: relative;
}

.header-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.header-btn.active {
    color: var(--gold);
}

/* === Navigation Tabs === */
.nav-tabs {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.nav-tab:hover {
    color: var(--text-secondary);
}

.nav-tab.active {
    color: var(--brand-700);
    border-bottom-color: var(--gold);
}

[data-theme="dark"] .nav-tab.active {
    color: var(--gold);
}

.nav-tab .badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: var(--brand-100);
    color: var(--brand-700);
    font-weight: 600;
}

.nav-tab.active .badge {
    background: var(--gold);
    color: #fff;
}

/* === Main Content === */
.main-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 100px;
    min-height: calc(100vh - 120px);
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.35s ease-out;
}

/* === Cards === */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

.card-compact .card-body {
    padding: 12px 16px;
}

/* === Stat Cards === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.gold::before { background: var(--gold); }
.stat-card.rose::before { background: var(--rose); }
.stat-card.emerald::before { background: var(--emerald); }
.stat-card.sky::before { background: var(--sky); }

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-icon.gold { background: rgba(201,169,110,0.15); color: var(--gold-dark); }
.stat-icon.rose { background: rgba(212,160,160,0.15); color: var(--rose); }
.stat-icon.emerald { background: rgba(107,158,138,0.15); color: var(--emerald); }
.stat-icon.sky { background: rgba(126,172,193,0.15); color: var(--sky); }

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.stat-value.small {
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

/* === Countdown === */
.countdown-banner {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.countdown-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.2) 0%, transparent 50%);
}

.countdown-banner .title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.countdown-banner .subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.countdown-items {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    min-width: 70px;
}

.countdown-item .number {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    line-height: 1;
}

.countdown-item .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 4px;
}

/* === Progress Ring === */
.progress-ring-container {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring .ring-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}

.progress-ring .ring-fill {
    fill: none;
    stroke: var(--gold);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.progress-ring .ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-ring .ring-text .percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.progress-ring .ring-text .sub {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* === Donut Chart (Budget) === */
.chart-container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.donut-chart {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.legend-label {
    color: var(--text-secondary);
    flex: 1;
}

.legend-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
}

/* === List Items === */
.list-group {
    margin-bottom: 20px;
}

.list-group-header {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.list-group-header .count {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--brand-200);
    color: var(--brand-700);
}

.list-item {
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background var(--transition-fast);
    position: relative;
}

.list-item:first-child {
    border-top: 1px solid var(--border-color);
}

.list-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.list-item:hover {
    background: var(--bg-tertiary);
}

.list-item.completed .item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Custom Checkbox */
.custom-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--brand-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-top: 1px;
}

.custom-check:hover {
    border-color: var(--gold);
}

.custom-check.checked {
    background: var(--gold);
    border-color: var(--gold);
}

.custom-check.checked svg {
    display: block;
}

.custom-check svg {
    display: none;
    width: 14px;
    height: 14px;
    color: #fff;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.item-meta {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.item-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-priority-high { background: #fef2f2; color: #dc2626; }
.tag-priority-medium { background: #fef3c7; color: #d97706; }
.tag-priority-low { background: #dcfce7; color: #16a34a; }
.tag-due { background: var(--info-bg); color: #2563eb; }

.item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.list-item:hover .item-actions {
    opacity: 1;
}

.item-action-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.item-action-btn.edit {
    background: var(--info-bg);
    color: #3b82f6;
}

.item-action-btn.edit:hover {
    background: #dbeafe;
}

.item-action-btn.delete {
    background: var(--danger-bg);
    color: #ef4444;
}

.item-action-btn.delete:hover {
    background: #fee2e2;
}

/* === Budget Items === */
.budget-item {
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background var(--transition-fast);
}

.budget-item:first-child {
    border-top: 1px solid var(--border-color);
}

.budget-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.budget-item:hover {
    background: var(--bg-tertiary);
}

.budget-item-info {
    flex: 1;
    min-width: 0;
}

.budget-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.budget-item-amounts {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    font-size: 0.78rem;
}

.budget-est { color: var(--text-muted); }
.budget-paid { color: var(--emerald); font-weight: 500; }

/* === Search Bar === */
.search-bar {
    position: relative;
    margin-bottom: 16px;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all var(--transition-fast);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === Filter Pills === */
.filter-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    font-family: 'Poppins', sans-serif;
}

.filter-pill:hover {
    border-color: var(--gold);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* === FAB (Floating Action Button) === */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: all var(--transition-normal);
    z-index: 40;
}

.fab:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.fab:active {
    transform: scale(0.95);
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* === Forms === */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a3877d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* === Buttons === */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--brand-200);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #ef4444;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
}

/* === Guest Status Badges === */
.status-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-hadir { background: var(--success-bg); color: #16a34a; }
.status-tidak_hadir { background: var(--danger-bg); color: #dc2626; }
.status-belum_konfirmasi { background: var(--warning-bg); color: #d97706; }

/* Vendor Status */
.status-booked { background: var(--success-bg); color: #16a34a; }
.status-contacted { background: var(--info-bg); color: #2563eb; }
.status-pending { background: var(--warning-bg); color: #d97706; }

/* === Toast Notification === */
.toast-container {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--info); }

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 300px;
    margin: 0 auto;
}

/* === Settings Page === */
.settings-section {
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.setting-label {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.setting-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Toggle Switch */
.toggle {
    width: 48px;
    height: 26px;
    border-radius: var(--radius-full);
    background: var(--brand-300);
    border: none;
    cursor: pointer;
    position: relative;
    transition: background var(--transition-fast);
}

.toggle.active {
    background: var(--gold);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle.active::after {
    transform: translateX(22px);
}

/* === Toolbar === */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.toolbar-actions {
    display: flex;
    gap: 8px;
}

/* === Budget Header === */
.budget-header {
    background: var(--gradient-brand);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 20px;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.budget-header-item .label {
    font-size: 0.72rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-header-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-top: 4px;
}

/* === Guest Table === */
.guest-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.guest-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.guest-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.guest-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.guest-table td {
    padding: 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.guest-table tbody tr:hover td {
    background: var(--bg-tertiary);
}

.guest-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--radius-md);
}

.guest-table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--radius-md) 0;
}

/* === Print Styles === */
@media print {
    .app-header, .fab, .toast-container, .modal-overlay, .item-actions {
        display: none !important;
    }

    .main-content {
        padding: 0;
        max-width: 100%;
    }

    .view-section {
        display: block !important;
        page-break-after: always;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown-items {
        flex-wrap: wrap;
    }

    .countdown-item {
        min-width: 60px;
        padding: 10px 12px;
    }

    .countdown-item .number {
        font-size: 1.4rem;
    }

    .progress-ring-container {
        flex-direction: column;
        text-align: center;
    }

    .chart-container {
        flex-direction: column;
        align-items: center;
    }

    .budget-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .header-inner {
        padding: 10px 16px;
    }

    .main-content {
        padding: 16px 16px 100px;
    }

    .guest-table {
        font-size: 0.8rem;
    }

    .guest-table th,
    .guest-table td {
        padding: 8px;
    }

    .item-actions {
        opacity: 1 !important;
    }

    .toolbar-title {
        font-size: 1.1rem;
    }

    .fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

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

    .stat-card {
        flex-direction: row;
        align-items: center;
        padding: 14px;
    }

    .stat-value {
        font-size: 1.2rem;
        margin-left: auto;
    }

    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .nav-tab {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
}
