* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --christmas-green: #86b87d;
    --christmas-green-dark: #5a8a50;
    --christmas-green-light: #b8d4b3;
    --christmas-red: #dc3545;
    --christmas-gold: #fbbf24;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    --primary-blue: #4a90d9;
    --primary-blue-hover: #3a7bc8;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   CHRISTMAS THEME (Startseite)
   ======================================== */

.christmas-theme {
    background: var(--christmas-green);
    position: relative;
    overflow-x: hidden;
}

.christmas-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Wellen */
.wave {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--christmas-green-light);
}

.wave-top {
    top: 0;
    border-radius: 0 0 50% 50%;
    opacity: 0.5;
}

.wave-bottom {
    bottom: 0;
    background: var(--christmas-green-dark);
    border-radius: 60% 60% 0 0;
    height: 150px;
}

/* Schneeflocken Animation */
.snowflakes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 25%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 40%; animation-duration: 8s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 60%; animation-duration: 14s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 75%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 90%; animation-duration: 9s; animation-delay: 5s; }

@keyframes fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0.3; }
}

/* Geschenke */
.gifts {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
}

.gift {
    position: absolute;
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

.gift-1 { left: 5%; bottom: 20px; animation-delay: 0s; }
.gift-2 { left: 20%; bottom: 40px; animation-delay: 0.5s; font-size: 2rem; }
.gift-3 { right: 15%; bottom: 30px; animation-delay: 1s; }
.gift-4 { right: 5%; bottom: 50px; animation-delay: 1.5s; font-size: 1.8rem; }

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

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    font-size: 1.8rem;
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

/* Nav User Area */
.nav-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-admin-btn {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-admin-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.nav-username {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
}

.nav-admin-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ========================================
   HAMBURGER MENU
   ======================================== */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.menu-overlay.active .menu-panel {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.menu-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--christmas-red);
}

.menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
}

.menu-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.menu-item:hover {
    background: #f8fafc;
    border-color: var(--primary-blue);
}

.menu-item-primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.menu-item-primary:hover {
    background: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    color: white;
}

.menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

.menu-logout-area {
    margin-top: 20px;
}

.menu-logout-link {
    display: block;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 12px;
    text-decoration: none;
}

.menu-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.menu-gifts {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 5px;
}

/* Status Card */
.status-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 30px;
}

.christmas-decoration {
    padding: 20px;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    text-align: center;
}

.deco-banner {
    max-width: 300px;
    height: auto;
}

.status-content {
    padding: 30px;
}

.status-display {
    text-align: center;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* FontAwesome Check Icon Style */
.status-icon-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--christmas-green);
    border-radius: 8px;
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.status-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.status-text {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
}

.status-complete .status-icon { color: var(--christmas-green); }
.status-pending .status-icon { color: var(--christmas-gold); }

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    font-size: 1.5rem;
}

.card-header h2,
.card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    flex: 1;
}

.count-badge {
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Teilnehmer Ansicht (nur lesen) */
.participants-view {
    max-height: 250px;
    overflow-y: auto;
}

.participant-view-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 8px;
}

.participant-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-green-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.participant-view-info {
    flex: 1;
}

.participant-view-name {
    font-weight: 600;
    color: var(--text-dark);
}

.participant-view-email {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Regeln Ansicht */
.rules-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.rule-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.rule-icon.active {
    background: var(--christmas-green);
    color: white;
}

.rule-icon.inactive {
    background: #e2e8f0;
    color: var(--text-light);
}

/* Illustration */
.illustration-area {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.person-illustration {
    width: 200px;
    height: 250px;
}

.person-svg {
    width: 100%;
    height: 100%;
}

.floor-gifts {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

.floor-gift {
    position: absolute;
    font-size: 2rem;
    animation: float 2s ease-in-out infinite;
}

/* ========================================
   ADMIN THEME
   ======================================== */

.admin-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.admin-container {
    max-width: 1000px;
}

.navbar-admin {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.nav-actions-admin {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Admin Topbar */
.admin-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar .topbar-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-topbar .topbar-text {
    color: white;
    font-size: 0.9rem;
}

.admin-topbar .topbar-text strong {
    font-weight: 700;
}

.admin-topbar .btn-logout {
    background: #64748b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.admin-topbar .btn-logout:hover {
    background: #475569;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.admin-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
}

/* Formulare */
.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #475569;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--christmas-green);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: var(--christmas-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-danger {
    background: var(--christmas-red);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-complete {
    background: #22c55e;
    color: white;
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Teilnehmer Liste Admin */
.participants-list-admin {
    max-height: 300px;
    overflow-y: auto;
}

.participant-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-blue);
}

.participant-info-admin {
    flex: 1;
}

.participant-name-admin {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.participant-email-admin {
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.btn-icon {
    padding: 8px 12px;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-icon:hover {
    background: var(--christmas-red);
    border-color: var(--christmas-red);
    color: white;
}

/* Toggle/Switches für Regeln */
.rules-edit {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toggle-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    gap: 5px 15px;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-item:hover {
    background: #f1f5f9;
}

.toggle-item input {
    display: none;
}

.toggle-slider {
    grid-row: span 2;
    width: 50px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 13px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-item input:checked + .toggle-slider {
    background: var(--christmas-green);
}

.toggle-item input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-dark);
}

.toggle-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Ziehungsstatus Admin */
.drawing-status-admin {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.pending .status-dot {
    background: var(--christmas-gold);
}

.status-indicator.complete .status-dot {
    background: var(--christmas-green);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Ergebnisse Toggle */
.results-toggle {
    text-align: center;
    padding: 20px;
}

.results-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
}

.drawing-results-admin {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.result-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-green-dark) 100%);
    border-radius: 10px;
    color: white;
}

.result-from-admin,
.result-to-admin {
    font-weight: 600;
}

.result-arrow-admin {
    font-size: 1.3rem;
}

/* SMTP Settings */
.smtp-settings {
    padding-top: 10px;
}

.smtp-notice {
    margin-top: 20px;
    padding: 15px;
    background: #fef3c7;
    border-radius: 10px;
    color: #92400e;
    font-size: 0.9rem;
}

/* E-Mail Vorlage */
.email-preview {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.email-template {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.email-header-deco {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    padding: 20px;
    text-align: center;
}

.email-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--christmas-red);
    margin-bottom: 10px;
}

.email-deco-img {
    font-size: 2rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.email-body {
    padding: 25px;
}

.email-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.email-body p {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.email-btn {
    display: block;
    text-align: center;
    background: var(--primary-blue);
    color: white;
    padding: 14px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin: 20px 0;
}

.email-footer-deco {
    text-align: center;
    padding: 15px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.email-wave {
    height: 50px;
    background: var(--christmas-green-light);
    border-radius: 50% 50% 0 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-style: italic;
}

/* Topbar für Auth (legacy) */
.topbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-user {
    color: white;
    font-size: 0.9rem;
}

.topbar-user strong {
    color: white;
}

.pill {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .navbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .result-item-admin {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .nav-actions-admin {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .admin-topbar {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* Login Page Styles */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.login-notice {
    margin-top: 20px;
    padding: 15px;
    background: #e0f2fe;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #0369a1;
}

.login-notice strong {
    display: block;
    margin-bottom: 5px;
}

/* ========================================
   NEUE SEITEN STYLES
   ======================================== */

/* Party Form */
.party-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.party-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

/* Party List */
.party-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.party-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}

.party-info {
    flex: 1;
}

.party-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.party-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.party-status {
    font-size: 0.85rem;
    font-weight: 600;
}

.party-status.open { color: var(--christmas-gold); }
.party-status.drawn { color: var(--christmas-green); }

.party-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Wishlist Items */
.wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wish-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--christmas-green);
}

.wish-item.priority-high {
    border-left-color: var(--christmas-red);
    background: #fef2f2;
}

.wish-item.priority-medium {
    border-left-color: var(--christmas-gold);
}

.wish-item.priority-low {
    border-left-color: var(--text-light);
}

.wish-info {
    flex: 1;
}

.wish-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.wish-price {
    font-size: 0.9rem;
    color: var(--christmas-green-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.wish-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.wish-link {
    font-size: 0.85rem;
    color: var(--primary-blue);
    text-decoration: none;
}

.wish-link:hover {
    text-decoration: underline;
}

.wish-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.priority-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.priority-badge.priority-high {
    background: #fecaca;
    color: #dc2626;
}

.priority-badge.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-badge.priority-low {
    background: #e2e8f0;
    color: var(--text-light);
}

/* Select Input */
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Notice */
.notice {
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.notice-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--christmas-green);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Profile */
.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-green-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.profile-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

.profile-role.admin {
    color: var(--christmas-gold);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-content form {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Drawn Person */
.drawn-person-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-green-dark) 100%);
    border-radius: 12px;
    color: white;
}

.drawn-person-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
}

.drawn-person-info {
    flex: 1;
}

.drawn-person-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.drawn-person-hint {
    font-size: 0.9rem;
    opacity: 0.9;
}

.drawn-person-hint .btn {
    margin-top: 10px;
}

.drawn-info {
    padding: 15px;
    background: var(--christmas-green-light);
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
}

/* Gift Ideas Grid */
.gift-ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.gift-idea {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.gift-idea:hover {
    background: var(--christmas-green-light);
    transform: translateY(-2px);
    border-color: var(--christmas-green);
    box-shadow: var(--shadow);
}

a.gift-idea:visited {
    color: inherit;
}

.gift-idea-icon {
    font-size: 2rem;
}

.gift-idea-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* Small Button Variant */
.btn-small {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-edit {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-edit:hover {
    background: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

/* Parties List */
.parties-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.party-card-link {
    display: block;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-blue);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    cursor: pointer;
}

.party-card-link:hover {
    background: #e2e8f0;
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.party-card-link .party-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.party-card-link .party-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.party-card-link .party-status {
    font-size: 0.85rem;
    font-weight: 600;
}

.party-card-link .party-status.open { color: var(--christmas-gold); }
.party-card-link .party-status.drawn { color: var(--christmas-green); }

/* Party Badge */
.party-badge {
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Party Details */
.party-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
}

.detail-value {
    color: var(--text-light);
    flex: 1;
}

/* Welcome Card */
.welcome-card {
    text-align: center;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.welcome-text {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    background: var(--christmas-green-light);
    border-color: var(--christmas-green);
    transform: translateY(-3px);
}

.quick-action-icon {
    font-size: 2rem;
}

.quick-action-btn span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Drawn Person with Party Info */
.drawn-person-party {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 8px;
    display: inline-block;
}

/* Responsive Additions */
@media (max-width: 768px) {
    .party-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .party-actions {
        width: 100%;
    }
    
    .party-actions .btn {
        flex: 1;
    }
    
    .wish-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .wish-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .drawn-person-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    color: var(--text-dark);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid var(--christmas-green);
    position: relative;
    overflow: hidden;
}

.toast.toast-success {
    border-left-color: #10b981;
}

.toast.toast-error {
    border-left-color: #ef4444;
}

.toast.toast-warning {
    border-left-color: #f59e0b;
}

.toast.toast-info {
    border-left-color: #3b82f6;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-success .toast-icon::before {
    content: '✅';
}

.toast-error .toast-icon::before {
    content: '❌';
}

.toast-warning .toast-icon::before {
    content: '⚠️';
}

.toast-info .toast-icon::before {
    content: 'ℹ️';
}

.toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress 3s linear;
}

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

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

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.toast-hiding {
    animation: slideOut 0.3s ease-in;
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* ========================================
   MY PARTIES FEATURES - NEUE STYLES
   ======================================== */

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

.stat-card-mini {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon-mini {
    font-size: 32px;
}

.stat-details {
    flex: 1;
}

.stat-value-mini {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label-mini {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Header Actions */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.btn-icon {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Filter Panel */
.filter-panel {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.filter-group {
    margin-bottom: 12px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}

.filter-group input[type="radio"] {
    margin-right: 6px;
}

.filter-group select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    margin-left: 8px;
}

/* Enhanced Party Card */
.party-card-enhanced {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.party-card-enhanced:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.party-card-header {
    margin-bottom: 12px;
}

.party-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.party-name:hover {
    color: var(--primary);
}

.party-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-badge,
.budget-badge,
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.countdown-badge {
    background: #fff3cd;
    color: #856404;
}

.countdown-badge.today {
    background: #d4edda;
    color: #155724;
    animation: pulse 2s infinite;
}

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

.budget-badge {
    background: #e7f3ff;
    color: #004085;
}

.status-badge {
    background: #f8f9fa;
    color: #6c757d;
}

.status-badge.drawn {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.party-card-meta {
    display: flex;
    gap: 16px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.party-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Enhanced Drawn Person Card */
.drawn-person-card-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.drawn-person-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.drawn-person-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.drawn-person-main {
    flex: 1;
}

.drawn-person-party {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.drawn-person-name {
    font-size: 20px;
    font-weight: 600;
}

.reminder-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
}

.reminder-badge.urgent {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.budget-info {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

/* Gift Status Tracker */
.gift-status-tracker {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.status-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.95;
}

.status-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.status-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.status-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.status-option.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-option input[type="radio"] {
    display: none;
}

.status-option span {
    font-size: 13px;
    font-weight: 600;
}

/* Gift Notes Section */
.gift-notes-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.notes-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.95;
}

.gift-notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

.gift-notes-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: white;
}

.drawn-person-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.drawn-person-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

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

.modal-body {
    padding: 24px;
}

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

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 12px;
}

.gallery-party-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 14px;
}

.gallery-item-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
}

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

    .party-card-actions,
    .drawn-person-actions {
        flex-direction: column;
    }

    .party-card-actions .btn,
    .drawn-person-actions .btn {
        width: 100%;
    }

    .status-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Navigation mobile optimizations */
    .navbar {
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-brand {
        flex: 1;
        min-width: 150px;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

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

    .nav-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .nav-menu-btn {
        font-size: 1.3rem;
        padding: 4px 8px;
    }

    /* User Badge mobile */
    .user-badge {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .user-badge .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .user-badge .user-name {
        max-width: 100px;
    }

    /* Admin User Management mobile */
    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .form-group {
        min-width: 100%;
    }

    .user-add-section {
        padding: 15px !important;
    }

    .user-add-section h3 {
        font-size: 15px !important;
    }

    /* Admin cards mobile */
    .admin-card {
        padding: 16px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .card-header h2 {
        font-size: 1.2rem;
    }

    .stats-dashboard {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .party-list-item {
        padding: 14px;
    }

    .party-info h3 {
        font-size: 1rem;
    }

    .party-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .party-actions .btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* ========================================
   CUSTOM MULTISELECT DROPDOWN (Admin Logs)
   ======================================== */

.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.multiselect-header:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.02);
}

.multiselect-header.active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.multiselect-label {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.multiselect-label.has-selection {
    color: #667eea;
    font-weight: 600;
}

.multiselect-arrow {
    font-size: 12px;
    color: var(--text-light);
    transition: transform 0.2s;
}

.multiselect-header.active .multiselect-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    animation: dropdownFadeIn 0.15s ease;
}

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

.multiselect-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    border-bottom: 1px solid #f0f0f0;
}

.multiselect-option:last-child {
    border-bottom: none;
}

.multiselect-option:hover {
    background: rgba(102, 126, 234, 0.08);
}

.multiselect-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.multiselect-option input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

.multiselect-option span {
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.15s;
    flex: 1;
}

/* Scrollbar Styling */
.multiselect-dropdown::-webkit-scrollbar {
    width: 6px;
}

.multiselect-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.multiselect-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.multiselect-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}
/* Admin - Scrollbare Listen */
#adminPartyList.party-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

#usersList.users-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar für Admin-Listen */
#adminPartyList::-webkit-scrollbar,
#usersList::-webkit-scrollbar {
    width: 8px;
}

#adminPartyList::-webkit-scrollbar-track,
#usersList::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
    margin: 4px 0;
}

#adminPartyList::-webkit-scrollbar-thumb,
#usersList::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-gold) 100%);
    border-radius: 4px;
    border: 2px solid var(--bg-light);
}

#adminPartyList::-webkit-scrollbar-thumb:hover,
#usersList::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
}

/* Firefox Scrollbar */
#adminPartyList,
#usersList {
    scrollbar-width: thin;
    scrollbar-color: var(--christmas-green) var(--bg-light);
}

/* Nachrichten-Listen Scrollbar */
.messages-list::-webkit-scrollbar {
    width: 8px;
}

.messages-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
    margin: 4px 0;
}

.messages-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-gold) 100%);
    border-radius: 4px;
    border: 2px solid var(--bg-light);
}

.messages-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
}

/* Firefox Scrollbar für Nachrichten */
.messages-list {
    scrollbar-width: thin;
    scrollbar-color: var(--christmas-green) var(--bg-light);
}
