/* 
 * style.css - Central Stylesheet for ABZ Veranstaltungen
 * Contains all global variables, resets, and component styles.
 */

:root {
    --primary: #003b7a;
    --secondary: #002b5a;
    --gradient: linear-gradient(135deg, #003b7a 0%, #002b5a 100%);
    --white: #ffffff;
    --gray-light: #f1f3f9;
    --gray: #d1d8e5;
    --text: #333;
    --ude-blue: #003b7a;
    --success-bg: #d4edda;
    --success-text: #155724;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --info-bg: #e3f2fd;
    --info-text: #003b7a;
}

/* Base Resets */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content {
    padding: 30px;
}

/* Navigation - Header Branding */
.branding-header {
    background: white;
    padding: 20px 2rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.branding-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ude-logo img {
    height: 45px;
    width: auto;
}

.abz-logo img {
    height: 40px;
    width: auto;
}

/* Navigation - Navbar */
.navbar {
    background: var(--ude-blue);
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 50px;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: stretch;
    height: 100%;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 15px;
    height: 50px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-menu {
    display: flex;
    align-items: stretch;
    height: 100%;
}

/* Navigation - User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    padding: 0 15px;
    height: 50px;
}

.user-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Navigation - Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
    align-self: center;
    /* Center vertically in the flex container */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.header-stats {
    background: var(--primary);
    color: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 0;
    font-weight: 500;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0;
    font-weight: 500;
}

.alert.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert.error {
    background: var(--error-bg);
    color: var(--error-text);
}

.alert.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #ffeaa7;
}

.alert.info {
    background: var(--info-bg);
    color: var(--info-text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

/* Admin Tree Specific Styles */
ul[class^="tree-level-"] {
    list-style: none;
    padding-left: 0;
    /* Reset default padding globally */
    margin: 0;
}

.tree-level-0 {
    padding-left: 0;
}

.tree-level-1,
.tree-level-2,
.tree-level-3,
.tree-level-4 {
    padding-left: 20px;
    /* Only intent deeper levels on desktop */
}

.admin-event-list {
    list-style: none;
    padding-left: 20px;
    border-left: 2px solid #eee;
    margin: 10px 0;
}

.event-item {
    background: white;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* User Table Styles */
.user-table th,
.user-table td {
    padding: 12px;
    vertical-align: middle;
}

/* Auswahl Tree Styles */
.tree-level-0 {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-logout {
    background: #cc0000 !important;
    color: white !important;
}

.btn-next,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 59, 122, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 59, 122, 0.4);
    background: linear-gradient(135deg, #004ba0 0%, #003b7a 100%);
}

.btn-next:disabled,
.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Admin Buttons */
.btn-adm {
    background-color: #f8f9fa;
    border: 1px solid var(--gray);
    color: #495057 !important;
    padding: 6px 12px;
    font-size: 0.85em;
    cursor: pointer;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 115px;
    flex-shrink: 0;
}

.btn-adm:hover {
    background-color: #e9ecef;
}

.btn-adm-primary {
    background-color: #e0eaff;
    color: var(--primary) !important;
    border-color: #c5cae9;
}

.btn-adm-primary:hover {
    background-color: #c5cae9;
}

.btn-adm-success {
    background-color: #e8f5e9;
    color: #2e7d32 !important;
    border-color: #c8e6c9;
}

.btn-adm-success:hover {
    background-color: #c8e6c9;
}

.btn-adm-danger {
    background-color: #fce4ec;
    color: #c2185b !important;
    border-color: #f8bbd0;
}

.btn-adm-danger:hover {
    background-color: #f8bbd0;
}

.btn-toggle-role.is-admin {
    background: #ffeaa7;
    color: #d35400 !important;
    border-color: #fdcb6e;
}

.btn-toggle-group.frueh {
    background: #e0eaff;
    color: #3d5afe !important;
    border-color: #c5cae9;
}

.btn-toggle-upload.allowed {
    background: #e8f5e9;
    color: #2e7d32 !important;
    border-color: #c8e6c9;
}

.action-btns {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* Form Elements */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
}

/* Ensure all interactive elements have sharp edges without breaking layout */
input[type="submit"],
input[type="button"],
button {
    border-radius: 0;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 59, 122, 0.1);
}

/* Tree View / Selection (Unified across all pages) */
.tree-level-0 {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

.tree-level-0>li {
    margin-bottom: 5px;
}

.folder-row,
.tree-toggle {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0;
    width: 100%;
    border: none;
    text-align: left;
    font: inherit;
    color: inherit;
}

.folder-row:hover,
.tree-toggle:hover {
    background: #e9ecef;
}

.folder-row.open .toggle-icon,
.tree-toggle.open .toggle-icon {
    transform: rotate(90deg);
}

/* removed duplicate */

.toggle-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: transform 0.2s ease-in-out;
    flex-shrink: 0;
    color: var(--primary);
}

.folder-name {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.node-content {
    display: none;
    padding-left: 20px;
    margin-top: 2px;
}

.event-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.event-checkbox:hover {
    border-color: var(--primary);
    background: #f8f9ff;
}

.event-checkbox input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.event-details strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.event-details small {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.schnuppertag-badge {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 5px;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card .label {
    color: #666;
    font-size: 0.95em;
}

/* Tables */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.responsive-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #dee2e6;
}

.responsive-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-primary {
    background: #e3ebff;
    color: var(--primary);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 10001;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Utilities */
@media (max-width: 902px) {
    .container {
        box-shadow: none;
    }

    .branding-header {
        padding: 10px 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background: var(--ude-blue);
        flex-direction: column;
        display: none;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .admin-header,
    .admin-header-left {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .admin-header a[href="admin_va_edit.php"] {
        text-align: center;
    }

    .nav-links a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: flex-start;
        padding: 0 2rem;
        height: 60px;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 25px;
        border: 2px solid var(--primary);
        /* Stronger colored card border */
        border-radius: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        padding: 0;
        /* Removing generic padding to control per cell */
        background: #fff;
        overflow: hidden;
        /* For border-radius */
    }

    .responsive-table td {
        position: relative;
        padding: 40px 10px 15px 10px !important;
        /* Top padding makes room for the absolute label */
        border-bottom: 1px solid #f1f1f1;
        display: block;
        text-align: left;
        /* Align inputs to the left under the label */
        min-height: 40px;
    }

    /* Compact User-Table Cards */
    .user-table.responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px !important;
        /* Compact padding */
    }

    .user-table.responsive-table td::before {
        position: static;
        /* Let label flow naturally */
        flex: 0 0 auto;
        /* Prevent label from stretching */
        margin-right: 15px;
        padding: 0;
        width: auto;
    }

    /* Special style for the first 'Benutzer' cell to act as card header */
    .user-table.responsive-table td[data-label="Benutzer"] {
        display: block;
        background: rgba(0, 59, 122, 0.05);
        border-bottom: 2px solid #eee;
    }

    .user-table.responsive-table td[data-label="Benutzer"]::before {
        display: none;
        /* Hide 'Benutzer' label to make it a clean header */
    }

    /* Give actions area more space to wrap *under* the label if extremely narrow */
    .user-table.responsive-table td[data-label="Aktionen"] {
        flex-wrap: wrap;
        gap: 10px;
    }

    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
        color: #666;
        text-align: left;
        width: 90%;
        /* Allow label to take more width */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .node-content {
        margin-left: 0;
        border-left: 4px solid var(--primary);
        background-color: rgba(0, 59, 122, 0.04);
        margin-top: 5px;
        padding-left: 2px;
        /* Reduce base padding for tree levels on mobile */
    }

    .admin-event-list {
        padding-left: 2px;
        /* Drastically reduce deep indentation on mobile */
    }

    ul[class^="tree-level-"] {
        padding-left: 2px;
        /* Override browser defaults for ul */
    }

    .content {
        padding: 5px;
        /* Reduce global padding to maximize screen width */
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #ccc;
    padding: 50px;
    text-align: center;
    margin: 25px 0;
    border-radius: 0;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    background: #e3f2fd;
    border-color: var(--primary);
    transform: scale(1.01);
}

/* Status Messages */
.status-box {
    padding: 30px;
    margin-top: 25px;
    border-radius: 0;
    line-height: 1.6;
}

.status-box.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-box.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-box.processing {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Modal Helper */
.modal-overlay {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* centralized in selection section below */

/* ---------------- Auswertung & Dashboard Stats ---------------- */
.header-stats {
    background: var(--gradient);
    color: white;
    padding: 30px;
    text-align: center;
}

.header-stats h1 {
    margin: 0 0 10px 0;
}

.filter-box {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.filter-box form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border: 1px solid #eee;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-card .number {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-card .label {
    color: #666;
    font-size: 0.9em;
    font-weight: 600;
}

.section {
    background: white;
    padding: 30px;
    border-top: 1px solid #eee;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.btn-filter {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    height: 42px;
    transition: background 0.2s;
}

.btn-filter:hover {
    background: var(--secondary);
}

/* --- Selection Page (auswahl.php) --- */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #eee;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#clearSearch {
    background: #eee;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-label {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-group {
    border: 1px solid #eee;
    margin-bottom: 15px;
}

/* unified in tree section */

.termin-count {
    font-style: italic;
    color: #888;
    margin-left: auto;
    font-size: 0.9em;
}

/* unified in tree section */

.preview-pane {
    position: sticky;
    bottom: 20px;
    background: white;
    padding: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    z-index: 100;
    display: none;
}

.preview-pane.visible {
    display: block;
}

/* --- Selection & Booking Flow Refining --- */
.selection-form {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.next-step-container {
    text-align: right;
    margin-top: 30px;
}

/* Card-based layout for buchen.php */
.booking-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.selected-item {
    background: white;
    border: 1px solid #e0e6ed;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    list-style: none;
    /* Reset for <li> usage */
}

.selected-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.selected-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    min-height: 2.5rem;
    line-height: 1.3;
}

.selected-item small {
    display: block;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-actions {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.date-input-group label {
    display: block;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selected-item .btn-lsf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f3f9;
    color: var(--primary);
    padding: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #d1d8e5;
    margin-top: 15px;
    transition: all 0.2s;
}

.selected-item .btn-lsf:hover {
    background: #e3ebff;
    border-color: var(--primary);
}

/* Success Animation for Buchen.php */
.success-animation {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4edda;
    color: #28a745;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 0.6s 0.3s ease-in-out forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.booking-summary {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #eee;
}

.preview-item {
    border-left: 3px solid var(--primary);
    padding: 10px 15px;
    background: #f8f9ff;
    margin-bottom: 10px;
    list-style: none;
}