:root {
    --colorMain: #212529;
    --brShadow: -6px 6px 15px rgba(0,0,0,0.5);
    --tlShadow: 6px -6px 15px rgba(255,255,255,0.1);
    --cub3soft-gray: #565561;
    --cub3soft-gray-light: #6b6a7a;
    --cub3soft-gray-dark: #3d3d47;
    --cub3soft-cyan: #2dafc8;
    --cub3soft-cyan-glow: rgba(45, 175, 200, 0.4);
  }

h1 {
    font-family: inherit;
}

.bg-cub3soft-gray{
    background-color: #565561;
}

.bg-cub3sys-gray{
    background-color: #212529;
}

.bg-leicht-grau{
    background-color: #dedddd;
}


.text-cub3soft-blue{
    color: #2dafc8;
}

/* ========================================
   MODERN LOGIN PAGE STYLES
   ======================================== */

/* Animierter Hintergrund mit Gradient */
.login-background {
    min-height: 100vh;
    background:
        linear-gradient(135deg, var(--cub3soft-gray-dark) 0%, var(--cub3soft-gray) 50%, var(--cub3soft-gray-light) 100%);
    position: relative;
    overflow: hidden;
}

/* Geometrisches Muster im Hintergrund */
.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(45, 175, 200, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 175, 200, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 30%);
    animation: backgroundPulse 8s ease-in-out infinite;
}

/* Floating Shapes Animation */
.login-background::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(45, 175, 200, 0.1), transparent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -50px;
    right: -50px;
    animation: floatShape 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-30px, 30px) rotate(120deg);
    }
    66% {
        transform: translate(20px, -20px) rotate(240deg);
    }
}

/* Glasmorphism Login Box */
.login-card {
    background: rgba(33, 37, 41, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 175, 200, 0.2);
    border-radius: 20px;
    padding: 3rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
    animation: cardSlideUp 0.6s ease-out;
    max-width: 420px;
    margin: 0 auto;
}

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

/* Subtle Hover Effect */
.login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(45, 175, 200, 0.15), transparent 50%, rgba(45, 175, 200, 0.1));
    border-radius: 21px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.login-card:hover::before {
    opacity: 1;
}

/* Logo Animation */
.login-logo {
    animation: logoFadeIn 0.8s ease-out 0.2s both;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-logo img {
    filter: drop-shadow(0 4px 20px rgba(45, 175, 200, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.login-logo img:hover {
    filter: drop-shadow(0 6px 30px rgba(45, 175, 200, 0.5));
    transform: scale(1.02);
}

/* Login Title */
.login-title {
    color: #ffffff !important;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cub3soft-cyan), transparent);
    border-radius: 2px;
}

/* Modern Input Fields */
.login-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-form-group label {
    color: var(--cub3soft-cyan);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.login-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cub3soft-cyan);
    box-shadow:
        0 0 0 3px var(--cub3soft-cyan-glow),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Input Icon Decoration */
.login-form-group.has-icon {
    position: relative;
}

.login-form-group.has-icon .login-input {
    padding-left: 3rem;
}

.login-form-group.has-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.login-form-group.has-icon:focus-within .input-icon {
    color: var(--cub3soft-cyan);
}

/* Modern Button */
.login-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--cub3soft-cyan) 0%, #1a8fa5 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.login-btn::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 0.5s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(45, 175, 200, 0.4),
        0 0 0 1px rgba(45, 175, 200, 0.5);
}

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

.login-btn:active {
    transform: translateY(0);
}

/* Alert Styling */
.login-alert {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    color: #ff6b7a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: alertShake 0.5s ease;
}

@keyframes alertShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Logged In Info */
.login-info {
    background: rgba(45, 175, 200, 0.1);
    border: 1px solid rgba(45, 175, 200, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.login-info a {
    color: var(--cub3soft-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-info a:hover {
    color: #5dd3e8;
    text-decoration: underline;
}

/* Decorative Elements */
.login-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(45, 175, 200, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.login-decoration-1 {
    bottom: -75px;
    left: -75px;
    animation: decorationRotate 20s linear infinite;
}

.login-decoration-2 {
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    animation: decorationRotate 15s linear infinite reverse;
}

@keyframes decorationRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Login Links */
.login-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-link:hover {
    color: var(--cub3soft-cyan);
}

.login-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Success Alert */
.login-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    color: #6ddb8a;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   LOGIN ANIMATIONS - MEGA GEIL!
   ======================================== */

/* Particles Container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--cub3soft-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 20s infinite ease-in-out;
    box-shadow: 0 0 10px var(--cub3soft-cyan), 0 0 20px var(--cub3soft-cyan);
    transition: transform 0.3s ease-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; animation-duration: 20s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 4s; animation-duration: 28s; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 1s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: 3s; animation-duration: 26s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: 5s; animation-duration: 24s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: 2.5s; animation-duration: 21s; }
.particle:nth-child(8) { left: 80%; top: 20%; animation-delay: 1.5s; animation-duration: 27s; }
.particle:nth-child(9) { left: 90%; top: 80%; animation-delay: 3.5s; animation-duration: 23s; }
.particle:nth-child(10) { left: 15%; top: 50%; animation-delay: 4.5s; animation-duration: 19s; }
.particle:nth-child(11) { left: 25%; top: 10%; animation-delay: 0.5s; animation-duration: 29s; }
.particle:nth-child(12) { left: 75%; top: 90%; animation-delay: 2.8s; animation-duration: 18s; }
.particle:nth-child(13) { left: 85%; top: 40%; animation-delay: 1.8s; animation-duration: 30s; }
.particle:nth-child(14) { left: 45%; top: 85%; animation-delay: 3.8s; animation-duration: 17s; }
.particle:nth-child(15) { left: 55%; top: 15%; animation-delay: 4.8s; animation-duration: 31s; }

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1.5);
    }
}

/* Glowing Lines - subtil */
.glow-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 175, 200, 0.8), transparent);
    opacity: 0;
    animation: glowLineMove 10s infinite ease-in-out;
}

.glow-line-1 {
    width: 150px;
    top: 25%;
    left: -150px;
    animation-delay: 0s;
}

.glow-line-2 {
    width: 200px;
    top: 55%;
    left: -200px;
    animation-delay: 4s;
}

.glow-line-3 {
    width: 120px;
    top: 80%;
    left: -120px;
    animation-delay: 8s;
}

@keyframes glowLineMove {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 0.5;
    }
    85% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(calc(100vw + 200px));
        opacity: 0;
    }
}

/* Logo Animation */
.animate-logo {
    animation: logoAppear 2s ease-out forwards;
    opacity: 0;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 175, 200, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: logoGlowOnce 1.5s ease-out forwards;
    z-index: -1;
    opacity: 0;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes logoGlowOnce {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Card Animation */
.animate-card {
    animation: cardSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(60px);
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Border Animation - einmal von links nach rechts */
.card-border-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.card-border-animation::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 50%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg,
        transparent,
        rgba(45, 175, 200, 0.8),
        transparent);
    animation: borderSweep 2s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes borderSweep {
    0% {
        left: -50%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

/* Item Animations */
.animate-item {
    opacity: 0;
    transform: translateY(20px);
    animation: itemFadeIn 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes itemFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake Animation for Errors */
.animate-shake {
    animation: itemFadeIn 0.6s ease-out forwards, shake 0.5s ease-in-out 0.6s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Title Text Animation */
.title-text {
    display: inline-block;
    background: linear-gradient(90deg, #ffffff, var(--cub3soft-cyan), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 2s ease-in-out 1 forwards;
    animation-delay: 0.5s;
}

@keyframes titleShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Input Glow Effect */
.login-form-group {
    position: relative;
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cub3soft-cyan), transparent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.login-input:focus ~ .input-glow {
    width: 100%;
}

/* Button Glow */
.login-btn {
    position: relative;
    overflow: hidden;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
}

.login-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
}

/* Pulsing effect on button - only 3 times */
.login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(45, 175, 200, 0.5);
    animation: buttonPulse 2s ease-out 3;
    animation-delay: 1s;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 175, 200, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(45, 175, 200, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 175, 200, 0);
    }
}

/* Focus ring animation */
.login-input:focus {
    animation: inputFocus 0.3s ease forwards;
}

@keyframes inputFocus {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 175, 200, 0);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(45, 175, 200, 0.2);
    }
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */

/* Main Layout Background */
.dashboard-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
}

/* Top Navigation */
.dashboard-topnav {
    background: linear-gradient(135deg, var(--cub3soft-gray-dark) 0%, var(--cub3soft-gray) 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(45, 175, 200, 0.2);
}

.dashboard-topnav .navbar-brand img {
    filter: drop-shadow(0 2px 8px rgba(45, 175, 200, 0.3));
    transition: filter 0.3s ease;
}

.dashboard-topnav .navbar-brand:hover img {
    filter: drop-shadow(0 4px 12px rgba(45, 175, 200, 0.5));
}

.dashboard-topnav .btn-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

.dashboard-topnav .btn-link:hover {
    color: var(--cub3soft-cyan) !important;
}

.dashboard-topnav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.dashboard-topnav .nav-link:hover {
    color: var(--cub3soft-cyan) !important;
}

/* Sidebar */
.dashboard-sidebar {
    background: linear-gradient(180deg, var(--cub3soft-gray-dark) 0%, var(--cub3soft-gray) 100%) !important;
    border-right: 1px solid rgba(45, 175, 200, 0.1);
}

.dashboard-sidebar .sb-sidenav-menu-heading {
    color: var(--cub3soft-cyan) !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dashboard-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
    margin: 2px 10px;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

.dashboard-sidebar .nav-link:hover {
    background: rgba(45, 175, 200, 0.15) !important;
    color: #ffffff !important;
}

.dashboard-sidebar .nav-link.active {
    background: rgba(45, 175, 200, 0.2) !important;
    color: var(--cub3soft-cyan) !important;
    border-left: 3px solid var(--cub3soft-cyan);
}

.dashboard-sidebar .sb-nav-link-icon {
    color: var(--cub3soft-cyan);
    width: 24px;
}

.dashboard-sidebar hr {
    border-color: rgba(45, 175, 200, 0.2);
    opacity: 1;
}

/* User Info in Sidebar */
.sidebar-user-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem;
}

.sidebar-user-info h5 {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
}

.sidebar-user-info .fa-circle-user {
    color: var(--cub3soft-cyan);
    margin-right: 0.5rem;
}

/* Main Content Area */
.dashboard-main {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 56px);
}

/* Page Header */
.dashboard-header {
    color: var(--cub3soft-gray-dark);
    font-weight: 300;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cub3soft-cyan), transparent);
    border-radius: 2px;
}

/* Dashboard Cards / Stat Boxes */
.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cub3soft-cyan), var(--cub3soft-gray));
}

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

.stat-card.stat-cyan::before {
    background: linear-gradient(90deg, var(--cub3soft-cyan), #5dd3e8);
}

.stat-card.stat-success::before {
    background: linear-gradient(90deg, #28a745, #5dd879);
}

.stat-card.stat-warning::before {
    background: linear-gradient(90deg, #ffc107, #ffda6a);
}

.stat-card.stat-danger::before {
    background: linear-gradient(90deg, #dc3545, #f1707a);
}

.stat-card.stat-info::before {
    background: linear-gradient(90deg, #17a2b8, #5dd3e8);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.stat-card .stat-icon.icon-cyan {
    background: linear-gradient(135deg, var(--cub3soft-cyan), #1a8fa5);
}

.stat-card .stat-icon.icon-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.stat-card .stat-icon.icon-warning {
    background: linear-gradient(135deg, #ffc107, #d39e00);
}

.stat-card .stat-icon.icon-danger {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.stat-card .stat-icon.icon-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--cub3soft-gray-dark);
    line-height: 1;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.stat-card .stat-link {
    display: inline-flex;
    align-items: center;
    color: var(--cub3soft-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.stat-card .stat-link:hover {
    color: #1a8fa5;
}

.stat-card .stat-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.stat-card .stat-link:hover i {
    transform: translateX(4px);
}

/* Content Card */
.content-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.content-card .card-header {
    background: linear-gradient(135deg, var(--cub3soft-gray-dark), var(--cub3soft-gray));
    color: #ffffff;
    padding: 1rem 1.5rem;
    border: none;
    font-weight: 500;
}

.content-card .card-header i {
    color: var(--cub3soft-cyan);
    margin-right: 0.5rem;
}

.content-card .card-body {
    padding: 1.5rem;
}

/* Dashboard Footer */
.dashboard-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.dashboard-footer a {
    color: var(--cub3soft-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dashboard-footer a:hover {
    color: #1a8fa5;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: var(--cub3soft-gray-dark);
    border: 1px solid rgba(45, 175, 200, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(45, 175, 200, 0.2);
    color: #ffffff;
}

.dropdown-divider {
    border-color: rgba(45, 175, 200, 0.2);
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--cub3soft-gray-dark) 0%, var(--cub3soft-gray) 100%);
    border-radius: 20px;
    padding: 2rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 175, 200, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-card h2 {
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.welcome-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.welcome-card .welcome-icon {
    font-size: 4rem;
    color: var(--cub3soft-cyan);
    opacity: 0.3;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   ALERTS & FLASH MESSAGES
   ======================================== */

.alert-modern {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.alert-success-modern {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.alert-danger-modern {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.alert-warning-modern {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #d39e00;
}

.alert-info-modern {
    background: rgba(45, 175, 200, 0.1);
    border: 1px solid rgba(45, 175, 200, 0.2);
    color: var(--cub3soft-cyan);
}

/* ========================================
   PAGE TOOLBAR
   ======================================== */

.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.toolbar-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: var(--cub3soft-cyan);
    box-shadow: 0 0 0 3px var(--cub3soft-cyan-glow);
}

.toolbar-actions {
    display: flex;
    gap: 0.75rem;
}

/* ========================================
   MODERN BUTTONS
   ======================================== */

.btn-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--cub3soft-cyan) 0%, #1a8fa5 100%);
    color: #ffffff;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 175, 200, 0.4);
    color: #ffffff;
}

.btn-secondary-modern {
    background: var(--cub3soft-gray);
    color: #ffffff;
}

.btn-secondary-modern:hover {
    background: var(--cub3soft-gray-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 85, 97, 0.3);
    color: #ffffff;
}

.btn-outline-modern {
    background: transparent;
    border: 1px solid var(--cub3soft-cyan);
    color: var(--cub3soft-cyan);
}

.btn-outline-modern:hover {
    background: var(--cub3soft-cyan);
    color: #ffffff;
}

/* ========================================
   MODERN TABLE
   ======================================== */

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead {
    background: linear-gradient(135deg, var(--cub3soft-gray-dark) 0%, var(--cub3soft-gray) 100%);
}

.table-modern thead th {
    padding: 1rem 1.25rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.table-modern tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: rgba(45, 175, 200, 0.05);
}

.table-modern tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: var(--cub3soft-gray-dark);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-available {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-full {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-online {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-offline {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-completed {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.status-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #e6a700;
}

/* ID Badge */
.id-badge {
    background: rgba(45, 175, 200, 0.1);
    color: var(--cub3soft-cyan);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Date Cell */
.date-cell {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

/* Kurs Name */
.kurs-name {
    color: var(--cub3soft-gray-dark);
    font-weight: 600;
}

/* Teilnehmer Cell */
.teilnehmer-cell {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.teilnehmer-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cub3soft-cyan);
}

.teilnehmer-max {
    font-size: 0.85rem;
    color: #adb5bd;
}

/* Dozent Name */
.dozent-name {
    color: #6c757d;
}

/* Fortschritt Cell */
.fortschritt-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-mini {
    width: 60px;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-mini-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-mini-bar.progress-success {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.progress-mini-bar.progress-warning {
    background: linear-gradient(90deg, #ffc107, #ffda6a);
}

.progress-mini-bar.progress-info {
    background: linear-gradient(90deg, #17a2b8, #3dcbdb);
}

.progress-mini-bar.progress-danger {
    background: linear-gradient(90deg, #dc3545, #f06070);
}

.fortschritt-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    min-width: 35px;
}

/* Fortschritt Inline (für Detail-Tabelle) */
.fortschritt-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fortschritt-bar-inline {
    flex: 1;
    max-width: 200px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.fortschritt-bar-fill-inline {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.fortschritt-bar-fill-inline.bg-success {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.fortschritt-bar-fill-inline.bg-warning {
    background: linear-gradient(90deg, #ffc107, #ffda6a);
}

.fortschritt-bar-fill-inline.bg-info {
    background: linear-gradient(90deg, #17a2b8, #3dd5f3);
}

.fortschritt-bar-fill-inline.bg-secondary {
    background: linear-gradient(90deg, #6c757d, #868e96);
}

.fortschritt-prozent {
    font-weight: 600;
    color: var(--cub3soft-gray-dark);
    font-size: 0.95rem;
}

.fortschritt-details-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.fortschritt-details-inline .detail-item {
    font-size: 0.8rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.fortschritt-details-inline .detail-item.done {
    color: #28a745;
}

.fortschritt-details-inline .detail-item i {
    font-size: 0.7rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn-view {
    background: rgba(45, 175, 200, 0.1);
    color: var(--cub3soft-cyan);
}

.action-btn-view:hover {
    background: var(--cub3soft-cyan);
    color: #ffffff;
}

.action-btn-edit {
    background: rgba(255, 193, 7, 0.1);
    color: #d39e00;
}

.action-btn-edit:hover {
    background: #ffc107;
    color: #ffffff;
}

.action-btn-delete {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.action-btn-delete:hover {
    background: #dc3545;
    color: #ffffff;
}

.action-btn-warning {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: none;
    cursor: pointer;
}

.action-btn-warning:hover {
    background: #ff9800;
    color: #ffffff;
}

.action-btn-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.action-btn-secondary:hover {
    background: #6c757d;
    color: #ffffff;
}

.action-btn-primary {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.action-btn-primary:hover {
    background: #3498db;
    color: #ffffff;
}

.action-btn-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.action-btn-success:hover {
    background: #28a745;
    color: #ffffff;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem !important;
    text-align: center;
}

.empty-state-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: var(--cub3soft-gray-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cub3soft-gray-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cub3soft-cyan);
    display: inline-block;
}

/* Modern Form Controls */
.form-modern {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-modern:focus {
    outline: none;
    border-color: var(--cub3soft-cyan);
    box-shadow: 0 0 0 3px var(--cub3soft-cyan-glow);
}

.form-label-modern {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cub3soft-gray);
    margin-bottom: 0.5rem;
    display: block;
}

/* Day Cards for Kurs */
.day-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    border-left: 4px solid var(--cub3soft-cyan);
}

.day-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.day-badge {
    background: linear-gradient(135deg, var(--cub3soft-cyan), #1a8fa5);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Checkbox Modern */
.checkbox-modern {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(45, 175, 200, 0.05);
    border: 1px solid rgba(45, 175, 200, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-modern:hover {
    background: rgba(45, 175, 200, 0.1);
}

.checkbox-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    accent-color: var(--cub3soft-cyan);
}

/* Select Modern */
.select-modern {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    background: #ffffff;
    cursor: pointer;
}

.select-modern:focus {
    outline: none;
    border-color: var(--cub3soft-cyan);
    box-shadow: 0 0 0 3px var(--cub3soft-cyan-glow);
}

/* ========================================
   DETAIL VIEW STYLES
   ======================================== */

.detail-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.detail-header {
    background: linear-gradient(135deg, var(--cub3soft-gray-dark), var(--cub3soft-gray));
    color: #ffffff;
    padding: 1.5rem;
}

.detail-header h2 {
    margin: 0;
    font-weight: 400;
    font-size: 1.5rem;
}

.detail-header .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.detail-body {
    padding: 0;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.detail-table tr:last-child {
    border-bottom: none;
}

.detail-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 500;
    color: #6c757d;
    width: 200px;
    background: #fafafa;
    font-size: 0.9rem;
}

.detail-table td {
    padding: 1rem 1.5rem;
    color: var(--cub3soft-gray-dark);
}

.detail-table .highlight {
    font-weight: 600;
    color: var(--cub3soft-cyan);
}

/* Detail Actions */
.detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Info Boxes */
.info-box {
    background: rgba(45, 175, 200, 0.05);
    border: 1px solid rgba(45, 175, 200, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cub3soft-cyan), #1a8fa5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.info-box-content h4 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--cub3soft-gray-dark);
}

.info-box-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Delete Form */
.delete-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.btn-danger-modern {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    color: #ffffff;
    border: none;
}

.btn-danger-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: #ffffff;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--cub3soft-cyan);
}

.back-link i {
    margin-right: 0.5rem;
}

/* ========================================
   MODERN FORM STYLES
   ======================================== */

/* Form Card Container */
.form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-card-header {
    background: linear-gradient(135deg, var(--cub3soft-gray-dark), var(--cub3soft-gray));
    color: #ffffff;
    padding: 1.5rem 2rem;
}

.form-card-header h2 {
    margin: 0;
    font-weight: 400;
    font-size: 1.4rem;
}

.form-card-header .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-card-body {
    padding: 2rem;
}

/* Modern Form Inputs */
.form-modern {
    max-width: 800px;
}

.form-modern .form-control,
.form-modern .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--cub3soft-cyan);
    box-shadow: 0 0 0 3px rgba(45, 175, 200, 0.15);
    background-color: #ffffff;
}

.form-modern .form-floating > .form-control,
.form-modern .form-floating > .form-select {
    height: calc(3.5rem + 4px);
    padding: 1rem 1rem;
}

.form-modern .form-floating > label {
    padding: 1rem 1rem;
    color: #6c757d;
}

.form-modern .form-floating > .form-control:focus ~ label,
.form-modern .form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-modern .form-floating > .form-select ~ label {
    color: var(--cub3soft-cyan);
}

/* Modern Checkbox / Toggle */
.form-check-modern {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(45, 175, 200, 0.05);
    border: 1px solid rgba(45, 175, 200, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.form-check-modern .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    border: 2px solid #dee2e6;
}

.form-check-modern .form-check-input:checked {
    background-color: var(--cub3soft-cyan);
    border-color: var(--cub3soft-cyan);
}

.form-check-modern .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(45, 175, 200, 0.25);
}

.form-check-modern .form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: var(--cub3soft-gray-dark);
}

/* Day Card for Subkurse */
.day-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.day-card:hover {
    border-color: rgba(45, 175, 200, 0.3);
    box-shadow: 0 4px 12px rgba(45, 175, 200, 0.1);
}

.day-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.day-card-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--cub3soft-gray-dark);
    display: flex;
    align-items: center;
}

.day-card-header h5 i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--cub3soft-cyan), #1a8fa5);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.85rem;
}

.day-card-body {
    display: grid;
    gap: 1rem;
}

.day-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .day-card-row {
        grid-template-columns: 1fr;
    }
}

/* Datetime Input Group */
.datetime-group {
    background: #fafafa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
}

.datetime-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.datetime-group input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: var(--cub3soft-gray-dark);
}

.datetime-group input:focus {
    outline: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* Form Section Title */
.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cub3soft-gray-dark);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
}

.form-section-title i {
    margin-right: 0.5rem;
    color: var(--cub3soft-cyan);
}

/* Input Group with Icon */
.input-icon-group {
    position: relative;
}

.input-icon-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.input-icon-group .form-control {
    padding-left: 2.75rem;
}

/* ========================================
   ANWESENHEIT TABLE STYLES
   ======================================== */

.anwesenheit-table {
    min-width: 100%;
}

.anwesenheit-table thead th {
    background: #f8f9fa;
    color: var(--cub3soft-gray-dark);
}

.anwesenheit-table th.anw-header {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: #f8f9fa;
    color: var(--cub3soft-gray-dark);
}

.anwesenheit-table th.anw-today {
    background: linear-gradient(135deg, rgba(45, 175, 200, 0.15), rgba(45, 175, 200, 0.25));
    color: var(--cub3soft-gray-dark);
}

.anwesenheit-table td.anw-cell {
    text-align: center;
    padding: 0.5rem;
}

.anw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.anw-badge.anw-confirmed {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.anw-badge.anw-confirmed:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.anw-badge.anw-pending {
    background: linear-gradient(135deg, #ffc107, #e6a700);
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.anw-badge.anw-pending:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.anw-badge.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sticky first column for better UX on mobile */
.anwesenheit-table .sticky-col {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 1;
}

.anwesenheit-table thead .sticky-col {
    background: #f8f9fa;
    color: var(--cub3soft-gray-dark);
    z-index: 2;
}

/* Delete Section Styling */
.delete-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

/* ========================================
   USER AVATAR IN TOPBAR
   ======================================== */

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cub3soft-cyan), #1a8fa5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(45, 175, 200, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(45, 175, 200, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-link.dropdown-toggle .user-avatar + span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Animation für den Avatar */
@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(45, 175, 200, 0.4);
    }
    50% {
        box-shadow: 0 2px 20px rgba(45, 175, 200, 0.6);
    }
}

.user-avatar {
    animation: avatarPulse 3s ease-in-out infinite;
}

/* ========================================
   GLOBAL ICON SPACING FIX
   ======================================== */

/* FontAwesome Icons bekommen automatisch Abstand zum nachfolgenden Text */
.fas:not(:last-child),
.far:not(:last-child),
.fab:not(:last-child),
.fa:not(:last-child),
.fa-solid:not(:last-child),
.fa-regular:not(:last-child) {
    margin-right: 0.4rem;
}

/* Ausnahmen: Buttons mit nur Icon, Action-Buttons, etc. */
.btn-group .fas,
.btn-group .far,
.btn-group-sm .fas,
.btn-group-sm .far,
.action-btn .fas,
.action-btn .far,
.anw-badge .fas,
.anw-badge .far,
.stat-icon .fas,
.stat-icon .far,
.info-box-icon .fas,
.info-box-icon .far {
    margin-right: 0;
}

/* Icons in Badges */
.badge .fas,
.badge .far {
    margin-right: 0.25rem;
}

/* Icons am Ende (z.B. Pfeile) */
.fa-chevron-right,
.fa-chevron-down,
.fa-chevron-up,
.fa-arrow-right,
.fa-external-link-alt {
    margin-right: 0 !important;
    margin-left: 0.4rem;
}

/* ========================================
   STATUS TOGGLE BUTTON
   ======================================== */
.btn-status-toggle {
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-status-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-status-toggle.status-online:hover {
    background-color: #dc3545 !important;
}

.btn-status-toggle.status-offline:hover {
    background-color: #28a745 !important;
}

/* Zusatzfelder Grid für Kursvorlagen */
.zusatzfelder-grid > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1400px) {
    .zusatzfelder-grid > div {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .zusatzfelder-grid > div {
        grid-template-columns: 1fr;
    }
}

.zusatzfelder-grid .form-check {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.zusatzfelder-grid .form-check:hover {
    border-color: var(--cub3soft-cyan);
    background: #f0fbfc;
}

.zusatzfelder-grid .form-check-input:checked + .form-check-label {
    color: var(--cub3soft-cyan);
    font-weight: 500;
}

.zusatzfelder-grid .form-check:has(.form-check-input:checked) {
    background: rgba(45, 175, 200, 0.1);
    border-color: var(--cub3soft-cyan);
}

/* ========================================
   GLOBAL SEARCH STYLES
   ======================================== */

.global-search-container {
    position: relative;
    width: 320px;
}

.global-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.global-search-icon {
    position: absolute;
    left: 12px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
}

.global-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.global-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.global-search-input:focus {
    outline: none;
    border-color: var(--cub3soft-cyan);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(45, 175, 200, 0.2);
}


.global-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
}

.global-search-dropdown.active {
    display: block;
    animation: searchDropdownFadeIn 0.15s ease;
}

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

.global-search-loading,
.global-search-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    display: none;
}

.global-search-loading.active,
.global-search-empty.active {
    display: block;
}

.global-search-empty i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: #ccc;
}

.global-search-results {
    padding: 8px 0;
}

.global-search-category {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.global-search-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s ease;
    cursor: pointer;
}

.global-search-item:hover,
.global-search-item.selected {
    background: rgba(45, 175, 200, 0.1);
}

.global-search-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}

.global-search-item-icon.kurs {
    background: rgba(45, 175, 200, 0.15);
    color: var(--cub3soft-cyan);
}

.global-search-item-icon.teilnehmer {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.global-search-item-icon.rechnung {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.global-search-item-content {
    flex: 1;
    min-width: 0;
}

.global-search-item-title {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-item-subtitle {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   FEEDBACK BUG BUTTON
   ======================================== */

.feedback-bug-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cub3soft-gray) 0%, var(--cub3soft-gray-dark) 100%);
    border: 2px solid var(--cub3soft-cyan);
    color: var(--cub3soft-cyan);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(45, 175, 200, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-bug-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(45, 175, 200, 0.5);
    background: var(--cub3soft-cyan);
    color: #fff;
}

.feedback-bug-btn:active {
    transform: scale(0.95);
}

/* Feedback Modal Styles */
#feedbackModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#feedbackModal .modal-header {
    background: linear-gradient(135deg, var(--cub3soft-gray) 0%, var(--cub3soft-gray-dark) 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid var(--cub3soft-cyan);
}

#feedbackModal .modal-header .btn-close {
    filter: invert(1);
}

#feedbackModal .modal-title .text-primary {
    color: var(--cub3soft-cyan) !important;
}

#feedbackModal .form-select:focus,
#feedbackModal .form-control:focus {
    border-color: var(--cub3soft-cyan);
    box-shadow: 0 0 0 0.2rem rgba(45, 175, 200, 0.25);
}

#feedbackModal .btn-primary {
    background: var(--cub3soft-cyan);
    border-color: var(--cub3soft-cyan);
}

#feedbackModal .btn-primary:hover {
    background: #249aaf;
    border-color: #249aaf;
}

/* Feedback Toast */
.feedback-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feedback-toast.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7b34 100%);
    color: #fff;
}

.feedback-toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: #fff;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

