/* ==============================================
   Massage Learning Tool - Haupt-Stylesheet
   ============================================== */

:root {
    /* Farbschema - Gradient wie im Login */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --primary-color-rgb: 102, 126, 234;
    --secondary-color-rgb: 118, 75, 162;
    --primary-svg-fill:#fff;

    --font-body: 'Inter', sans-serif;
    --font-special: 'Zen Loop', sans-serif;

    /* Erweiterte Farbpalette */
    --secondary-gradient: linear-gradient(135deg, #60666b 0%, #91a3b8 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --info-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

    /* Schatten */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 25px -5px rgba(102, 126, 234, 0.2);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

[data-bs-theme=light] {
    --bg-body:#e8e8ff;
    --bg-header: linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.81) 0%, rgba(var(--primary-color-rgb), .63) 100%);
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --text-primary: #080b17;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #7c7ccf;
    --border-light: #f1f5f9;
    --card-bg: #d1d1ff;
    --card-header-bg:var(--primary-gradient);
    --main-title-color:#fff;
    --bs-secondary-text-emphasis: rgba(50, 62, 115, 0.9);
    --light-gradient: linear-gradient(135deg, rgba(102, 126, 234, 0.09) 0%, rgba(118, 75, 162, 0.45) 100%);
    --light-gradient-hover: linear-gradient(135deg, rgba(102, 126, 234, 0.18) 0%, rgba(118, 75, 162, 0.54) 100%);
}
[data-bs-theme=dark] {
    --bg-body: #080b17;
    --bg-header: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--secondary-color-rgb), .72) 100%);
    --bg-primary: #1f0f2e;
    --bg-secondary: #291c45;
    --text-primary: #f8fafc;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #667eea;
    --border-light: #36365c;
    --card-bg: #292945;
    --card-header-bg:var(--primary-gradient);
    --main-title-color:#fff;
    --bs-card-color:#fff;
    --bs-secondary-color: rgba(209, 217, 255, 0.9);
    --light-gradient: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    --light-gradient-hover: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.36) 100%);
}

/* ==============================================
   Global Styles
   ============================================== */

/* Styled Scrollbar */
::-webkit-scrollbar, ::-webkit-scrollbar-corner, ::-webkit-scrollbar-track {
    background: linear-gradient(0deg, rgba(var(--primary-color-rgb), 0.54) 0%, rgba(var(--secondary-color-rgb), 0.27) 100%) var(--bg-body);
    height: 10px;
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 0;
}
::selection {
    background:var(--text-primary);
    color:var(--bg-body);
}

/* Styling für Firefox */
@supports not selector(::-webkit-scrollbar) {
    html, body {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-hover) linear-gradient(0deg, rgba(var(--primary-color-rgb), 0.54) 0%, rgba(var(--secondary-color-rgb), 0.27) 100%) var(--bg-body);
    }
}

* {
    box-sizing: border-box;
}
html,
body { min-height: 100vh; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    background-color: var(--bg-body);
    color:var(--text-primary);
    transition:var(--transition-slow);
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-special), sans-serif;
    font-weight: bold;
    font-size:2rem;
}

p:last-child { margin-bottom: 0; }

ul { list-style-type: disc; }
ul li::marker { color:var(--primary-color); }

/* Lang-Switcher */
.flag-svg { height:1.25em; width:auto; }

/* Preloader */
/* PreLoader Styles */
.loader {
    bottom: 0;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1111;
    overflow-x: hidden;
    background: var(--bg-body);
    opacity:.9;
}
.loader-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.cssload-loader {
    position: relative;
    animation: cssload-animation 2s infinite ease-in-out;
    transition: all 1s;
    font-family: var(--font-special), sans-serif;
    font-size: 6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.loader.hide { animation: loader-container 3s forwards linear; }
.loader.hide .cssload-loader { animation: none; }

@keyframes cssload-animation {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.9);
    }
}
@keyframes loader-container {
    0% {
        fill:#000;
        filter:blur(0px);
        transform: scale(1);
        opacity:1;
    }
    50% {
        fill:var(--primary-color);
        opacity:.72;
    }
    100% {
        fill:var(--secondary-color);
        filter:blur(12px);
        transform: scale(2);
        opacity:0;
    }
}


/* ==============================================
   Sidebar Styles
   ============================================== */
:root {
    --navWidth:225px;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: var(--navWidth);
    height: 100vh;
    background: var(--primary-gradient);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 1680px) {
    .sidebar, .main-content {
        --navWidth:280px;
    }
}
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
    .main-content {
        margin-left: var(--navWidth);
    }
}


.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.sidebar .nav-link:hover::before {
    left: 100%;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar .user-avatar img,
.sidebar-mobile  .user-avatar img {
    width: 45px;
}
.profile-image { width:60px; height:60px; }
.bg-secondary.profile-image { background-color: rgba(var(--primary-color-rgb), .18) !important; color:var(--text-primary); }
.profile-image-border { border: 2px solid rgba(var(--primary-color-rgb), .45); }

/* ==============================================
   Main Content Area
   ============================================== */

.main-content {
    min-height: 100vh;
    padding: 2rem;
    transition: margin-left var(--transition-normal);
    position: relative;
}
.main-content:before {
    content:'';
    position:fixed;
    top:0;
    left:-33vw;
    height:50vh;
    width:100vw;
    background-color:var(--primary-color);
    border-radius:100%;
    filter:blur(50px);
    z-index:0;
    transform: rotate(-18deg);
}
.main-content:after {
    content:'';
    position:fixed;
    bottom:0;
    right:0;
    height:80vh;
    width:50vw;
    background-color:var(--secondary-color);
    border-radius:100%;
    filter:blur(162px);
    z-index:-1;
}
[data-bs-theme=light] .main-content:before,
[data-bs-theme=light] .main-content:after { opacity:.36; }
[data-bs-theme=dark] .main-content:before,
[data-bs-theme=dark] .main-content:after { opacity:.27; }

#headerTitle {
    color:var(--main-title-color);
    font-size:1.6rem;
    margin:0;padding:0;
    font-family:var(--font-special), sans-serif;
    font-weight: bold;
}

@media (max-width: 991px) {
    .main-content {
        padding: 0 1rem 1rem 1rem;
        margin-left: 0;
    }
}

.content-header {
    position: sticky;
    background:var(--bg-header);
    backdrop-filter: blur(3px);
    z-index: 1000;
    top: 10px;
    padding: 5px 10px;
    border-radius:var(--radius-xl);
    margin:0 -20px 1em -20px;
}
@media (max-width: 991px) {
    .content-header {
        top: 56px;
        margin:0 -16px .5em -16px;
        border-radius:0;
    }
}

/* ==============================================
   Page Headers
   ============================================== */

.page-header {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.page-header h1 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* ==============================================
   Cards & Stat Cards
   ============================================== */

.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    color:var(--bs-card-color);
    background-color: transparent;
}

.card-hover:hover {
    transform: scale(1.027);
}

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

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #fff;
    background:var(--card-header-bg)
}

.card-body {
    padding: 1.5rem;
}
[data-bs-theme=light] .card-body { background:linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.27) 0%, rgba(var(--primary-color-rgb), .45) 100%); }
[data-bs-theme=dark] .card-body { background:linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.09) 0%, rgba(var(--primary-color-rgb), .27) 100%); }

@media (max-width: 1199px) {
    .card-body { padding: 1rem; }
}
@media (max-width: 991px) {
    .card-body { padding: 0.5rem; }
}


.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

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

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: white;
    background: var(--primary-gradient);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Varianten für Stat Cards */
.stat-card.stat-success .stat-icon { background: var(--success-gradient); }
.stat-card.stat-warning .stat-icon { background: var(--warning-gradient); }
.stat-card.stat-danger .stat-icon { background: var(--danger-gradient); }
.stat-card.stat-info .stat-icon { background: var(--info-gradient); }

/* ==============================================
   Buttons
   ============================================== */

.btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    /* padding: 0.75rem 1.5rem; */
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    text-shadow:0 0 0 rgba(255,255,255,0.63);
}
.btn:hover {
    transform:scale(1.05);
    text-shadow:0 0 9px rgba(255,255,255,0.63);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-primary);
    color: white;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-warning {
    background: var(--warning-gradient);
    color: white;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    height:2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==============================================
   Badges & Status
   ============================================== */

.badge {
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-success { background: var(--success-gradient) !important; }
.bg-warning { background: var(--warning-gradient) !important; }
.bg-danger { background: var(--danger-gradient) !important; }
.bg-info { background: var(--info-gradient) !important; }
.bg-primary { background: var(--primary-gradient) !important; color:#fff; }
.bg-primary-trans { background:linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.09) 0%, rgba(var(--primary-color-rgb), .27) 100%) !important; }

/* ==============================================
   Tables
   ============================================== */

.table {
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

.table thead { background: var(--light-gradient); }
.table thead th {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table thead th .form-check { font-size:1rem; }

.table tbody tr {
    background:linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.09) 0%, rgba(var(--primary-color-rgb), .27) 100%);
}
.table tbody td { background-color: transparent; }

.table tbody td {
    border-color: var(--border-light);
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr:hover,
table.table.dataTable tbody tr:hover {
    background: var(--bg-secondary);
}
@media (max-width: 767px) {
    .table-responsive table.table {
        display: flex;
    }
    .table-responsive table.table thead,
    .table-responsive table.table colgroup {
        display: none;
    }
    .table-responsive table.table tr { display: flex; flex-wrap: wrap; }
}

/* Datatables */
table.table>:not(caption)>*>* { color:var(--text-primary); }
table.table.dataTable>:not(caption)>*>* { background-color:transparent !important; }
.dt-layout-table {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}
table.table.dataTable.table-hover>tbody>tr:hover>* {
    box-shadow: none !important;
}

tr.bg-success { background:rgba(15,183,127,.36) !important; }


/* ==============================================
   Forms
   ============================================== */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    font-size: 1rem;
    background-color:var(--bg-body);
}
[data-bs-theme=light] .form-control { color:#000; }
[data-bs-theme=dark] .form-control { color:#fff; }

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: var(--border-light);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ==============================================
   Alerts
   ============================================== */

.alert {
    border: none;
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, #d1f2eb 0%, #a7f3d0 100%);
    border-left-color: #10b981;
    color: #065f46;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3cd 0%, #fde68a 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #3b82f6;
    color: #1e40af;
}

/* ==============================================
   Mobile Styles
   ============================================== */
@media (min-width: 992px) {
    .sidebar-mobile { display: none; }
}
@media (max-width: 991px) {
    .sidebar-mobile {
        background: var(--primary-gradient);
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        transition: left var(--transition-normal);
        z-index: 1040;
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }

    .sidebar-mobile.show {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1035;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-normal);
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .mobile-header {
        background: var(--primary-gradient);
        color: white;
        padding: .25rem 1rem;
        position: sticky;
        top: 0;
        z-index: 1030;
        box-shadow: var(--shadow-md);
    }
    .mobile-header .user-avatar img { width:auto; height:36px; }

    .mobile-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
    }

    .sidebar-mobile .nav-link {
        color:#fff;
        font-size: 1rem;
        padding: .5rem;
    }
    .sidebar-mobile .nav-link.active {
        background-color:var(--card-bg);
        border-radius:5px;
    }
}

/* ==============================================
   Animations
   ============================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ==============================================
   Utilities
   ============================================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
    var(--primary-gradient) border-box;
}

.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.btn.btn-primary svg { fill:var(--primary-svg-fill); }

video { box-shadow:0 0 5px var(--primary-color); border-radius: var(--radius-md); }

/* Mobile-spezifische Styles für input-groups */
@media (max-width: 1199px) {
    .mobile-responsive-input-group {
        flex-direction: column !important;
        border-top-right-radius: var(--radius-lg);
    }

    .mobile-responsive-input-group .form-control {
        border-radius: var(--radius-lg) !important;
        margin-bottom: 0;
        width: 100% !important;
        flex: none !important;
    }

    .mobile-responsive-input-group .btn-group-mobile {
        display: flex;
        flex-wrap: wrap;
        justify-content: end;
        width: 100%;
        border-radius: var(--radius-lg);
        padding-right:var(--radius-lg);
    }

    .mobile-responsive-input-group .btn-group-mobile .btn {
        flex: 0 0 auto;
        min-width: 2.5rem;
        border-radius: 0;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        height: 2rem;
    }
    .mobile-responsive-input-group .btn-group-mobile .btn:first-child {
        border-bottom-left-radius: var(--radius-lg);
    }
    .mobile-responsive-input-group .btn-group-mobile .btn:last-child {
        border-bottom-right-radius: var(--radius-lg);
    }
}

/* Desktop: normale Bootstrap input-group */
@media (min-width: 1200px) {
    .mobile-responsive-input-group {
        display: flex !important;
        flex-direction: row !important;
    }

    .mobile-responsive-input-group .form-control {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .mobile-responsive-input-group .btn-group-mobile {
        display: flex;
        flex-direction: row;
    }

    .mobile-responsive-input-group .btn-group-mobile .btn {
        border-radius: 0;
    }

    .mobile-responsive-input-group .btn-group-mobile .btn:last-child {
        border-top-right-radius: var(--radius-lg);
        border-bottom-right-radius: var(--radius-lg);
    }
}

/* Massage-Scripts Edit @TODO: Auslagern in eigene CSS-Datei */

#bereiche-container > .card,
#bereiche-container > .card > .card-header:first-child,
#video-summary > .card,
#video-summary > .card > .card-header:first-child { border-radius: 0; }

@media (max-width: 767px) {
    .schritt-card .input-group .btn { padding-left:0.5rem; padding-right:0.5rem; }
    .schritt-card .input-group input { padding:0; }
}

/* Video-Summary */
#video-summary { border-radius: var(--radius-md); overflow: hidden; box-shadow:0 0 5px var(--primary-color); }
#video-summary video { box-shadow: none; border-radius: 0; display: block; }

#massageVideoContainer { position: relative; }
#playbackspeed { position:absolute; top:5px; right:5px; }

#massageVideoContainer .preloader { border-radius:var(--radius-md); }
.preloader {
    background-color: rgba(var(--primary-color-rgb), .9);
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.preloader.hide {
    animation:fadeOut 1s linear forwards;
}

.preloader .preloader-inner {
    width: 8vmax;
    height: 8vmax;
    border-right: 4px solid #ffffff;
    border-radius: 100%;
    -webkit-animation: spinRight 800ms linear infinite;
    animation: spinRight 800ms linear infinite;
}
.preloader .preloader-inner:before, .preloader .preloader-inner:after {
    content: "";
    width: 6vmax;
    height: 6vmax;
    display: block;
    position: absolute;
    top: calc(50% - 3vmax);
    left: calc(50% - 3vmax);
    border-left: 3px solid #ffffff;
    border-radius: 100%;
    -webkit-animation: spinLeft 800ms linear infinite;
    animation: spinLeft 800ms linear infinite;
}
.preloader .preloader-inner:after {
    width: 4vmax;
    height: 4vmax;
    top: calc(50% - 2vmax);
    left: calc(50% - 2vmax);
    border: 0;
    border-right: 2px solid #ffffff;
    -webkit-animation: none;
    animation: none;
}

@-webkit-keyframes fadeOut {
    from {
        opacity:1;
    }
    to {
        opacity:0;
    }
}
@-webkit-keyframes spinLeft {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(720deg);
    }
}

@keyframes spinLeft {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(720deg);
    }
}
@-webkit-keyframes spinRight {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}
@keyframes spinRight {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}


.list-group-item { background: var(--light-gradient); }
.list-group-item.active { background: var(--primary-gradient); border-color:transparent; }
.list-group-item.active .text-muted { color:#eee !important; }

/* Mobile Video Summary Panel */
@media (max-width: 767px) {
    body:not(.app) #massageVideoContainer {
        position: fixed !important;
        bottom: 0 !important;
        right: -100% !important;
        width: 100% !important;
        z-index: 1050;
        transition: right 0.3s ease-in-out;
        background-color:#000;
    }
    body:not(.app) #massageVideoContainer.show {
        right: 0 !important;
    }
    #videoBtns { position:absolute; top:10px; right:10px; z-index:10; }

    #bereiche-navigation {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        max-width: calc(100vw - 81px) !important;
        height: 100vh !important;
        max-height: none !important;
        z-index: 1050;
        background: var(--card-bg);
        border-left: 1px solid var(--border-light);
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        border-radius: 0;
    }

    #massageVideo.show,
    #bereiche-navigation.show {
        right: 0 !important;
    }

    .summary-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .summary-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Desktop - keine Änderungen */
@media (min-width: 768px) {
    #video-summary { position:sticky; top:110px; max-height:calc(100vh - 140px); }
    #video-summary > div { max-height:calc(100vh - 140px); }
}
@media (min-width: 992px) {
    #video-summary { position:sticky; top:62px; max-height:calc(100vh - 97px); }
    #video-summary > div { max-height:calc(100vh - 97px); }
}

/* Summernote */
/* Summernote Editor Styles */
.note-editor.is-invalid .note-editor {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.note-editor .note-toolbar {
    background: var(--light-gradient);
    border-bottom: 1px solid var(--border-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 8px 12px;
}

.note-editor .note-toolbar .note-btn-group .note-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    margin: 0 2px;
}

.note-editor .note-toolbar .note-btn-group .note-btn:hover {
    background: var(--primary-color);
    color: white;
}

.note-editor .note-toolbar .note-btn-group .note-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.note-editor .note-editor {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background-color: var(--bg-body);
}

.note-editor .note-editing-area .note-editable {
    color: var(--text-primary);
    background-color: var(--bg-body);
    font-family: var(--font-body), sans-serif;
    font-size: 1rem;
    font-weight: 400;
}
.note-editor .note-toolbar .btn { font-weight: normal !important; }
.note-editable ul { padding:0; }
.note-editable ul:last-child { margin-bottom:0; }
.note-editable ul ul { padding-left:1.25em; }

/* Show-View */
@media (max-width: 767px) {
    .table-responsive table.table tr { margin-bottom:15px; }
    .table-responsive table.table td { width:100%; }

    .ms-index table.table td.check { width:10%; }
    .ms-index table.table td.check .form-check { margin-bottom:0; }
    .ms-index table.table td.name { width:90%; }
    .ms-index table.table td.bereiche { width:34%; }
    .ms-index table.table td.minuten { width:33%; }
    .ms-index table.table td.active { width:33%; }
    .ms-index table.table td.schulen { width: 100%; }
    .ms-index table.table td.updated { display: none; }
    .ms-index table.table td.buttons { width: 100%; text-align: center; }

    .ms-show table.table td.schritt { width:20%; }
    .ms-show table.table td.timestamp { width:80%; }
    .ms-show table.table td.wdh { width:20%; }
    .ms-show table.table td.griff { width:80%; }
    .ms-show table.table td.info { width:100%; }
}
.ms-show .list-group-item { color:var(--main-title-color); }
.ms-show table.table td { vertical-align:top; }
.ms-show table.table td.wdh .badge { text-transform: lowercase; }
[data-bs-theme=dark] .ms-show table.table td { color:#fff; }

/* HLS */
.video-js {
    width: 100%;
    height: auto;
}

.table-active {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* HLS Player Styles */
.video-js {
    width: 100%;
    height: auto;
}

/* Verhindere Video Download/Save */
video::-webkit-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

/* Pagination */
ul.pagination { margin:1rem; }
.active>.page-link, .page-link.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    outline: none;
}

/* create-script-modal.blade.php */
.massage-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    /* max-height: 400px;
    overflow-y: auto; */
}

.massage-group-header {
    grid-column: 1 / -1;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 0.25rem;
    margin-top: 1rem;
}

.massage-selection-btn {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--bg-body);
}

.massage-selection-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.massage-selection-btn.active {
    border-color: var(--primary-color);
    background: rgba(var(--bs-primary-rgb), 0.1);
    transform:scale(1.05);
}

.massage-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.massage-selection-content {
    position: relative;
    height: 100%;
    overflow: hidden;
    display:flex;
    justify-content: center;
}

.massage-selection-content .desc {
    position: relative;
    z-index:2;
    padding:1rem;
    display: flex;
    flex-direction: column;
}

.massage-selection-content h6 {
    margin-bottom: auto;
    padding-bottom:.5rem;
    font-size: 1.75rem;
}

.massage-selection-content small {
    font-size: 0.75rem;
}

.massage-selection-content > img {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:.27;
}

.massage-selection-btn.active .massage-selection-content > img { opacity:.54; }

.btn-flag { background-color:transparent; opacity:.72; transition: var(--transition-normal);     padding: 0;
    margin: 0;
    border:none;
}
.btn-flag.active {
    opacity: 1;
    transform: scale(1.2);
}
.btn-flag img { box-shadow: 0 0 0px #000; transition: var(--transition-normal); border:2px solid transparent; }
.btn-flag.active img {
    box-shadow: 0 0 10px #000;
    border:2px solid var(--primary-color);
}

.modal-title { line-height: 1; }
.modal-footer {  }

/* Header fixed to the top of the modal */
.modal-header--sticky {
    position: sticky;
    top: 0;
    z-index: 1055; /* [2] */
    background-color:var(--bg-body);
}

/* Footer fixed to the bottom of the modal */
.modal-footer--sticky {
    position: sticky;
    bottom: 0;
    z-index: 1055; /* [2] */
    background-color:var(--bg-body);
}

.modal-content { background-color: var(--bg-body); }
.modal-body {
    background:linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.09) 0%, rgba(var(--primary-color-rgb), .27) 100%);
}

button .spinner { display:none; }
button.loading .spinner { display:inline; }
