/* ========================================
   WEDDING APP - Svatební styl
   Barvy: bílá, růžová, zlatá
   ======================================== */

:root {
    --primary-pink: #e8b4b8;
    --primary-pink-dark: #d4989d;
    --primary-pink-light: #f5dfe0;
    --accent-gold: #c9a961;
    --accent-gold-light: #e8d9a8;
    --white: #ffffff;
    --cream: #faf8f5;
    --text-dark: #4a4a4a;
    --text-light: #7a7a7a;
    --text-muted: #a0a0a0;
    --border-light: #f0e8e8;
    --success: #7cb798;
    --warning: #e8c567;
    --danger: #d4666f;
    --info: #7eb5d6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--cream);
    min-height: 100vh;
}
a { color: var(--primary-pink-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-gold); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.3; color: var(--text-dark); }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; } h4 { font-size: 1.25rem; }

/* LOGIN */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-pink-light) 0%, var(--cream) 50%, var(--white) 100%);
    padding: 2rem;
}
.login-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    text-align: center;
}
.login-logo { margin-bottom: 2rem; }
.login-logo .hearts { font-size: 3rem; margin-bottom: 0.5rem; }
.login-logo h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--primary-pink-dark); margin-bottom: 0.5rem; }
.login-logo p { color: var(--text-muted); font-size: 0.9rem; }
.login-form .form-group { margin-bottom: 1.5rem; text-align: left; }
.login-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-dark); }
.login-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form .form-input:focus { outline: none; border-color: var(--primary-pink); box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.2); }
.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-pink-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.login-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 0.85rem; }

/* INVITATION */
.invitation-page { min-height: 100vh; background: linear-gradient(180deg, var(--white) 0%, var(--primary-pink-light) 100%); }
.invitation-header { text-align: center; padding: 4rem 2rem 3rem; background: var(--white); }
.invitation-header .ornament { color: var(--accent-gold); font-size: 2rem; margin-bottom: 1rem; }
.invitation-header h1 { font-family: var(--font-display); font-size: 3rem; color: var(--primary-pink-dark); margin-bottom: 0.5rem; }
.invitation-header .ampersand { font-size: 2rem; color: var(--accent-gold); margin: 0.5rem 0; }
.invitation-header .subtitle { font-family: var(--font-display); font-style: italic; color: var(--text-light); font-size: 1.25rem; margin-top: 1.5rem; }
.invitation-content { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.invitation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}
.invitation-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.invitation-card h2 { color: var(--primary-pink-dark); margin-bottom: 1.5rem; }
.invitation-card .date-time { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-dark); margin-bottom: 1rem; }
.invitation-card .location { font-size: 1.1rem; margin-bottom: 0.5rem; }
.invitation-card .address { color: var(--text-light); font-size: 0.95rem; }
.invitation-divider { display: flex; align-items: center; justify-content: center; margin: 2rem 0; color: var(--accent-gold); }
.invitation-divider::before, .invitation-divider::after { content: ''; flex: 1; height: 1px; background: var(--accent-gold-light); max-width: 100px; }
.invitation-divider span { padding: 0 1rem; font-size: 1.5rem; }
.invitation-footer { text-align: center; padding: 2rem; color: var(--text-light); }
.invitation-footer .login-link { margin-top: 2rem; }
.invitation-footer .login-link a { color: var(--primary-pink-dark); font-weight: 500; }

/* ADMIN LAYOUT */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border-light); text-align: center; }
.sidebar-header h1 { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary-pink-dark); }
.sidebar-header .user-info { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-light); font-size: 0.85rem; color: var(--text-light); }
.sidebar-header .user-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-pink-light);
    color: var(--primary-pink-dark);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.nav-section { margin-bottom: 1.5rem; }
.nav-section-title { padding: 0.5rem 1.5rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.nav-link { display: flex; align-items: center; padding: 0.75rem 1.5rem; color: var(--text-dark); transition: all 0.2s; border-left: 3px solid transparent; }
.nav-link:hover { background: var(--primary-pink-light); color: var(--primary-pink-dark); }
.nav-link.active { background: var(--primary-pink-light); color: var(--primary-pink-dark); border-left-color: var(--primary-pink-dark); }
.nav-link .icon { width: 20px; margin-right: 0.75rem; text-align: center; }
.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); }
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}
.logout-btn:hover { background: var(--danger); border-color: var(--danger); color: var(--white); }
.main-content { flex: 1; margin-left: 260px; background: var(--cream); }
.content-header { background: var(--white); padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.content-header h1 { font-size: 1.5rem; }
.content-body { padding: 2rem; }

/* DASHBOARD */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); display: flex; align-items: center; }
.stat-card .icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-right: 1rem; }
.stat-card .icon.pink { background: var(--primary-pink-light); }
.stat-card .icon.gold { background: var(--accent-gold-light); }
.stat-card .icon.green { background: rgba(124, 183, 152, 0.2); }
.stat-card .icon.blue { background: rgba(126, 181, 214, 0.2); }
.stat-card .info h3 { font-size: 1.75rem; font-family: var(--font-body); font-weight: 700; color: var(--text-dark); }
.stat-card .info p { color: var(--text-light); font-size: 0.9rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.dashboard-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.dashboard-card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.dashboard-card-header h3 { font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.dashboard-card-body { padding: 1rem 1.5rem; }
.dashboard-list { list-style: none; }
.dashboard-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.dashboard-list li:last-child { border-bottom: none; }

/* TABLES */
.table-container { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-light); }
.data-table th { background: var(--cream); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); }
.data-table tr:hover td { background: var(--primary-pink-light); }
.data-table tr:last-child td { border-bottom: none; }

/* FORMS */
.form-container { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 2rem; max-width: 600px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-dark); }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary-pink); box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.2); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-checkbox { width: 20px; height: 20px; accent-color: var(--primary-pink-dark); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-actions { display: flex; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-pink-dark) 100%); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--white); }
.btn-secondary { background: var(--cream); color: var(--text-dark); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: var(--primary-pink-light); color: var(--primary-pink-dark); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c55a62; }
.btn-success { background: var(--success); color: var(--white); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-icon { padding: 0.5rem; width: 36px; height: 36px; }

/* BADGES */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-pending { background: var(--warning); color: #856404; }
.badge-confirmed { background: var(--success); color: var(--white); }
.badge-declined { background: var(--danger); color: var(--white); }
.badge-priority-1 { background: #e8f5e9; color: #2e7d32; }
.badge-priority-2 { background: #fff3e0; color: #ef6c00; }
.badge-priority-3 { background: #ffebee; color: #c62828; }
.badge-priority-4 { background: #c62828; color: var(--white); }
.badge-status-todo { background: var(--warning); color: #856404; }
.badge-status-in_progress { background: var(--info); color: var(--white); }
.badge-status-done { background: var(--success); color: var(--white); }

/* DRAG & DROP */
.dnd-container { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; }
.dnd-sidebar { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.5rem; height: fit-content; position: sticky; top: 2rem; }
.dnd-sidebar h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-dark); display: flex; align-items: center; gap: 0.5rem; }
.dnd-guest-list { max-height: 400px; overflow-y: auto; }
.dnd-item { background: var(--cream); border: 2px dashed var(--border-light); border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin-bottom: 0.5rem; cursor: grab; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; }
.dnd-item:hover { border-color: var(--primary-pink); background: var(--primary-pink-light); }
.dnd-item.dragging { opacity: 0.5; cursor: grabbing; }
.dnd-item .guest-name { font-weight: 500; }
.dnd-item .guest-count { font-size: 0.8rem; color: var(--text-muted); }
.dnd-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; align-content: start; }
.dnd-dropzone { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); min-height: 200px; transition: all 0.2s; }
.dnd-dropzone.drag-over { box-shadow: 0 0 0 3px var(--primary-pink); }
.dnd-dropzone-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.dnd-dropzone-header h4 { font-size: 1rem; margin: 0; }
.dnd-dropzone-header .capacity { font-size: 0.85rem; color: var(--text-light); }
.dnd-dropzone-body { padding: 1rem; min-height: 120px; }
.dnd-dropzone-body.empty { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-style: italic; }
.occupancy-bar { height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; margin-top: 0.5rem; }
.occupancy-bar-fill { height: 100%; background: var(--success); transition: width 0.3s; }
.occupancy-bar-fill.warning { background: var(--warning); }
.occupancy-bar-fill.full { background: var(--danger); }
.assigned-guest { background: var(--primary-pink-light); border: none; border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: space-between; }
.assigned-guest .remove-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem; border-radius: 4px; transition: all 0.2s; }
.assigned-guest .remove-btn:hover { background: var(--danger); color: var(--white); }

/* MESSAGES */
.messages { padding: 0 2rem; margin-bottom: -1rem; }
.alert { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.alert-success { background: rgba(124, 183, 152, 0.15); border: 1px solid var(--success); color: #2e5a3a; }
.alert-error { background: rgba(212, 102, 111, 0.15); border: 1px solid var(--danger); color: #8b3a3a; }
.alert-warning { background: rgba(232, 197, 103, 0.15); border: 1px solid var(--warning); color: #856404; }
.alert-info { background: rgba(126, 181, 214, 0.15); border: 1px solid var(--info); color: #31708f; }

/* FILTERS */
.filters { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-btn { padding: 0.5rem 1rem; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-full); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; text-decoration: none; color: var(--text-dark); }
.filter-btn:hover, .filter-btn.active { background: var(--primary-pink-light); border-color: var(--primary-pink); color: var(--primary-pink-dark); }

/* TASK */
.task-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.25rem 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; border-left: 4px solid transparent; }
.task-card.priority-1 { border-left-color: #4caf50; }
.task-card.priority-2 { border-left-color: #ff9800; }
.task-card.priority-3 { border-left-color: #f44336; }
.task-card.priority-4 { border-left-color: #9c27b0; }
.task-card.overdue { background: rgba(212, 102, 111, 0.1); }
.task-card.done { opacity: 0.6; }
.task-checkbox { width: 24px; height: 24px; accent-color: var(--success); }
.task-content { flex: 1; }
.task-content h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.task-card.done .task-content h4 { text-decoration: line-through; }
.task-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-light); }
.task-meta .overdue { color: var(--danger); font-weight: 500; }

/* RSVP */
.rsvp-page { min-height: 100vh; background: linear-gradient(180deg, var(--white) 0%, var(--primary-pink-light) 100%); padding: 3rem 1rem; }
.rsvp-container { max-width: 600px; margin: 0 auto; }
.rsvp-header { text-align: center; margin-bottom: 2rem; }
.rsvp-header h1 { font-family: var(--font-display); color: var(--primary-pink-dark); font-size: 2rem; margin-bottom: 0.5rem; }
.rsvp-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2rem; }
.rsvp-greeting { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-light); }
.rsvp-greeting h2 { color: var(--text-dark); margin-bottom: 0.5rem; }
.rsvp-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.rsvp-option { padding: 1.5rem; border: 2px solid var(--border-light); border-radius: var(--radius-md); text-align: center; cursor: pointer; transition: all 0.2s; }
.rsvp-option:hover { border-color: var(--primary-pink); }
.rsvp-option.selected { border-color: var(--primary-pink-dark); background: var(--primary-pink-light); }
.rsvp-option .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.rsvp-option input[type="radio"] { display: none; }

/* CONFIRM DELETE */
.confirm-delete { max-width: 500px; margin: 2rem auto; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 2rem; text-align: center; }
.confirm-delete .icon { font-size: 3rem; color: var(--danger); margin-bottom: 1rem; }
.confirm-delete h2 { margin-bottom: 1rem; }
.confirm-delete p { color: var(--text-light); margin-bottom: 2rem; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--text-light); }

/* UTILITIES */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* MOBILE MENU */
.mobile-menu-btn { display: none; position: fixed; top: 1rem; right: 1rem; z-index: 200; width: 44px; height: 44px; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-sm); cursor: pointer; font-size: 1.5rem; }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.sidebar-overlay.active { display: block; }

/* RESPONSIVE */
@media (max-width: 1200px) { .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .dnd-container { grid-template-columns: 1fr; }
    .dnd-sidebar { position: static; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 768px) {
    .invitation-header h1 { font-size: 2rem; }
    .invitation-card { padding: 2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .rsvp-options { grid-template-columns: 1fr; }
}

/* PRINT */
@media print {
    .sidebar, .mobile-menu-btn, .btn, .filters { display: none !important; }
    .main-content { margin-left: 0; }
    .content-body { padding: 0; }
}
