/* Farbvariablen */
:root {
    --color-anwesend: #a8e6cf;
    --color-abwesend: #FFBBBB;
    --color-parteilich: #FFEEBB;
    --color-leer: #FFF;
}
.anwesend { color: #006040; font-weight: bold; }
.abwesend { color: #aa0000; font-weight: bold; }
.parteilich { color: #e2aa00; font-weight: bold; }
.gesamt { color: #000000; font-weight: bold; }
.row-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 3px;
    justify-content: center;
}
.seat {
    flex: 1 0 calc(11.1% - 2px);
    margin: 3px;
    padding: 15px;
    border: 1px solid #ddd;
    position: relative;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    min-width: 140px;
}
.q-seat {
    flex: 1 0 calc(11.1% - 2px);
    margin: 3px;
    padding: 10px;
    border: 1px solid #ddd;
    position: relative;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}
.q-seat:hover { transform: scale(1.05); box-shadow: 0 4px 8px rgba(0,0,0,0.15);}
/* .seat:hover { transform: scale(1.05); box-shadow: 0 4px 8px rgba(0,0,0,0.15);} */
/* Animationen für bessere Feedback */
.seat:hover {transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.15);}
.seat:active {transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.1);}

.status-leer { background-color: var(--color-leer); cursor: default !important; border: none !important; }
.status-abwesend { background-color: var(--color-abwesend); color: #6c0d0d; border: 1px solid #aa0000; }
.status-parteilich { background-color: var(--color-parteilich); color: #d7a000; border: 1px solid #e2aa00; }
.status-anwesend { background-color: var(--color-anwesend); color: #004d2b; border: 1px solid #006040; }
.q-status-anwesend { background-color: var(--color-anwesend); color: #004d2b; border: 1px solid #006040; }
.q-status-abwesend { background-color: var(--color-abwesend); color: #6c0d0d; border: 1px solid #aa0000; }
.q-status-parteilich { background-color: var(--color-parteilich); color: #d7a000; border: 1px solid #e2aa00; }
.q-status-leer { background-color: #fafafa; }
/* Tooltip-Style */
.tooltip-inner {
    max-width: 300px;
    white-space: pre-wrap;
    text-align: left;
}
/* ========= CSS-VERBESSERUNGEN ========= */
/* Table View Styles */
#tableContainer {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#seatingTable_wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #6c757d;
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5em;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.25rem 0.5rem;
    margin-left: 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #0d6efd;
    color: white !important;
    border: 1px solid #0d6efd;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e9ecef;
    border: 1px solid #dee2e6;
}

.table-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 90px;
    text-align: center;
}

/* Make table responsive */
.table-responsive {
    margin: 1rem 0;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

/* Button styles */
.button-group {
    display: inline-block;
    margin-left: 1rem;
}

.dt-buttons {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.dt-buttons .btn {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Style for the export dropdown */
.dt-button-collection {
    position: absolute;
    z-index: 2001;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 10rem;
}

.dt-button-collection button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.25rem 1rem;
    border: none;
    background: none;
    color: #212529;
    white-space: nowrap;
}

.dt-button-collection button:hover {
    background-color: #dfdfdf;
    color: #0d6efd!important;
}

/* Hide the original button text that might show up */
.dt-button-collection::before {
    display: none;
}

/* Search box */
.dataTables_filter label {
    display: flex;
    align-items: center;
}

.dataTables_filter input {
    margin-left: 0.5rem !important;
    display: inline-block;
    width: auto !important;
}

/* Make sure the table is visible */
#seatingTable {
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Ensure DataTables elements are visible */
.dataTables_wrapper {
    position: relative;
    clear: both;
    width: 100%;
}

.dataTables_scroll {
    clear: both;
    width: 100%;
}

/* Make sure the table header is visible */
#SitzplanContainer .card-header {
    position: relative;
    z-index: 1;
}

/* Style for the toggle switch */
#viewToggle {
    margin-left: 10px;
}

/* Make sure the table is visible when toggled */
body.show-table #tableContainer {
    display: block !important;
}

/* Sitzplan Toggle Switch */
#viewToggle {
    cursor: pointer;
}

/* Verbesserte Sitzplan-Gestaltung */
#SitzplanContainer {
    min-width: 1330px;
}
#SessionVerwaltung {
    min-width: 1000px;
}

.seat .name {
    text-align: center;
    line-height: 1.5;
    font-weight: 500;
    min-height: 25px;
    word-break: keep-all;
}
.seat.dragging {
    opacity: 0.5;
}
.seat.drag-over {
    border: 2px dashed #3498db;
}

/* Verbesserte Status-Farben 
.status-anwesend { background-color: #a8e6cf; }
.status-abwesend { background-color: #ffb7b2; }
.status-parteilich { background-color: #fdfd97; }
.status-leer { background-color: #f4f4f4; }*/

.note-icon { 
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 14px;
    color: #ff9900;
    cursor: help;
}

/* Wichtige Notizen-Hervorhebung */
.note-icon.text-danger {
    animation: pulse 2s infinite;
}
.note-icon:hover {
    transform: scale(1.2);
    transition: transform 0.2s;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Bessere Button-Styles */
.btn {
    border-radius: 4px;
    transition: all 0.3s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Druckvorschau-Styles */
.print-preview {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    /*padding: 25px;*/
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* Formulareinstellungen */
.form-control {
    border-radius: 4px;
    padding: 8px;
    font-size: 0.9rem;
}

/* Responsive Verbesserungen */
@media (max-width: 768px) {
    .row-container {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .seat {
        min-width: 100px;
    }
}

/* Print-Styles verbessern */
@media print {
    /* .container, .row, .col {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }*/
   .container {
        width: 100%;
        max-width: 100%;
    }

    .print-preview {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

    }
    
    /*.card, .form-group, .btn, .modal {
        display: none !important;
    }*/
    .seat {
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        min-width: 140px !important;
    }
    #seatingPlan {
        display: block !important;
    }
    .status-anwesend { background-color: var(--color-anwesend) !important; color: #004d2b; border: 1px solid #006040; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .status-abwesend { background-color: var(--color-abwesend) !important; color: #6c0d0d; border: 1px solid #aa0000; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .status-parteilich { background-color: var(--color-parteilich) !important; color: #e2aa00; border: 1px solid #e2aa00; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .status-leer { background-color: var(--color-leer) !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    
    /* Verstecke alle nicht-druckbaren Elemente */
    .no-print, .modal, .form-group, .btn, .modal-content, .modal-backdrop, .navbar, .footer {
        display: none !important;
    }
}
