      :root {
        /* NEW: Darker Blue Color Scheme */
        --primary-color: #3a6ea5; /* Changed from #4682b4 */
        --primary-hover: #2f5a88; /* Changed from #357093 */
        --erlenhof-blue: #3a6ea5;
        --erlenhof-dark-blue: #234263;
        --erlenhof-light-blue: #5f97d3;
        --erlenhof-gradient: linear-gradient(
          135deg,
          var(--primary-color) 0%,
          var(--erlenhof-light-blue) 100%
        );

        --danger-color: #dc3545;
        --danger-hover: #c82333;
        --border-color: #dee2e6;
        --background-color: #f0f5f8;
        --widget-background: #ffffff;
        --widget-background-rgb: 255, 255, 255;
        --text-color: #212529;
        --text-rgb: 33, 37, 41;
        --text-muted: #6c757d;
        --shadow: 0 4px 6px rgba(58, 110, 165, 0.1);
        --shadow-hover: 0 8px 16px rgba(58, 110, 165, 0.15);

        /* Typography Variables */
        --font-heading: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        --font-accent: "Inter", "Nunito Sans", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        
        --line-height-tight: 1.2;
        --line-height-normal: 1.4;
        --line-height-relaxed: 1.6;
        
        --letter-spacing-tight: -0.2px;
        --letter-spacing-normal: 0;
        --letter-spacing-wide: 0.2px;
        --letter-spacing-wider: 0.5px;
        --border-radius: 12px;
        --green: #28a745;
        --red: #dc3545;
        --button-bg: #e9ecef;
        --button-hover: #d3d7dc;
        --button-active: #c6cad0;
        --welcome-color: #6c757d;
        --orange: #fd7e14;
        --purple: #6f42c1;
        /* NEW: Bolder Sun Icon Color */
        --sun-color: #f2a01d;
        /* NEW: Gold for Logo */
        --gold-color: #ffd700;
      }

      /* Dark mode variables */
      body.dark-mode {
        --background-color: #1a1d23;
        --widget-background: #2a2d35;
        --widget-background-rgb: 42, 45, 53;
        --text-color: #e4e6eb;
        --text-rgb: 228, 230, 235;
        --text-muted: #b0b3b8;
        --border-color: #3a3d45;
        --button-bg: #3a3d45;
        --button-hover: #4a4d55;
        --welcome-color: #b0b3b8;
      }

      /* Dark mode font weight adjustments */
      body.dark-mode .header h1 {
        font-weight: 700; /* Lighter than light mode (800) */
      }
      
      body.dark-mode .client-card h3 {
        font-weight: 600; /* Lighter than light mode (700) */
      }
      
      body.dark-mode .nav-button {
        font-weight: 400; /* Lighter than light mode (500) */
      }
      
      body.dark-mode .client-card .client-age {
        font-weight: 600; /* Lighter than light mode (700) */
      }

      * {
        box-sizing: border-box;
      }
      body {
        background-color: var(--background-color);
        font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        font-weight: 400;
        line-height: 1.55;
        color: var(--text-color);
        margin: 0;
        padding: 0;
        transition: background-color 0.3s ease, color 0.3s ease;
      }

      /* Auth Styles - Keep original gradient */
      .auth-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      }
      .auth-card {
        background: white;
        padding: 40px;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 400px;
        text-align: center;
      }

      /* Logo styles for auth - Enhanced with animation */
      .auth-logo {
        width: 120px;
        height: 120px;
        margin: 0 auto 20px;
        background: rgba(58, 110, 165, 0.1);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(58, 110, 165, 0.3);
        padding: 8px;
      }
      .auth-logo img {
        width: 100px;
        height: 100px;
        transition: all 0.3s ease;
        animation: rotateVertical 16s linear infinite;
      }

      @keyframes rotateVertical {
        0% {
          transform: rotateY(0deg);
        }
        100% {
          transform: rotateY(360deg);
        }
      }

      .auth-logo:hover img {
        animation-play-state: paused;
        transform: scale(1.05);
      }

      .auth-card h2 {
        font-family: var(--font-heading);
        text-align: center;
        margin-bottom: 30px;
        color: #1a3a52;
        font-size: 2rem;
        font-weight: 700;
        line-height: var(--line-height-tight);
        letter-spacing: var(--letter-spacing-tight);
      }
      .auth-form .form-group {
        margin-bottom: 24px;
      }

      .auth-form label {
        font-family: var(--font-body);
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 0.95rem;
        color: #2c3e50;
        line-height: var(--line-height-normal);
        letter-spacing: var(--letter-spacing-wide);
      }
      .auth-form input {
        font-family: var(--font-body);
        width: 100%;
        padding: 14px 18px;
        border: 2px solid #c1c9d2;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 500;
        line-height: var(--line-height-normal);
        background: #ffffff;
        color: #2c3e50;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      }

      .auth-form input::placeholder {
        color: #8b95a1;
        font-weight: 400;
      }

      .auth-form input:hover {
        border-color: #a0aab5;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
      }

      .auth-form input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(58, 110, 165, 0.15),
          0 4px 12px rgba(58, 110, 165, 0.1);
        transform: translateY(-1px);
        background: #fafbfc;
      }

      .auth-form input:invalid {
        border-color: #e74c3c;
      }

      .auth-form input:valid {
        border-color: #27ae60;
      }
      .auth-button {
        width: 100%;
        padding: 14px 24px;
        background: linear-gradient(
          135deg,
          var(--primary-color) 0%,
          var(--primary-hover) 100%
        );
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 1.05rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(58, 110, 165, 0.25);
        letter-spacing: 0.5px;
        margin-top: 8px;
      }
      .auth-button:hover {
        background: linear-gradient(
          135deg,
          var(--primary-hover) 0%,
          var(--primary-color) 100%
        );
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(58, 110, 165, 0.35);
      }
      .auth-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }
      .auth-switch {
        text-align: center;
        margin-top: 20px;
        color: var(--text-muted);
      }
      .auth-switch a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
      }
      .auth-switch a:hover {
        text-decoration: underline;
      }
      .error-message {
        background-color: #fee;
        color: var(--danger-color);
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 15px;
        font-size: 0.9rem;
        display: none;
      }
      .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
      }

      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      /* Skeleton Loading States */
      .skeleton {
        background: linear-gradient(
          90deg,
          rgba(var(--border-color), 0.2) 25%,
          rgba(var(--border-color), 0.4) 50%,
          rgba(var(--border-color), 0.2) 75%
        );
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        border-radius: 8px;
      }

      @keyframes skeleton-loading {
        0% {
          background-position: 200% 0;
        }
        100% {
          background-position: -200% 0;
        }
      }

      .skeleton-card {
        height: 200px;
        margin-bottom: 20px;
      }

      .skeleton-text {
        height: 16px;
        margin-bottom: 8px;
      }

      .skeleton-text.short {
        width: 60%;
      }

      .skeleton-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin: 0 auto 15px;
      }

      /* Main App Styles */
      .app-container {
        max-width: 1500px;
        margin: 0 auto;
        padding: 25px;
      }

      /* Header with logo and welcome message */
      .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
        gap: 20px;
      }
      .header-left {
        display: flex;
        align-items: center;
        gap: 20px;
      }
      .app-logo {
        width: 100px;
        height: 100px;
        background: rgba(58, 110, 165, 0.1);
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 15px rgba(58, 110, 165, 0.25);
        flex-shrink: 0;
        padding: 8px;
      }
      .app-logo img {
        width: 80px;
        height: 80px;
        transition: all 0.3s ease;
        animation: rotateVertical 20s linear infinite;
      }
      .app-logo svg {
        width: 36px;
        height: 36px;
        fill: var(--primary-color);
      }
      .header-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
      }
      .header h1 {
        font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        font-size: clamp(22px, 2.2vw, 28px);
        font-weight: 800;
        letter-spacing: -0.2px;
        margin: 0;
        color: var(--erlenhof-blue);
        line-height: 1.2;
      }
      .welcome-message {
        font-size: 0.9rem;
        color: var(--welcome-color);
        font-weight: 500;
        margin: 0;
        opacity: 0.8;
      }

      .theme-toggle {
        background: linear-gradient(
          145deg,
          var(--button-bg) 0%,
          rgba(var(--widget-background-rgb), 0.8) 100%
        );
        border: 2px solid var(--border-color);
        border-radius: 50px;
        padding: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 75px;
        height: 36px;
        position: relative;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.1);
      }

      .theme-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15),
          inset 0 1px 0 rgba(255, 255, 255, 0.2);
      }

      .theme-toggle-slider {
        position: absolute;
        width: 26px;
        height: 26px;
        background: linear-gradient(145deg, #ffffff, #f8fafc);
        border-radius: 50%;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.3);
      }
      body.dark-mode .theme-toggle {
        background: #4a4d55;
        border-color: #5a5d65;
      }
      body.dark-mode .theme-toggle-slider {
        transform: translateX(41px);
      }
      .theme-toggle svg {
        width: 18px;
        height: 18px;
        z-index: 1;
      }
      /* NEW: Changed sun icon color */
      .sun-icon {
        color: var(--sun-color);
        margin-left: 5px;
      }
      .moon-icon {
        color: #7c8fb5;
        margin-right: 5px;
      }

      .header .header-actions {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
      }
      .back-button,
      .primary-button {
        background: var(--button-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s ease;
        color: var(--text-color);
      }
      .primary-button {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
      }
      .primary-button:hover {
        background-color: var(--primary-hover);
        border-color: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(58, 110, 165, 0.25);
      }
      .back-button:hover {
        background-color: var(--button-hover);
        transform: translateY(-1px);
      }

      /* Side Navigation */
      .main-content {
        display: flex;
        gap: 25px;
      }
      .side-nav {
        width: 250px;
        background: var(--widget-background);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 20px;
        box-shadow: var(--shadow);
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 50px);
      }
      .side-nav h3 {
        font-size: 1.1rem;
        margin: 0 0 15px 0;
        color: var(--erlenhof-blue);
      }
      body.dark-mode .side-nav h3 {
        color: var(--text-color);
      }
      /* Dark mode: revert nav-button border to original transparent style */
      body.dark-mode .nav-button {
        border: 1px solid rgba(255, 255, 255, 0.2);
      }
      .nav-button {
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 2px solid var(--erlenhof-blue);
        border-radius: 16px;
        padding: 16px 20px;
        cursor: pointer;
        font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.4;
        display: flex;
        align-items: center;
        gap: 14px;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        color: var(--text-color);
        margin-bottom: 10px;
        text-align: left;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.4),
          inset 0 -1px 0 rgba(0, 0, 0, 0.1);
      }

      .nav-button::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background: linear-gradient(
          135deg,
          rgba(58, 110, 165, 0.1) 0%,
          rgba(58, 110, 165, 0.05) 50%,
          rgba(255, 255, 255, 0.1) 100%
        );
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        border-radius: 16px;
      }

      .nav-button::after {
        content: "";
        position: absolute;
        left: -2px;
        top: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(
          45deg,
          rgba(58, 110, 165, 0.3),
          rgba(255, 255, 255, 0.2),
          rgba(58, 110, 165, 0.3)
        );
        border-radius: 18px;
        opacity: 0;
        z-index: -1;
        transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
      }

      .nav-button:hover {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        transform: translateX(12px) translateY(-2px);
        box-shadow: 0 16px 48px rgba(58, 110, 165, 0.2),
          0 8px 24px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6),
          inset 0 -1px 0 rgba(0, 0, 0, 0.1);
        border-color: rgba(58, 110, 165, 0.3);
      }

      .nav-button:hover::before {
        opacity: 1;
      }

      .nav-button:hover::after {
        opacity: 1;
      }

      .nav-button.active {
        background: var(--primary-color) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        color: white !important;
        border: 2px solid var(--primary-color) !important;
        transform: translateX(12px) translateY(-2px);
        box-shadow: 0 8px 25px rgba(58, 110, 165, 0.3),
          0 4px 12px rgba(58, 110, 165, 0.2) !important;
        opacity: 1 !important;
      }

      .nav-button.active::before {
        opacity: 1;
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.2) 0%,
          rgba(255, 255, 255, 0.1) 50%,
          rgba(255, 255, 255, 0.2) 100%
        );
      }

      .nav-button.active::after {
        opacity: 1;
        background: linear-gradient(
          45deg,
          rgba(255, 255, 255, 0.3),
          rgba(58, 110, 165, 0.2),
          rgba(255, 255, 255, 0.3)
        );
      }
      .nav-button svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
      }

      .nav-button:hover svg {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 4px 8px rgba(58, 110, 165, 0.3));
      }

      .nav-button.active svg {
        transform: scale(1.15);
        filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.4));
      }

      #schulplan-nav {
        transform: translateX(-20px);
        transition: transform 0.3s ease;
      }

      #schulplan-nav:hover {
        transform: translateX(-10px);
      }

      /* Floating animation for active button */
      @keyframes float-glow {
        0%,
        100% {
          transform: translateX(12px) translateY(-2px);
          box-shadow: 0 20px 60px rgba(58, 110, 165, 0.4),
            0 12px 32px rgba(58, 110, 165, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        }
        50% {
          transform: translateX(12px) translateY(-4px);
          box-shadow: 0 24px 72px rgba(58, 110, 165, 0.5),
            0 16px 40px rgba(58, 110, 165, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        }
      }

      /* Shimmer effect */
      .nav-button:hover::before {
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(255, 255, 255, 0.3) 50%,
          rgba(255, 255, 255, 0) 100%
        );
        animation: shimmer 1.5s ease-in-out infinite;
      }

      @keyframes shimmer {
        0% {
          transform: translateX(-100%);
        }
        100% {
          transform: translateX(100%);
        }
      }

      .content-area {
        flex: 1;
      }

      .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
        max-width: 1400px;
        margin: 0 auto;
      }
      @media (min-width: 1200px) {
        .dashboard-grid {
          grid-template-columns: repeat(4, 1fr);
        }
      }

      .client-card {
        background: linear-gradient(
          145deg,
          var(--widget-background) 0%,
          rgba(var(--widget-background-rgb), 0.95) 100%
        );
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 30px 30px 40px 30px;
        box-shadow: 0 8px 32px rgba(58, 110, 165, 0.08),
          0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        backdrop-filter: blur(10px);
        overflow: hidden;
      }

      .client-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.1),
          transparent
        );
        transition: left 0.6s ease;
      }

      .client-card:hover::before {
        left: 100%;
      }

      .client-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 60px rgba(58, 110, 165, 0.15),
          0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        z-index: 10;
        border-color: rgba(58, 110, 165, 0.3);
      }

      /* START: MODIFIED HOVER INFO STYLES */
      .client-hover-info {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        min-width: 280px; /* Set a minimum width */
        max-width: 450px; /* Set a maximum width */

        background: rgba(var(--widget-background-rgb), 0.98);
        backdrop-filter: blur(10px);

        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 25px;

        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        border-radius: var(--border-radius);
        pointer-events: none;
        box-shadow: 0 10px 35px rgba(var(--text-rgb), 0.15); /* Add a shadow to the popup */
      }

      .client-card:hover .client-hover-info {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
      }

      .client-card:hover .profile-picture-container,
      .client-card:hover h3,
      .client-card:hover .client-age,
      .client-card:hover .info-bar,
      .client-card:hover .last-update-on-card {
        filter: blur(5px);
        opacity: 0.1;
        transition: all 0.3s ease-in-out;
      }

      /* Safari-specific performance optimizations */
      @supports (-webkit-appearance: none) and (not (backdrop-filter: blur())) {
        .client-card {
          backdrop-filter: none !important;
        }
        .client-hover-info {
          backdrop-filter: none !important;
        }
      }

      /* Safari-specific fixes for photo consistency */
      @media screen and (-webkit-min-device-pixel-ratio: 0) {
        .client-card {
          transition: transform 0.2s ease !important;
        }
        .client-card:hover {
          transform: translateY(-4px) !important;
        }
        .client-card:hover .profile-picture-container,
        .client-card:hover h3,
        .client-card:hover .client-age,
        .client-card:hover .info-bar,
        .client-card:hover .last-update-on-card {
          filter: none !important;
        }

        /* Safari photo transform fixes */
        #avatar-preview {
          -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
        }

        .client-card .profile-picture {
          -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
        }

        /* Force hardware acceleration for smoother transforms */
        .avatar-edit-container,
        .profile-picture-wrapper {
          -webkit-transform: translateZ(0);
          transform: translateZ(0);
          will-change: transform;
        }
      }

      .hover-info-table {
        width: 100%;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px 12px; /* reduced row-gap and column-gap */
        align-items: center;
        animation: fadeInScale 0.5s ease;
      }

      .hover-info-label {
        font-weight: 700;
        color: var(--erlenhof-dark-blue);
        text-align: left;
        font-size: 0.8rem;
      }
      body.dark-mode .hover-info-label {
        color: var(--erlenhof-light-blue);
      }

      .hover-info-value {
        color: var(--text-color);
        font-weight: 500;
        text-align: left;
        background: rgba(var(--text-rgb), 0.05);
        padding: 3px 6px;
        border-radius: 6px;
        font-size: 0.8rem;
      }

      .no-info-message {
        padding: 30px 20px;
        text-align: center;
        font-style: italic;
        color: var(--text-muted);
        font-weight: 500;
        animation: fadeInScale 0.6s ease;
      }

      @keyframes fadeInScale {
        from {
          opacity: 0;
          transform: scale(0.95);
        }
        to {
          opacity: 1;
          transform: scale(1);
        }
      }
      /* END: MODIFIED HOVER INFO STYLES */

      .profile-picture-container {
        position: relative;
        width: 180px;
        height: 180px;
        margin-bottom: 20px;
      }

      .client-card .profile-picture-wrapper {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #e5e7eb;
        background-color: #ffffff;
        position: relative;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .client-card .profile-picture-wrapper::before {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        padding: 4px;
        background: conic-gradient(
          from 0deg,
          var(--primary-color),
          var(--erlenhof-light-blue),
          var(--primary-color)
        );
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: xor;
        opacity: 0;
        transition: opacity 0.4s ease;
      }

      .client-card:hover .profile-picture-wrapper::before {
        opacity: 1;
        animation: rotate-border 2s linear infinite;
      }

      @keyframes rotate-border {
        to {
          transform: rotate(360deg);
        }
      }
      .client-card .profile-picture {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transform-origin: center center;
        transition: transform 0.1s ease;
        position: absolute;
        top: 0;
        left: 0;
        min-width: 100%;
        min-height: 100%;
        /* Safari-specific fixes */
        -webkit-transform-origin: center center;
        -webkit-transition: -webkit-transform 0.1s ease;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
      }
      .client-card .status-dot {
        position: absolute;
        bottom: 5px;
        right: 5px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 4px solid var(--widget-background);
        z-index: 2;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      }

      .status-dot.anwesend {
        background: radial-gradient(circle at 30% 30%, #4ade80, var(--green));
        animation: pulse-green 2s ease-in-out infinite;
      }

      .status-dot.abwesend {
        background: radial-gradient(circle at 30% 30%, #f87171, var(--red));
        animation: pulse-red 2s ease-in-out infinite;
      }

      @keyframes pulse-green {
        0%,
        100% {
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
            0 0 0 0 rgba(34, 197, 94, 0.4);
        }
        50% {
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
            0 0 0 8px rgba(34, 197, 94, 0);
        }
      }

      @keyframes pulse-red {
        0%,
        100% {
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
            0 0 0 0 rgba(220, 53, 69, 0.4);
        }
        50% {
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
            0 0 0 8px rgba(220, 53, 69, 0);
        }
      }

      .client-card h3 {
        font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        margin: 0 0 8px 0;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.02em;
        color: var(--text-color);
      }
      .client-card .client-age {
        display: inline-flex;
        align-items: center;
        background-color: rgba(232, 240, 248, 0.6);
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 3px 8px;
        font-family: "Inter", "Nunito Sans", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.1px;
        color: var(--erlenhof-dark-blue);
        text-shadow: none;
        box-shadow: none;
        position: relative;
        overflow: hidden;
        min-width: auto;
        justify-content: center;
        margin-bottom: 10px;
        opacity: 0.8;
      }
      /* Dark mode styling for client age */
      body.dark-mode .client-card .client-age {
        background-color: #3a3d45;
        color: var(--text-color);
        border: 2px solid #888888;
      }
      .client-card .info-bar {
        width: 100%;
        padding: 10px;
        background-color: #e8f0f8;
        border-radius: 8px;
        font-size: 0.85rem;
        color: var(--erlenhof-dark-blue);
        font-weight: 500;
      }
      .client-card .last-update-on-card {
        width: 100%;
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 8px;
        font-style: italic;
      }

      .client-card .card-footer {
        position: absolute;
        bottom: 8px;
        left: 8px;
        right: 8px;
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.7rem;
        color: var(--text-muted);
        opacity: 0.7;
        font-weight: 400;
      }

      .client-card .card-footer .clock-icon {
        width: 12px;
        height: 12px;
        opacity: 0.6;
      }

      .add-client-card {
        border: 2px dashed var(--primary-color) !important;
        background: rgba(var(--primary-color-rgb), 0.05) !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10 !important;
      }

      .add-client-card:hover {
        border-color: var(--primary-color) !important;
        background: rgba(var(--primary-color-rgb), 0.1) !important;
        transform: translateY(-8px) scale(1.02) !important;
      }
      body.dark-mode .client-card .info-bar {
        background-color: #3a3d45;
        color: var(--text-color);
      }

      .detail-view-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 20px;
      }
      .detail-column {
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: opacity 0.3s;
      }
      .detail-column.disabled {
        opacity: 0.4;
        pointer-events: none;
      }
      .widget {
        background: linear-gradient(
          145deg,
          rgba(var(--widget-background-rgb), 0.95) 0%,
          rgba(var(--widget-background-rgb), 0.9) 100%
        );
        border: 1px solid rgba(var(--border-color), 0.3);
        border-radius: 20px;
        padding: 28px;
        box-shadow: 0 8px 32px rgba(58, 110, 165, 0.08),
          0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        animation: widget-slide-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
        backdrop-filter: blur(20px);
        position: relative;
        overflow: hidden;
      }

      .widget::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(var(--primary-color), 0.3),
          transparent
        );
      }

      @keyframes widget-slide-up {
        from {
          opacity: 0;
          transform: translateY(40px) scale(0.95);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }
      .widget h3 {
        font-size: 1.3rem;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 12px;
        margin-top: 0;
        margin-bottom: 20px;
        color: var(--erlenhof-blue);
        transition: color 0.3s ease, border-color 0.3s ease;
      }
      body.dark-mode .widget h3 {
        color: var(--text-color);
      }

      /* Profile Button Widget Styles */
      .profile-button-widget {
        background: linear-gradient(
          145deg,
          rgba(var(--widget-background-rgb), 0.95) 0%,
          rgba(var(--widget-background-rgb), 0.9) 100%
        );
        border: 1px solid rgba(var(--border-color), 0.3);
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 8px 32px rgba(58, 110, 165, 0.08),
          0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        animation: widget-slide-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
        backdrop-filter: blur(20px);
        position: relative;
        overflow: hidden;
        margin-bottom: 20px;
      }

      .profile-button {
        width: 100%;
        padding: 20px;
        background: linear-gradient(
          135deg,
          var(--primary-color) 0%,
          rgba(var(--primary-color), 0.8) 100%
        );
        color: white;
        border: none;
        border-radius: 15px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        margin-bottom: 15px;
        box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3);
      }

      .profile-button:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(var(--primary-color), 0.4);
        background: linear-gradient(
          135deg,
          rgba(var(--primary-color), 1.1) 0%,
          var(--primary-color) 100%
        );
      }

      .profile-button:active {
        transform: translateY(0) scale(0.98);
        transition: all 0.1s ease;
      }

      .profile-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transition: width 0.4s ease, height 0.4s ease;
        transform: translate(-50%, -50%);
      }

      .profile-button:active::before {
        width: 300px;
        height: 300px;
      }

      .profile-button-summary {
        padding: 15px;
        background: rgba(var(--primary-color), 0.1);
        border-radius: 10px;
        margin-bottom: 15px;
        border-left: 4px solid var(--primary-color);
        color: var(--text-color);
        font-size: 0.95rem;
        line-height: 1.4;
        transition: all 0.3s ease;
        opacity: 1;
        max-height: 200px;
        overflow: hidden;
      }

      .profile-button-summary.hidden {
        opacity: 0;
        max-height: 0;
        padding: 0 15px;
        margin-bottom: 0;
      }

      .profile-button-content {
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        padding: 0;
      }

      .profile-button-content.expanded {
        max-height: 1000px;
        opacity: 1;
        padding: 20px 0;
      }

      /* Button variants for different sections */
      .profile-button.profil-btn {
        background: linear-gradient(135deg, #3a6ea5 0%, #2d5d87 100%);
      }
      
      .profile-button.anwesenheit-btn {
        background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
      }
      
      .profile-button.uabo-btn {
        background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
        color: #333;
      }
      
      .profile-button.standort-btn {
        background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
      }
      
      .profile-button.austritt-btn {
        background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
      }
      
      .profile-button.antrage-btn {
        background: linear-gradient(135deg, #6f42c1 0%, #59339d 100%);
      }
      
      .profile-button.termine-btn {
        background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
      }

      /* Hover effects for variants */
      .profile-button.profil-btn:hover { box-shadow: 0 8px 25px rgba(58, 110, 165, 0.4); }
      .profile-button.anwesenheit-btn:hover { box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4); }
      .profile-button.uabo-btn:hover { box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4); }
      .profile-button.standort-btn:hover { box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4); }
      .profile-button.austritt-btn:hover { box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4); }
      .profile-button.antrage-btn:hover { box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4); }
      .profile-button.termine-btn:hover { box-shadow: 0 8px 25px rgba(253, 126, 20, 0.4); }

      /* Icons in buttons */
      .profile-button i {
        margin-right: 10px;
        font-size: 1.2rem;
      }

      /* Always visible photo section */
      .profile-photo-section {
        margin-bottom: 20px;
        text-align: center;
        padding: 15px;
        background: rgba(var(--primary-color), 0.05);
        border-radius: 15px;
        border: 2px solid rgba(var(--primary-color), 0.1);
      }

      .profile-photo-section .avatar-edit-container img {
        border-radius: 50%;
        width: 120px;
        height: 120px;
        object-fit: cover;
        border: 4px solid var(--primary-color);
        box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3);
      }

      .profile-photo-section .form-group {
        margin-top: 15px;
        margin-bottom: 0;
      }

      /* Fix overlapping issues */
      .school-plan-widget {
        position: relative;
        z-index: 1;
        margin-bottom: 30px;
        overflow: hidden;
      }

      .profile-button-widget {
        position: relative;
        z-index: 2;
        margin-bottom: 20px;
      }

      /* Ensure proper spacing in detail columns */
      .detail-column {
        position: relative;
        z-index: 1;
      }

      .detail-column:nth-child(2) {
        z-index: 1; /* Reset z-index to prevent dropdown interference */
      }

      .detail-column:nth-child(3) {
        z-index: 1; /* Reset z-index to prevent dropdown interference */
      }

      /* Fix dropdown click interference from detail-column overlays */
      .detail-column {
        pointer-events: none; /* Allow clicks to pass through */
      }
      
      .detail-column * {
        pointer-events: auto; /* Re-enable clicks for actual content */
      }
      
      /* Ensure delete buttons work properly */
      .eintrag-delete-btn,
      .termin-delete-btn {
        pointer-events: auto !important;
      }
      
      /* Ensure dropdowns are above everything */
      select {
        position: relative;
        z-index: 10;
        pointer-events: auto;
      }

      .form-group {
        margin-bottom: 18px;
      }
      label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: var(--text-color);
      }
      input[type="text"],
      input[type="date"],
      input[type="month"],
      input[type="tel"],
      select,
      textarea {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        font-size: 1rem;
        font-family: inherit;
        background: var(--widget-background);
        color: var(--text-color);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        position: relative;
      }

      /* Enhanced visibility for light mode */
      body:not(.dark-mode) input[type="text"],
      body:not(.dark-mode) input[type="date"],
      body:not(.dark-mode) input[type="month"],
      body:not(.dark-mode) input[type="tel"],
      body:not(.dark-mode) select,
      body:not(.dark-mode) textarea {
        background: #ffffff;
        border-color: #d1d5db;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1),
          0 1px 2px rgba(0, 0, 0, 0.05);
      }

      /* Enhanced visibility for dark mode */
      body.dark-mode input[type="text"],
      body.dark-mode input[type="date"],
      body.dark-mode input[type="month"],
      body.dark-mode input[type="tel"],
      body.dark-mode select,
      body.dark-mode textarea {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3),
          0 1px 2px rgba(0, 0, 0, 0.1);
      }

      input[type="text"]:focus,
      input[type="date"]:focus,
      input[type="month"]:focus,
      input[type="tel"]:focus,
      select:focus,
      textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.2),
          0 4px 12px rgba(58, 110, 165, 0.15),
          inset 0 1px 3px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
      }

      /* Enhanced focus for light mode */
      body:not(.dark-mode) input[type="text"]:focus,
      body:not(.dark-mode) input[type="date"]:focus,
      body:not(.dark-mode) input[type="month"]:focus,
      body:not(.dark-mode) input[type="tel"]:focus,
      body:not(.dark-mode) select:focus,
      body:not(.dark-mode) textarea:focus {
        background: #ffffff;
        border-color: var(--primary-color);
      }

      /* Enhanced focus for dark mode */
      body.dark-mode input[type="text"]:focus,
      body.dark-mode input[type="date"]:focus,
      body.dark-mode input[type="month"]:focus,
      body.dark-mode input[type="tel"]:focus,
      body.dark-mode select:focus,
      body.dark-mode textarea:focus {
        background: #4b5563;
        border-color: var(--erlenhof-light-blue);
        color: #ffffff;
      }

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

      .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: var(--text-color);
        transition: color 0.3s ease;
      }

      .form-group:focus-within label {
        color: var(--primary-color);
      }

      /* Placeholder styling for better visibility */
      input::placeholder,
      textarea::placeholder {
        color: #9ca3af;
        opacity: 1;
        font-style: italic;
      }

      body.dark-mode input::placeholder,
      body.dark-mode textarea::placeholder {
        color: #6b7280;
      }

      /* Hover effects for better interactivity */
      input[type="text"]:hover,
      input[type="date"]:hover,
      input[type="month"]:hover,
      input[type="tel"]:hover,
      select:hover,
      textarea:hover {
        border-color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(58, 110, 165, 0.1);
      }

      /* Enhanced form group styling for better visual separation */
      .form-group {
        background: rgba(var(--widget-background-rgb), 0.5);
        padding: 12px;
        border-radius: 8px;
        border: 1px solid rgba(var(--border-color), 0.2);
        transition: all 0.3s ease;
      }

      .form-group:hover {
        background: rgba(var(--widget-background-rgb), 0.8);
        border-color: rgba(var(--primary-color), 0.3);
      }

      .form-group:focus-within {
        background: var(--widget-background);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.1);
      }

      /* Dark mode form group enhancements */
      body.dark-mode .form-group {
        background: rgba(42, 45, 53, 0.3);
        border-color: rgba(75, 85, 99, 0.5);
      }

      body.dark-mode .form-group:hover {
        background: rgba(42, 45, 53, 0.6);
        border-color: rgba(95, 151, 211, 0.4);
      }

      body.dark-mode .form-group:focus-within {
        background: #2a2d35;
        border-color: var(--erlenhof-light-blue);
      }
      .date-input-wrapper {
        position: relative;
      }
      .date-input-helper {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-top: 4px;
      }
      input[type="file"] {
        font-size: 0.9rem;
        padding: 8px 0;
        color: var(--text-color);
      }

      input:focus,
      select:focus,
      textarea:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.1);
      }

      /* NEW: Dark mode date input visibility */
      body.dark-mode input[type="date"] {
        color-scheme: dark;
        background-color: #4a4d55;
      }

      /* European date/time formatting CSS removed to fix login issues */

      /* School Program Table Styles */
      .school-schedule {
        margin: 20px 0;
        overflow-x: auto;
        width: 100%;
      }

      /* Make school plan widget wider */
      .widget.school-plan-widget {
        grid-column: span 2;
        min-width: 900px;
        max-width: none;
      }

      .schedule-table-horizontal {
        width: 100%;
        min-width: 900px;
        border-collapse: collapse;
        margin: 15px 0;
        background: var(--widget-background);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        table-layout: fixed;
      }

      .schedule-table-horizontal th,
      .schedule-table-horizontal td {
        padding: 12px 10px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        font-size: 0.85rem;
        min-width: 160px;
      }

      .schedule-table-horizontal th {
        background: var(--primary-color);
        color: white;
        font-weight: 600;
        font-size: 0.75rem;
        padding: 8px 2px;
      }

      .schedule-table-horizontal td {
        vertical-align: middle;
      }

      .schedule-table-horizontal td:first-child,
      .schedule-table-horizontal th:first-child {
        font-weight: 600;
        color: var(--text-color);
        background: rgba(var(--primary-color), 0.1);
        text-align: left;
        padding-left: 12px;
        width: 110px;
        min-width: 110px;
        font-size: 0.9rem;
      }

      .schedule-table-horizontal th:first-child {
        background: var(--primary-color);
        color: white;
      }

      .schedule-table-horizontal th:last-child,
      .schedule-table-horizontal td:last-child {
        border-right: none;
      }

      /* Responsive styles for schedule table */
      @media (min-width: 768px) and (max-width: 1024px) {
        .schedule-table-horizontal {
          min-width: 700px;
          font-size: 0.8rem;
        }

        .schedule-table-horizontal th,
        .schedule-table-horizontal td {
          padding: 10px 8px;
          font-size: 0.8rem;
          min-width: 120px;
        }

        .schedule-table-horizontal th {
          font-size: 0.7rem;
          padding: 6px 2px;
        }

        .schedule-table-horizontal td:first-child,
        .schedule-table-horizontal th:first-child {
          width: 90px;
          min-width: 90px;
          font-size: 0.85rem;
        }
      }

      @media (max-width: 768px) {
        .schedule-table-horizontal {
          min-width: 600px;
          font-size: 0.75rem;
        }

        .schedule-table-horizontal th,
        .schedule-table-horizontal td {
          padding: 8px 6px;
          font-size: 0.75rem;
          min-width: 100px;
        }

        .schedule-table-horizontal th {
          font-size: 0.65rem;
          padding: 4px 2px;
        }

        .schedule-table-horizontal td:first-child,
        .schedule-table-horizontal th:first-child {
          width: 80px;
          min-width: 80px;
          font-size: 0.8rem;
          padding-left: 8px;
        }

        .school-schedule {
          margin: 10px 0;
        }
      }

      .time-select,
      .time-select-large {
        display: inline-block !important;
        width: 110px !important;
        padding: 8px 12px !important;
        margin: 2px !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 6px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        background: #ffffff !important;
        color: #1a1a1a !important;
        font-family: "SF Mono", "Monaco", "Menlo", monospace !important;
        text-align: center !important;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        cursor: pointer !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
        background-position: right 6px center !important;
        background-repeat: no-repeat !important;
        background-size: 12px !important;
        padding-right: 25px !important;
        padding-left: 10px !important;
      }

      .time-select-large {
        width: 160px !important;
        padding: 12px 15px !important;
        font-size: 1.1rem !important;
        padding-right: 40px !important;
        padding-left: 15px !important;
        background-size: 16px !important;
        background-position: right 12px center !important;
      }

      .time-select-large:focus,
      .time-select:focus {
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.15) !important;
        outline: none !important;
        background-color: #f8fafc !important;
      }

      /* Dark mode support for time selects */
      body.dark-mode .time-select-large,
      body.dark-mode .time-select {
        background: var(--primary-color) !important;
        color: #ffffff !important;
        border-color: var(--primary-color) !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
      }

      body.dark-mode .time-select-large:focus,
      body.dark-mode .time-select:focus {
        background-color: #2563eb !important;
        border-color: #2563eb !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
      }

      /* Enhanced styling for time and number inputs to make them larger and easier to use */
      input[type="time"],
      input[type="number"] {
        padding: 14px 16px !important;
        font-size: 1.1rem !important;
        min-height: 50px !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 8px !important;
        background: var(--widget-background) !important;
        color: var(--text-color) !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
      }

      input[type="time"]:focus,
      input[type="number"]:focus {
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.15) !important;
        outline: none !important;
      }

      input[type="time"]:hover,
      input[type="number"]:hover {
        border-color: var(--primary-color) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
      }

      /* Specific styling for visitor time inputs */
      #besucher-beginn-time,
      #besucher-ende-time,
      #extern-beginn-time,
      #extern-ende-time {
        min-width: 140px !important;
        text-align: center !important;
        font-family: "SF Mono", "Monaco", "Menlo", monospace !important;
        letter-spacing: 1px !important;
      }

      /* Enhanced styling for quantity number inputs */
      #buero-quantity-input,
      input[type="number"][placeholder*="z.B. 5"] {
        min-width: 100px !important;
        text-align: center !important;
        font-weight: 600 !important;
      }

      /* Dark mode support for enhanced inputs */
      body.dark-mode input[type="time"],
      body.dark-mode input[type="number"] {
        background: #2a2d35 !important;
        border-color: #4a5568 !important;
        color: #f7fafc !important;
      }

      body.dark-mode input[type="time"]:focus,
      body.dark-mode input[type="number"]:focus {
        border-color: var(--erlenhof-light-blue) !important;
        box-shadow: 0 0 0 3px rgba(95, 151, 211, 0.2) !important;
      }

      body.dark-mode input[type="time"]:hover,
      body.dark-mode input[type="number"]:hover {
        border-color: var(--erlenhof-light-blue) !important;
        box-shadow: 0 4px 8px rgba(95, 151, 211, 0.15) !important;
      }

      /* Better mobile responsiveness for touch devices */
      @media (max-width: 768px) {
        input[type="time"],
        input[type="number"] {
          padding: 16px 18px !important;
          font-size: 1.2rem !important;
          min-height: 56px !important;
          touch-action: manipulation !important;
        }
        
        #besucher-beginn-time,
        #besucher-ende-time,
        #extern-beginn-time,
        #extern-ende-time {
          min-width: 160px !important;
        }
      }

      /* Time cell styling */
      .time-cell {
        position: relative;
        padding: 6px 2px !important;
        text-align: center;
        vertical-align: middle;
      }

      /* Free button styling */
      .free-btn {
        display: block;
        width: 100%;
        margin-top: 3px;
        padding: 2px;
        font-size: 0.65rem;
        background: #f3f4f6;
        border: 1px solid var(--border-color);
        border-radius: 3px;
        cursor: pointer;
        color: var(--text-muted);
        transition: all 0.2s;
      }

      .free-btn:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
      }

      .free-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
      }

      /* Hide time selects when free is active */
      .time-cell.free-mode .time-select,
      .time-cell.free-mode .time-select-large {
        display: none !important;
      }

      .time-cell.free-mode::after {
        content: "Frei";
        display: block;
        padding: 8px;
        font-weight: bold;
        color: var(--primary-color);
        text-align: center;
      }

      /* Responsive styles for time selectors and buttons */
      @media (min-width: 768px) and (max-width: 1024px) {
        .time-select,
        .time-select-large {
          width: 90px !important;
          padding: 6px 8px !important;
          font-size: 0.8rem !important;
          padding-right: 20px !important;
          background-size: 10px !important;
        }

        .time-select-large {
          width: 120px !important;
          padding: 8px 10px !important;
          font-size: 0.9rem !important;
          padding-right: 25px !important;
        }

        .free-btn {
          font-size: 0.6rem;
          padding: 1px;
        }

        .time-cell.free-mode::after {
          padding: 6px;
          font-size: 0.8rem;
        }
      }

      @media (max-width: 768px) {
        .time-select,
        .time-select-large {
          width: 75px !important;
          padding: 4px 6px !important;
          font-size: 0.7rem !important;
          padding-right: 18px !important;
          background-size: 8px !important;
          margin: 1px !important;
        }

        .time-select-large {
          width: 100px !important;
          padding: 6px 8px !important;
          font-size: 0.8rem !important;
          padding-right: 20px !important;
        }

        .free-btn {
          font-size: 0.55rem;
          padding: 1px;
          margin-top: 2px;
        }

        .time-cell {
          padding: 4px 1px !important;
        }

        .time-cell.free-mode::after {
          padding: 4px;
          font-size: 0.7rem;
        }
      }

      .school-summary {
        margin-top: 20px;
        padding: 15px;
        background: rgba(var(--widget-background-rgb), 0.7);
        border-radius: 8px;
        border-left: 4px solid var(--primary-color);
      }

      .school-summary h4 {
        margin: 0 0 10px 0;
        color: var(--primary-color);
        font-size: 1rem;
        font-weight: 600;
      }

      .school-summary-section {
        margin-top: 20px;
        padding: 15px;
        background: rgba(58, 110, 165, 0.05);
        border-radius: 8px;
        border-left: 4px solid var(--primary-color);
      }

      .school-summary-section h4 {
        margin: 0 0 15px 0;
        color: var(--primary-color);
        font-size: 1.1rem;
        font-weight: 600;
      }

      .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        border-bottom: 1px solid rgba(var(--border-color), 0.3);
      }

      .summary-row:last-child {
        border-bottom: none;
      }

      .summary-day {
        font-weight: 500;
        color: var(--text-color);
      }

      .summary-times {
        font-size: 0.9rem;
        color: var(--text-color);
        font-weight: 500;
      }

      /* Responsive styles for school summary section */
      @media (min-width: 768px) and (max-width: 1024px) {
        .school-summary,
        .school-summary-section {
          padding: 12px;
          margin-top: 15px;
        }

        .school-summary h4,
        .school-summary-section h4 {
          font-size: 1rem;
          margin-bottom: 10px;
        }

        .summary-row {
          padding: 4px 0;
        }

        .summary-times {
          font-size: 0.85rem;
        }
      }

      @media (max-width: 768px) {
        .school-summary,
        .school-summary-section {
          padding: 10px;
          margin-top: 10px;
        }

        .school-summary h4,
        .school-summary-section h4 {
          font-size: 0.95rem;
          margin-bottom: 8px;
        }

        .summary-row {
          padding: 3px 0;
          flex-direction: column;
          align-items: flex-start;
          gap: 2px;
        }

        .summary-day {
          font-size: 0.9rem;
        }

        .summary-times {
          font-size: 0.8rem;
          align-self: flex-end;
        }
      }

      .avatar-controls-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
      }
      .avatar-edit-container {
        position: relative;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        border: 4px solid var(--border-color);
        overflow: hidden;
        background-color: #f0f0f0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      }
      #avatar-preview {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
        cursor: move;
        position: absolute;
        top: 0;
        left: 0;
        transform-origin: center center;
        transition: transform 0.1s ease;
        min-width: 100%;
        min-height: 100%;
        /* Safari-specific fixes */
        -webkit-transform-origin: center center;
        -webkit-transition: -webkit-transform 0.1s ease;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
      }
      .avatar-zoom-controls {
        display: none;
        background: rgba(var(--widget-background-rgb, 255, 255, 255), 0.8);
        backdrop-filter: blur(5px);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 5px 10px;
        gap: 10px;
        align-items: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 10;
      }
      .avatar-zoom-controls.active {
        display: flex;
      }
      .zoom-slider {
        width: 120px;
        height: 6px;
        -webkit-appearance: none;
        appearance: none;
        background: var(--border-color);
        outline: none;
        border-radius: 3px;
      }
      .zoom-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        background: var(--primary-color);
        cursor: pointer;
        border-radius: 50%;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      }
      .zoom-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        background: var(--primary-color);
        cursor: pointer;
        border-radius: 50%;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        border: none;
      }
      .zoom-instruction {
        display: none;
        position: absolute;
        bottom: 10px;
        left: 50%;
        width: 90%;
        transform: translateX(-50%);
        font-size: 0.8rem;
        color: white;
        text-align: center;
        background: rgba(0, 0, 0, 0.5);
        padding: 4px 8px;
        border-radius: 4px;
        z-index: 5;
        pointer-events: none;
      }
      .avatar-edit-container:hover .zoom-instruction.active {
        display: block;
      }
      #avatar-upload-label {
        display: block;
        width: 100%;
        padding: 8px;
        border: 2px dashed var(--primary-color);
        border-radius: 6px;
        background-color: rgba(58, 110, 165, 0.05);
        color: var(--primary-color);
        cursor: pointer;
        transition: all 0.3s;
        font-weight: 500;
        text-align: center;
      }
      #avatar-upload-label:hover {
        border-color: var(--primary-hover);
        background-color: rgba(58, 110, 165, 0.1);
      }
      #avatar-upload {
        display: none;
      }

      .anwesenheit-status-group {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10px;
        background-color: var(--background-color);
        border-radius: 8px;
        margin-bottom: 10px;
      }
      #anwesenheit-form .status-dot {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        flex-shrink: 0;
      }
      .button-group {
        display: flex;
        gap: 10px;
        margin-top: 10px;
      }
      .save-button,
      .delete-button {
        border: none;
        border-radius: 12px;
        padding: 16px 32px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        color: white;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        flex-grow: 1;
        backdrop-filter: blur(10px);
      }

      .save-button {
        background: linear-gradient(
          135deg,
          var(--primary-color) 0%,
          var(--erlenhof-light-blue) 100%
        );
        box-shadow: 0 4px 20px rgba(58, 110, 165, 0.25),
          0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      }

      .delete-button {
        background: linear-gradient(
          135deg,
          var(--danger-color) 0%,
          #e74c3c 100%
        );
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.25),
          0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      }

      .save-button::after,
      .delete-button::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
      }

      .save-button:active::after,
      .delete-button:active::after {
        width: 300px;
        height: 300px;
      }
      .save-button::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
      }
      .save-button:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(58, 110, 165, 0.3);
      }
      .delete-button:hover {
        background-color: var(--danger-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
      }
      .save-button:hover::before {
        width: 300px;
        height: 300px;
      }
      .save-button:active,
      .delete-button:active {
        transform: translateY(0);
      }
      .save-button:disabled,
      .delete-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }

      /* Form button styling */
      .form-button {
        width: 100%;
        border: none;
        border-radius: 12px;
        padding: 16px 24px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        color: white;
        background: linear-gradient(
          135deg,
          var(--primary-color) 0%,
          var(--erlenhof-light-blue) 100%
        );
        box-shadow: 0 4px 20px rgba(58, 110, 165, 0.25),
          0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        margin-top: 15px;
      }

      .form-button::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
      }

      .form-button:hover {
        background: linear-gradient(
          135deg,
          var(--primary-hover) 0%,
          var(--primary-color) 100%
        );
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(58, 110, 165, 0.35),
          0 3px 12px rgba(0, 0, 0, 0.15);
      }

      .form-button:hover::before {
        width: 300px;
        height: 300px;
      }

      .form-button:active {
        transform: translateY(0);
        transition: all 0.1s ease;
      }

      .form-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
      }

      /* Special styling for presence status button */
      #anwesenheit-form .form-button {
        background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.25),
          0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      }

      #anwesenheit-form .form-button:hover {
        background: linear-gradient(135deg, #218838 0%, #1c6e2a 100%);
        box-shadow: 0 6px 25px rgba(40, 167, 69, 0.35),
          0 3px 12px rgba(0, 0, 0, 0.15);
      }

      /* Summary page styling */
      .summary-page {
        animation: fadeInUp 0.5s ease forwards;
      }
      
      .summary-compact {
        /* Remove scrolling - let content expand naturally */
        padding-right: 5px;
      }

      .summary-content .summary-item {
        padding: 2px 0;
        transition: background-color 0.2s ease;
        line-height: 1.2;
      }

      .summary-content .summary-item:hover {
        background-color: rgba(var(--primary-color), 0.05);
        border-radius: 3px;
        padding-left: 5px;
      }

      .summary-content .summary-item strong {
        color: var(--primary-color);
        font-weight: 600;
        min-width: 80px;
        display: inline-block;
        font-size: inherit;
      }

      .summary-content ul li {
        padding: 1px 0;
        transition: color 0.2s ease;
        line-height: 1.2;
      }

      .summary-content ul li:hover {
        color: var(--primary-color);
      }

      @media (max-width: 768px) {
        .summary-grid {
          grid-template-columns: 1fr !important;
          gap: 20px !important;
        }
        
        .summary-header {
          flex-direction: column;
          gap: 15px;
          text-align: center;
        }
      }

      .summary-sentence {
        font-size: 1.1rem;
        color: var(--erlenhof-dark-blue);
        margin-top: 20px;
        padding: 12px 16px 12px 25px;
        background-color: #e8f0f8;
        border-radius: 6px;
        animation: slideIn 0.4s ease;
        font-weight: 500;
        position: relative;
        border-left: none;
      }
      body.dark-mode .summary-sentence {
        background-color: #2a4a6a;
        color: #e4e6eb;
      }
      /* Special styling for age text in profile summary - with matching background */
      #profil-summary {
        display: inline-flex !important;
        align-items: center !important;
        background-color: #e8f4f8 !important;
        border: 2px solid #cccccc !important;
        border-radius: 12px !important;
        padding: 8px 12px !important;
        font-family: "Courier New", monospace !important;
        font-weight: bold !important;
        color: var(--erlenhof-dark-blue) !important;
        font-size: 1rem !important;
        text-shadow: none !important;
        box-shadow: none !important;
        position: relative !important;
        overflow: hidden !important;
        min-width: 120px !important;
        justify-content: center !important;
      }
      /* Dark mode styling for profile summary */
      body.dark-mode #profil-summary {
        background-color: #2a4a6a !important;
        color: var(--text-color) !important;
        border: 2px solid #888888 !important;
      }
      .summary-sentence::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 8px;
        border-radius: 6px 0 0 6px;
        background: var(--erlenhof-gradient);
        background-size: 200% 200%;
        animation: animated-border 4s linear infinite;
      }
      @keyframes animated-border {
        0% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
        100% {
          background-position: 0% 50%;
        }
      }
      @keyframes slideIn {
        from {
          opacity: 0;
          transform: translateX(-10px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      #eintraege-list {
        margin-top: 20px;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      .eintrag-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
        background-color: var(--background-color);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        animation: fadeInScale 0.4s ease forwards;
        opacity: 0;
      }
      .eintrag-item-text {
        font-size: 0.9rem;
        font-weight: 500;
      }
      .eintrag-delete-btn {
        background: none;
        border: none;
        color: var(--danger-color);
        cursor: pointer;
        padding: 5px;
        opacity: 0.7;
        transition: opacity 0.2s;
        position: relative;
        z-index: 10;
        pointer-events: auto;
      }
      .eintrag-delete-btn:hover {
        opacity: 1;
        background-color: rgba(var(--danger-color), 0.1);
        border-radius: 4px;
      }

      /* Ensure einträge list is clickable */
      #eintraege-list {
        position: relative;
        z-index: 5;
      }

      .eintrag-item {
        position: relative;
        z-index: 5;
      }

      /* Ämtli Styles */
      .amtli-view {
        padding: 20px;
      }
      .amtli-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 15px;
      }
      .week-selector {
        display: flex;
        align-items: center;
        gap: 15px;
      }
      .week-nav-btn {
        background: var(--button-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
        transition: all 0.2s;
        color: var(--text-color);
      }
      .week-nav-btn:hover {
        background: var(--button-hover);
      }
      
      /* Dark mode styles for week navigation buttons */
      body.dark-mode .week-nav-btn {
        background: #4a5568 !important;
        border: 1px solid #6b7280 !important;
        color: #f7fafc !important;
        box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
      }
      body.dark-mode .week-nav-btn:hover {
        background: #5a6578 !important;
        border-color: #9ca3af !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(255, 255, 255, 0.15);
      }
      body.dark-mode .week-nav-btn:active {
        background: #3a4553 !important;
        transform: translateY(0);
      }
      
      /* Light mode styles for better visibility */
      body:not(.dark-mode) .week-nav-btn {
        background: var(--primary-color) !important;
        border: 1px solid var(--primary-color) !important;
        color: white !important;
        font-weight: 500;
        box-shadow: 0 2px 4px rgba(58, 110, 165, 0.3);
      }
      body:not(.dark-mode) .week-nav-btn:hover {
        background: var(--primary-hover) !important;
        border-color: var(--primary-hover) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(58, 110, 165, 0.4);
      }
      body:not(.dark-mode) .week-nav-btn:active {
        background: #2d5a8a !important;
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(58, 110, 165, 0.3);
      }
      .current-week {
        font-weight: 600;
        min-width: 200px;
        text-align: center;
      }
      .print-button {
        background: var(--erlenhof-blue) !important;
        color: white !important;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.95rem;
        font-weight: 500;
        display: flex !important;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10;
      }
      .print-button:hover {
        background: var(--erlenhof-dark-blue) !important;
        transform: translateY(-1px);
      }
      
      /* Ensure print button is visible in both light and dark modes */
      body:not(.dark-mode) .print-button {
        background: #3a6ea5 !important;
        color: white !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }
      
      body.dark-mode .print-button {
        background: #4a7fb5 !important;
        color: white !important;
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
      }

      .amtli-table {
        width: 100%;
        background: var(--widget-background);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--shadow);
        margin-top: 15px;
      }

      body.dark-mode .amtli-table {
        border: 1px solid #3a3d45;
      }
      .amtli-table table {
        width: 100%;
        border-collapse: collapse;
      }
      .amtli-table th,
      .amtli-table td {
        padding: 8px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
      }
      .amtli-table th {
        background: var(--erlenhof-dark-blue);
        color: white;
        font-weight: 600;
        position: sticky;
        top: 0;
        z-index: 1;
      }

      /* Dark mode Ämtli table header */
      body.dark-mode .amtli-table th {
        background: var(--erlenhof-dark-blue);
        color: white;
      }
      .amtli-table tr:hover {
        background: rgba(58, 110, 165, 0.1);
      }

      body.dark-mode .amtli-table tr:hover {
        background: rgba(95, 151, 211, 0.2);
      }
      .amtli-table .task-cell {
        font-size: 0.9rem;
        color: var(--text-color);
        font-weight: 500;
        background: rgba(58, 110, 165, 0.08);
        border-radius: 4px;
        padding: 6px 8px;
      }

      body.dark-mode .amtli-table .task-cell {
        background: rgba(95, 151, 211, 0.2);
        color: var(--text-color);
      }

      /* Make name column more visible */
      .amtli-table td:first-child {
        font-weight: 600;
        color: var(--primary-color);
      }

      body.dark-mode .amtli-table td:first-child {
        color: var(--erlenhof-light-blue);
      }

      /* Denser layout for better information density */
      .amtli-table table {
        font-size: 0.9rem;
      }
      /* NEW: Visible Checkboxes */
      .amtli-table .day-checkbox {
        -webkit-appearance: none;
        appearance: none;
        margin: 0 5px;
        cursor: pointer;
        width: 20px;
        height: 20px;
        border: 2px solid #9ca3af;
        border-radius: 4px;
        position: relative;
        transition: all 0.2s;
        background-color: white;
      }

      /* Dark mode checkbox styling */
      body.dark-mode .amtli-table .day-checkbox {
        border-color: var(--erlenhof-light-blue);
        background-color: #4a4d55; /* A slightly lighter dark grey */
      }
      .amtli-table .day-checkbox:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
      }
      .amtli-table .day-checkbox:checked::before {
        content: "✔";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 14px;
      }
      .amtli-table .initials-input {
        width: 40px;
        padding: 2px 4px;
        font-size: 0.75rem;
        text-align: center;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        margin-top: 3px;
      }
      .edit-amtli-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.85rem;
        transition: all 0.2s;
      }
      .edit-amtli-btn:hover {
        background: var(--primary-hover);
      }

      /* Calendar Styles */
      .calendar-view {
        padding: 20px;
      }
      .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
      }
      .month-nav {
        display: flex;
        align-items: center;
        gap: 15px;
      }
      .month-nav-btn {
        background: var(--button-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
        transition: all 0.2s;
      }
      .month-nav-btn:hover {
        background: var(--button-hover);
      }
      .current-month {
        font-size: 1.5rem;
        font-weight: 600;
        min-width: 200px;
        text-align: center;
      }

      /* NEW: More vibrant calendar */
      .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
        background: var(--background-color);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 10px;
        box-shadow: var(--shadow);
      }
      .calendar-day-header {
        padding: 10px;
        text-align: center;
        font-weight: 600;
        color: var(--erlenhof-dark-blue);
        border-radius: 4px;
      }
      body.dark-mode .calendar-day-header {
        color: var(--erlenhof-light-blue);
      }
      .calendar-day {
        min-height: 100px;
        padding: 8px;
        background: var(--widget-background);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
      }
      .calendar-day:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-color);
      }
      .calendar-day.other-month {
        opacity: 0.5;
        background: var(--button-bg);
      }
      .calendar-day.today {
        background: #e0eaf3;
        border: 2px solid var(--primary-color);
      }
      body.dark-mode .calendar-day.today {
        background: #334b68;
      }
      .calendar-day-number {
        font-weight: 600;
        margin-bottom: 5px;
      }
      .calendar-events {
        font-size: 0.8rem;
      }
      .calendar-event {
        padding: 3px 6px;
        margin: 3px 0;
        border-radius: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
      }
      .calendar-event.birthday {
        background-color: #ffe8cc;
        color: #fb8500;
      }
      .calendar-event.appointment {
        background-color: #e0cffc;
        color: #6f42c1;
      }
      body.dark-mode .calendar-event.birthday {
        background-color: #5e3400;
        color: #ffb74d;
      }
      body.dark-mode .calendar-event.appointment {
        background-color: #3b2368;
        color: #c0a2f7;
      }

      /* Special Days Styles */
      .special-days-view {
        padding: 20px;
      }

      /* Jahresplanung Styles */
      .jahresplanung-view {
        padding: 20px;
      }

      .planning-grid {
        background: white;
        border-radius: 8px;
        overflow: auto;
        box-shadow: var(--shadow);
        max-height: 70vh;
      }
      /* Dark mode styling for planning grid */
      body.dark-mode .planning-grid {
        background: var(--widget-background);
      }

      /* Event type color coding */
      .grid-cell.has-event.geburtstag {
        background-color: #ff6b9d !important;
        color: white !important;
      }
      
      .grid-cell.has-event.ferien {
        background-color: #4ecdc4 !important;
        color: white !important;
      }
      
      .grid-cell.has-event.sonstiges-single {
        background-color: #ffa726 !important;
        color: white !important;
      }
      
      .grid-cell.has-event.sonstiges-range {
        background-color: #ab47bc !important;
        color: white !important;
      }
      
      .grid-cell.has-event.birthday {
        background-color: #ff6b9d !important;
        color: white !important;
      }

      /* Filter button styles */
      .filter-btn.active {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) !important;
        transform: scale(1.05);
      }

      .filter-btn:hover {
        opacity: 0.8;
        transform: scale(1.02);
      }

      .grid-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 1400px;
        font-size: 11px;
      }

      .grid-table th,
      .grid-table td {
        border: 1px solid #ccc;
        padding: 4px 6px;
        text-align: left;
        position: relative;
        min-width: 100px;
        height: 25px;
        vertical-align: top;
      }

      .grid-table th {
        background-color: #f8f9fa;
        font-weight: bold;
        position: sticky;
        top: 0;
        z-index: 10;
      }

      .grid-table th.day-header {
        background-color: #d4edda;
        width: 50px;
        position: sticky;
        left: 0;
        z-index: 11;
        text-align: center;
        font-size: 12px;
      }

      .grid-table td.day-cell {
        background-color: #d4edda;
        font-weight: bold;
        position: sticky;
        left: 0;
        z-index: 9;
        text-align: center;
        font-size: 12px;
        color: #2e7d32;
      }
      /* Dark mode styling for day cells */
      body.dark-mode .grid-table td.day-cell {
        background-color: #3a4d4a;
        color: var(--text-color);
      }
      body.dark-mode .grid-table th.day-header {
        background-color: #3a4d4a;
        color: var(--text-color);
      }
      body.dark-mode .grid-table th {
        background-color: var(--widget-background);
        color: var(--text-color);
        border: 1px solid #555;
      }
      body.dark-mode .grid-table td {
        background-color: var(--widget-background);
        color: var(--text-color);
        border: 1px solid #555;
      }
      body.dark-mode .grid-table td.editable {
        background-color: var(--widget-background);
      }
      body.dark-mode .grid-table td.editable:hover {
        background-color: #4a4d55;
      }
      body.dark-mode .grid-table td.has-event {
        background-color: #2a4a3a;
      }

      .grid-table td.editable {
        cursor: pointer;
        background-color: #fff;
      }

      .grid-table td.editable:hover {
        background-color: #f8f9fa;
      }

      .grid-table td.has-event {
        background-color: #e8f5e8;
      }

      .event-content {
        font-size: 10px;
        line-height: 1.1;
        word-wrap: break-word;
        max-height: 20px;
        overflow: hidden;
        color: #333;
      }

      .event-content.important {
        font-weight: bold;
        color: #d32f2f;
      }

      .event-content.holiday {
        color: #1976d2;
        font-style: italic;
      }

      .event-content.birthday {
        color: #1976d2;
        font-weight: bold;
        font-size: 10px;
        line-height: 1.1;
      }
      /* Dark mode styling for event content */
      body.dark-mode .event-content {
        color: var(--text-color);
      }
      body.dark-mode .event-content.important {
        color: #ff6b6b;
      }
      body.dark-mode .event-content.holiday {
        color: #64b5f6;
      }
      body.dark-mode .event-content.birthday {
        color: #64b5f6;
      }

      /* Month headers with uniform dark color - visible in both light and dark mode */
      .month-jan, .month-feb, .month-mar, .month-apr, .month-may, .month-jun,
      .month-jul, .month-aug, .month-sep, .month-oct, .month-nov, .month-dec {
        background-color: #2c3e50 !important;
        color: #ffffff !important;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
      }

      /* Dark mode: Keep same uniform color for consistency */
      body.dark-mode .month-jan, body.dark-mode .month-feb, body.dark-mode .month-mar, 
      body.dark-mode .month-apr, body.dark-mode .month-may, body.dark-mode .month-jun,
      body.dark-mode .month-jul, body.dark-mode .month-aug, body.dark-mode .month-sep, 
      body.dark-mode .month-oct, body.dark-mode .month-nov, body.dark-mode .month-dec {
        background-color: #34495e !important;
        color: #ecf0f1 !important;
      }

      .year-nav-btn:hover {
        background: var(--primary-hover) !important;
        transform: translateY(-1px);
      }
      .special-days-list {
        display: grid;
        gap: 15px;
      }
      .special-day-card {
        background: var(--widget-background);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 20px;
        box-shadow: var(--shadow);
        display: flex;
        align-items: center;
        gap: 20px;
        transition: all 0.3s;
      }
      .special-day-card:hover {
        transform: translateX(5px);
        box-shadow: var(--shadow-hover);
      }
      .special-day-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        flex-shrink: 0;
      }
      .special-day-icon.birthday {
        background: rgba(253, 126, 20, 0.2);
        color: var(--orange);
      }
      .special-day-icon.appointment {
        background: rgba(111, 66, 193, 0.2);
        color: var(--purple);
      }
      .special-day-content {
        flex: 1;
      }
      .special-day-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 5px;
      }
      .special-day-date {
        color: var(--text-muted);
        font-size: 0.9rem;
      }
      .special-day-description {
        margin-top: 5px;
        font-size: 0.95rem;
      }

      /* START: PENDENZLISTE STYLES */
      .pendenzliste-view {
        padding: 20px;
      }
      #pendenzen-form {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 25px;
        align-items: flex-end;
      }
      #pendenzen-form .form-group {
        flex-grow: 1;
        margin-bottom: 0;
      }
      #pendenzen-form label {
        font-size: 0.85rem;
        margin-bottom: 4px;
      }
      #pendenzen-form button {
        flex-shrink: 0;
      }
      #pendenzen-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      .pendenz-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        background: var(--widget-background);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: var(--shadow);
        transition: background-color 0.3s;
        flex-wrap: wrap;
        animation: fadeInScale 0.4s ease forwards;
        opacity: 0;
      }
      .pendenz-item:hover {
        background-color: var(--background-color);
      }
      .pendenz-item .task-content {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-grow: 1;
      }
      .pendenz-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: var(--primary-color);
        cursor: pointer;
        flex-shrink: 0;
      }
      .pendenz-item label {
        flex-grow: 1;
        cursor: pointer;
        transition: color 0.3s, text-decoration 0.3s;
        margin: 0;
      }
      .pendenz-item .due-date {
        font-size: 0.85rem;
        color: var(--text-muted);
        font-weight: 500;
        white-space: nowrap;
      }
      .pendenz-item .due-date.overdue {
        color: var(--danger-color);
      }
      .pendenz-item.completed label {
        text-decoration: line-through;
        color: var(--text-muted);
      }
      .pendenz-item.completed .due-date {
        text-decoration: line-through;
      }
      .pendenz-delete-btn {
        background: none;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        padding: 5px;
        transition: color 0.2s;
        margin-left: auto;
      }
      .pendenz-delete-btn:hover {
        color: var(--danger-color);
      }

      /* Multi-tab Pendenzliste Styles */
      .pendenz-tabs {
        display: flex;
        gap: 5px;
        margin-bottom: 25px;
        border-bottom: 2px solid var(--border-color);
      }

      .pendenz-tab {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: transparent;
        border: none;
        border-bottom: 3px solid transparent;
        color: var(--text-muted);
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        font-weight: 500;
      }

      .pendenz-tab:hover {
        color: var(--primary-color);
        background: rgba(var(--primary-color-rgb), 0.05);
      }

      .pendenz-tab.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
        background: rgba(var(--primary-color-rgb), 0.1);
      }

      .pendenz-tab svg {
        width: 16px;
        height: 16px;
      }

      .pendenz-content {
        display: none;
      }

      .pendenz-content.active {
        display: block;
      }

      /* Tab-specific styles */
      .pendenz-priority {
        font-size: 0.8rem;
        padding: 2px 8px;
        border-radius: 4px;
        font-weight: 500;
        margin-left: 8px;
      }

      .pendenz-priority.hoch {
        background: var(--danger-color);
        color: white;
      }

      .pendenz-priority.niedrig {
        background: var(--text-muted);
        color: white;
      }

      .pendenz-priority.dringend {
        background: var(--danger-color);
        color: white;
        animation: pulse 1.5s infinite;
      }

      .pendenz-priority.kann-warten {
        background: var(--text-muted);
        color: white;
      }

      .pendenz-quantity {
        font-size: 0.8rem;
        color: var(--primary-color);
        background: rgba(var(--primary-color-rgb), 0.1);
        padding: 2px 6px;
        border-radius: 4px;
        margin-left: 8px;
      }

      /* END: PENDENZLISTE STYLES */

      /* Modal Styles */
      .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
      }
      .modal-overlay.active {
        opacity: 1;
        visibility: visible;
      }
      .modal {
        background: var(--widget-background);
        border-radius: var(--border-radius);
        padding: 30px;
        max-width: 500px;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        transform: scale(0.9);
        transition: transform 0.3s;
      }
      .modal-overlay.active .modal {
        transform: scale(1);
      }
      .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
      }
      .modal-title {
        font-size: 1.3rem;
        font-weight: 600;
      }
      .modal-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-muted);
        transition: color 0.2s;
      }
      .modal-close:hover {
        color: var(--text-color);
      }

      /* Print-friendly styles for PDF generation */
      .print-friendly,
      .print-friendly * {
        background-color: white !important;
        color: black !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        text-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        box-shadow: none !important;
        border-color: #ccc !important;
        opacity: 1 !important;
        mix-blend-mode: normal !important; /* Ensure no blending issues */
      }

      .print-friendly .client-card .info-bar,
      .print-friendly .hover-info-label,
      .print-friendly .hover-info-value,
      .print-friendly .summary-sentence,
      .print-friendly .special-day-icon.birthday,
      .print-friendly .special-day-icon.appointment,
      .print-friendly .calendar-event.birthday,
      .print-friendly .calendar-event.appointment {
        color: black !important;
        -webkit-text-fill-color: black !important;
      }

      /* Ensure all text is black for printing */
      @media print {
        * {
          color: black !important;
          -webkit-text-fill-color: black !important;
          font-family: sans-serif !important; /* Force a generic font */
          background-color: white !important; /* Ensure white background */
          opacity: 1 !important;
          mix-blend-mode: normal !important; /* Ensure no blending issues */
        }
      }

      /* Print Styles */
      @media print {
        /* Force white background and black text for everything */
        body,
        body * {
          background-color: white !important;
          color: black !important;
          box-shadow: none !important;
          text-shadow: none !important;
          filter: none !important;
          -webkit-filter: none !important;
          border-color: #ccc !important;
          opacity: 1 !important; /* Ensure full opacity */
        }

        /* Force all text to black, normal font-weight, and ensure no text-shadow */
        * {
          color: black !important;
          background-color: white !important; /* Force white background for all elements */
          /* font-weight: normal !important; */ /* Removed to preserve original font weights */
          opacity: 1 !important;
          text-shadow: none !important;
          filter: none !important;
          -webkit-filter: none !important;
        }

        /* Hide elements not needed in print */
        .header,
        .side-nav,
        .back-button,
        .auth-container,
        footer,
        .print-button,
        .nav-button,
        .theme-toggle,
        .auth-switch,
        .error-message,
        .loading-spinner,
        .button-group,
        .avatar-controls-wrapper,
        .avatar-zoom-controls,
        .zoom-instruction,
        #avatar-upload-label,
        input[type="file"],
        .eintrag-delete-btn,
        .edit-amtli-btn,
        .modal-overlay,
        .modal,
        .modal-header,
        .modal-close,
        #pendenzen-form,
        .pendenz-delete-btn {
          display: none !important;
        }

        /* Ensure main content is visible */
        .app-container,
        .main-content,
        .content-area,
        .view,
        #dashboard-view,
        #amtli-view,
        #calendar-view,
        #special-days-view,
        #pendenzliste-view,
        #detail-view {
          display: block !important;
          position: static !important;
          left: auto !important;
          top: auto !important;
          width: auto !important;
          height: auto !important;
          overflow: visible !important;
          margin: 0 !important;
          padding: 0 !important;
        }

        /* Specific adjustments for tables and widgets */
        .widget,
        .amtli-table,
        .client-card,
        .special-day-card,
        .pendenz-item {
          box-shadow: none !important;
          border: 1px solid #ccc !important;
          page-break-inside: avoid;
        }
        .amtli-table table {
          width: 100%;
          border-collapse: collapse;
        }
        .amtli-table th,
        .amtli-table td {
          padding: 8px;
          font-size: 0.8em;
          text-align: left;
          border-bottom: 1px solid #ccc;
          word-wrap: break-word;
        }
        .amtli-table th:nth-child(1) {
          width: 15%;
        }
        .amtli-table th:nth-child(2) {
          width: 20%;
        }
        .amtli-table th:nth-child(3),
        .amtli-table th:nth-child(4),
        .amtli-table th:nth-child(5),
        .amtli-table th:nth-child(6),
        .amtli-table th:nth-child(7),
        .amtli-table th:nth-child(8),
        .amtli-table th:nth-child(9) {
          width: 7%;
        }
        .amtli-table th:nth-child(10) {
          width: 16%;
        }
        .amtli-table tr {
          page-break-inside: avoid;
        }
        .page-break {
          page-break-after: avoid;
        }

        /* Ensure images are visible */
        img {
          display: block !important;
          visibility: visible !important;
          opacity: 1 !important;
        }

        /* Specific overrides for elements that might have problematic styles */
        .client-hover-info,
        .profile-picture-container,
        .client-card h3,
        .client-card .client-age,
        .client-card .info-bar,
        .client-card .last-update-on-card {
          filter: none !important;
          opacity: 1 !important;
        }

        /* Remove animations and transitions */
        * {
          animation: none !important;
          transition: none !important;
        }
      }

      footer {
        text-align: center;
        margin-top: 40px;
        padding: 20px;
        border-top: 1px solid var(--border-color);
        color: var(--text-muted);
        font-size: 0.9rem;
        transition: all 0.3s ease;
      }

      .hidden {
        display: none !important;
      }
      .disabled {
        opacity: 0.5;
        pointer-events: none;
      }
      .view {
        display: block;
        animation: view-slide-in 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        transform: translateX(0);
      }

      .view.hidden {
        display: none;
      }

      .view.transitioning-out {
        animation: view-slide-out 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      }

      .view.transitioning-in {
        animation: view-slide-in-from-right 0.6s cubic-bezier(0.4, 0, 0.2, 1)
          forwards;
      }

      @keyframes view-slide-in {
        from {
          opacity: 0;
          transform: translateY(30px) scale(0.95);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      @keyframes view-slide-out {
        to {
          opacity: 0;
          transform: translateX(-30px) scale(0.98);
        }
      }

      @keyframes view-slide-in-from-right {
        from {
          opacity: 0;
          transform: translateX(30px) scale(0.95);
        }
        to {
          opacity: 1;
          transform: translateX(0) scale(1);
        }
      }
      button:focus-visible,
      input:focus-visible,
      select:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
      }

      /* Floating Action Button */
      .fab {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        background: linear-gradient(
          135deg,
          var(--primary-color) 0%,
          var(--erlenhof-light-blue) 100%
        );
        border: none;
        border-radius: 50%;
        box-shadow: 0 8px 24px rgba(58, 110, 165, 0.3),
          0 4px 12px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(10px);
      }

      .fab:hover {
        transform: scale(1.1) translateY(-2px);
        box-shadow: 0 12px 32px rgba(58, 110, 165, 0.4),
          0 6px 16px rgba(0, 0, 0, 0.15);
      }

      .fab:active {
        transform: scale(0.95);
      }

      /* Smooth Scrolling */
      html {
        scroll-behavior: smooth;
      }

      /* Custom Scrollbar */
      ::-webkit-scrollbar {
        width: 8px;
      }

      ::-webkit-scrollbar-track {
        background: var(--background-color);
        border-radius: 4px;
      }

      ::-webkit-scrollbar-thumb {
        background: linear-gradient(
          135deg,
          var(--primary-color),
          var(--erlenhof-light-blue)
        );
        border-radius: 4px;
        transition: background 0.3s ease;
      }

      ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(
          135deg,
          var(--primary-hover),
          var(--primary-color)
        );
      }

      .client-card {
        animation: card-pop-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
        transform: scale(0.95) translateY(20px);
      }

      .client-card.card-animate-in {
        animation: card-slide-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      }

      @keyframes card-slide-in {
        from {
          opacity: 0;
          transform: scale(0.9) translateY(40px) rotateX(10deg);
        }
        to {
          opacity: 1;
          transform: scale(1) translateY(0) rotateX(0deg);
        }
      }

      /* Water ripple animation for attendance dropdowns */
      .attendance-cell {
        position: relative;
        overflow: hidden;
      }

      .water-ripple {
        position: absolute;
        border-radius: 50%;
        background: radial-gradient(
          circle,
          rgba(255, 255, 255, 0.6) 0%,
          rgba(255, 255, 255, 0.3) 30%,
          transparent 70%
        );
        transform: scale(0);
        animation: ripple-effect 0.6s ease-out;
        pointer-events: none;
        z-index: 5;
      }

      @keyframes ripple-effect {
        0% {
          transform: scale(0);
          opacity: 1;
        }
        100% {
          transform: scale(4);
          opacity: 0;
        }
      }

      /* Water wave animation on hover */
      .attendance-cell:hover {
        animation: water-wave 0.8s ease-in-out;
      }

      @keyframes water-wave {
        0%,
        100% {
          transform: translateY(0);
        }
        25% {
          transform: translateY(-1px);
        }
        50% {
          transform: translateY(0);
        }
        75% {
          transform: translateY(1px);
        }
      }

      /* Gentle shimmer effect for dropdown options */
      .attendance-cell select:focus {
        animation: gentle-shimmer 1s ease-in-out infinite alternate;
      }

      @keyframes gentle-shimmer {
        0% {
          box-shadow: inset 0 0 8px rgba(135, 206, 250, 0.3);
        }
        100% {
          box-shadow: inset 0 0 15px rgba(135, 206, 250, 0.6);
        }
      }

      /* Attendance Legend Styling */
      .attendance-legend {
        background: var(--widget-background);
        border: 1px solid var(--border-color);
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: var(--shadow);
      }

      @keyframes card-pop-in {
        to {
          opacity: 1;
          transform: scale(1);
        }
      }

      .nav-button {
        animation: nav-slide-in 0.6s ease forwards;
        opacity: 0;
        transform: translateX(-20px);
      }

      @keyframes nav-slide-in {
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

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

      @media (max-width: 768px) {
        .header {
          flex-direction: column;
          align-items: flex-start;
        }
        .header-left {
          flex-direction: column;
          align-items: center;
          text-align: center;
          width: 100%;
        }
        .header .header-actions {
          flex-direction: column;
          align-items: stretch;
          width: 100%;
        }
        .header h1 {
          font-size: 2rem;
        }
        .main-content {
          flex-direction: column;
        }
        .side-nav {
          width: 100%;
          margin-bottom: 20px;
        }
        .detail-view-content {
          grid-template-columns: 1fr;
        }
        body {
          padding: 0;
        }
        .app-container {
          padding: 15px;
        }
        .auth-card {
          padding: 30px 20px;
        }
        .calendar-grid {
          grid-template-columns: repeat(7, 1fr);
          gap: 1px;
          padding: 5px;
        }
        .calendar-day {
          min-height: 80px;
          padding: 4px;
          font-size: 0.85rem;
        }
        .amtli-header {
          flex-direction: column;
          align-items: stretch;
        }
      }

      /* Attendance Table Excel-like Enhancements */
      .excel-table {
        font-family: "Segoe UI", "Liberation Sans", "Arial", "sans-serif",
          "monospace";
        border-collapse: collapse;
        width: 100%;
        background: #fff;
        table-layout: fixed;
      }
      .excel-table th,
      .excel-table td {
        border: 2px solid #b4b4b4;
        padding: 0;
        text-align: center;
        font-size: 14px;
        background: #fff;
        min-width: 90px;
        max-width: 120px;
        height: 40px;
        overflow: visible;
        vertical-align: middle;
        white-space: normal;
      }
      .excel-table th {
        background: #e6effc;
        font-weight: bold;
        position: sticky;
        top: 0;
        z-index: 2;
        box-shadow: 0 2px 0 #b4b4b4;
      }
      .excel-table .sticky-name {
        position: sticky;
        left: 0;
        background: #f3f6fa;
        z-index: 1;
        font-weight: bold;
        color: #1d3557;
        box-shadow: 2px 0 0 #b4b4b4;
        white-space: nowrap;
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        overflow: hidden;
        word-break: normal;
        vertical-align: middle;
        padding: 8px 12px;
        border-right: 2px solid #b4b4b4;
        text-align: left;
        background: #f3f6fa;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
      }
      .excel-table .sticky-name span {
        white-space: nowrap;
        display: block;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
      }
      .excel-table td.cell-hover,
      .excel-table td:focus-within {
        background: #d2e6fa !important;
        outline: 2px solid #1976d2;
        z-index: 3;
      }
      .excel-table td .cell-value {
        display: block;
        width: 100%;
        height: 100%;
        line-height: 38px;
        cursor: pointer;
        font-family: inherit;
        font-size: 14px;
        color: var(--text-color);
        background: transparent;
        border: none;
        text-align: center;
      }
      /* Dark mode specific styling for cell values */
      body.dark-mode .excel-table td .cell-value {
        color: var(--text-color);
      }
      .excel-table td .cell-select {
        display: none;
        width: 100%;
        height: 100%;
        font-size: 14px;
        border: none;
        background: #e6effc;
        text-align: center;
        font-family: inherit;
        color: #222;
        outline: none;
      }
      /* Dark mode styling for cell select dropdown */
      body.dark-mode .excel-table td .cell-select {
        background: #4a4d55;
        color: var(--text-color);
      }
      .excel-table td.editing .cell-value {
        display: none;
      }
      .excel-table td.editing .cell-select {
        display: block;
      }
      .excel-table td .cell-value.A {
        background: #28a745;
        color: #fff;
      }
      .excel-table td .cell-value.K {
        background: #dc3545;
        color: #fff;
      }

      .excel-table td .cell-value.F {
        background: #6c757d;
        color: #fff;
      }
      .excel-table td .cell-value.X {
        background: #6f42c1;
        color: #fff;
      }
      .excel-table td .cell-value.V {
        background: #007bff;
        color: #fff;
      }
      .excel-table td .cell-value.Fe {
        background: #ffc107;
        color: #fff;
      }
      .excel-table td .cell-value {
        border-radius: 0;
        box-shadow: none;
      }
      /* Ensure cell values are visible in dark mode - high specificity */
      body.dark-mode
        .excel-table
        td
        .cell-value:not(.A):not(.K):not(.F):not(.X):not(.V):not(.Fe) {
        color: var(--text-color) !important;
      }
      /* Styling for empty attendance cells showing day numbers */
      .debug-empty-cell {
        color: var(--text-color) !important;
        background-color: transparent !important;
        font-size: 12px;
        opacity: 0.7;
      }
      /* Attendance table day headers styling */
      .attendance-day-header {
        color: var(--text-color) !important;
        background-color: var(--widget-background) !important;
      }
      .attendance-header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.2;
        color: var(--text-color) !important;
      }
      .attendance-header-content .day-name {
        font-size: 13px;
        font-weight: bold;
        color: var(--text-color) !important;
      }
      .attendance-header-content .day-number {
        font-size: 15px;
        color: var(--text-color) !important;
      }
      /* Dark mode specific overrides for attendance headers */
      body.dark-mode .attendance-day-header,
      body.dark-mode .attendance-header-content,
      body.dark-mode .attendance-header-content .day-name,
      body.dark-mode .attendance-header-content .day-number {
        color: var(--text-color) !important;
      }
      /* Add horizontal scroll for wide tables */
      #prasenz-table-container {
        overflow-x: auto;
        width: 100%;
      }

      /* ========== ENHANCED LOADING STATES & SKELETON SCREENS ========== */

      .skeleton {
        background: linear-gradient(
          90deg,
          #f0f0f0 25%,
          #e0e0e0 50%,
          #f0f0f0 75%
        );
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        border-radius: 4px;
      }

      @keyframes skeleton-loading {
        0% {
          background-position: 200% 0;
        }
        100% {
          background-position: -200% 0;
        }
      }

      .skeleton-card {
        background: var(--widget-background);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 20px;
        box-shadow: var(--shadow);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
      }

      .skeleton-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: linear-gradient(
          90deg,
          #f0f0f0 25%,
          #e0e0e0 50%,
          #f0f0f0 75%
        );
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
      }

      .skeleton-text {
        height: 20px;
        background: linear-gradient(
          90deg,
          #f0f0f0 25%,
          #e0e0e0 50%,
          #f0f0f0 75%
        );
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        border-radius: 4px;
      }

      .skeleton-text.title {
        width: 80%;
        height: 24px;
        margin-bottom: 10px;
      }

      .skeleton-text.subtitle {
        width: 60%;
        height: 16px;
      }

      .skeleton-text.info {
        width: 70%;
        height: 14px;
      }

      /* Card Animation Improvements */
      .client-card {
        animation: card-fade-in 0.6s ease-out forwards;
        opacity: 0;
        transform: translateY(20px);
      }

      @keyframes card-fade-in {
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Stagger animation delays for cards */
      .client-card:nth-child(1) {
        animation-delay: 0.1s;
      }
      .client-card:nth-child(2) {
        animation-delay: 0.2s;
      }
      .client-card:nth-child(3) {
        animation-delay: 0.3s;
      }
      .client-card:nth-child(4) {
        animation-delay: 0.4s;
      }
      .client-card:nth-child(5) {
        animation-delay: 0.5s;
      }
      .client-card:nth-child(6) {
        animation-delay: 0.6s;
      }
      .client-card:nth-child(7) {
        animation-delay: 0.7s;
      }
      .client-card:nth-child(8) {
        animation-delay: 0.8s;
      }

      /* Enhanced Empty State */
      .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--text-muted);
        animation: empty-fade-in 0.8s ease-out;
      }

      @keyframes empty-fade-in {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .empty-state-icon {
        font-size: 4rem;
        margin-bottom: 20px;
        opacity: 0.6;
      }

      .empty-state-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--text-color);
      }

      .empty-state-description {
        font-size: 1rem;
        margin-bottom: 30px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
      }

      .empty-state-action {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 8px;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
      }

      .empty-state-action:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(58, 110, 165, 0.3);
      }

      /* Loading overlay */
      .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
      }

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

      .loading-content {
        text-align: center;
        color: var(--primary-color);
      }

      .loading-spinner-large {
        width: 50px;
        height: 50px;
        border: 4px solid rgba(58, 110, 165, 0.1);
        border-radius: 50%;
        border-top-color: var(--primary-color);
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
      }

      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      /* ========== GAS STATION STYLE DIGITAL SELECTORS ========== */

      .digital-selector {
        display: inline-flex;
        align-items: center;
        background: var(--widget-background);
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 8px 12px;
        font-family: inherit;
        font-weight: 500;
        color: var(--text-color);
        box-shadow: var(--shadow);
        position: relative;
        overflow: hidden;
        min-width: 120px;
        justify-content: center;
      }

      .digital-selector.month-selector {
        min-width: 140px;
      }

      .digital-selector.year-selector {
        min-width: 100px;
        margin-left: 20px;
      }

      .digital-display {
        background: transparent;
        border: none;
        color: inherit;
        font: inherit;
        text-align: center;
        width: 100%;
        cursor: pointer;
        outline: none;
        font-size: 1rem;
        transition: all 0.3s ease;
        padding-right: 25px;
      }
      .digital-display:hover {
        color: var(--primary-color);
        font-weight: 600;
        transform: scale(1.02);
      }

      .digital-controls {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 255, 65, 0.1);
        border: 1px solid rgba(0, 255, 65, 0.3);
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 12px;
        color: var(--primary-color);
        text-shadow: 0 0 5px var(--primary-color);
      }

      .digital-controls:hover {
        background: rgba(58, 110, 165, 0.3);
        box-shadow: 0 0 15px rgba(58, 110, 165, 0.5);
        transform: translateY(-50%) scale(1.1);
      }

      .digital-controls.prev {
        left: 8px;
      }

      .digital-controls.next {
        right: 8px;
      }

      .digital-controls.dropdown-arrow {
        right: 8px;
        font-size: 14px;
        transition: transform 0.3s ease;
        pointer-events: none;
      }

      .digital-selector:hover .dropdown-arrow {
        transform: translateY(-50%) scale(1.2);
      }

      .digital-selector {
        position: relative;
        cursor: pointer;
      }

      .digital-selector select {
        transition: opacity 0.3s ease;
        outline: none;
      }

      .digital-selector::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(0, 255, 65, 0.2),
          transparent
        );
        animation: scanner 3s linear infinite;
      }

      @keyframes scanner {
        0% {
          left: -100%;
        }
        100% {
          left: 100%;
        }
      }

      /* Enhanced Calendar Month Display */
      .current-month {
        background: var(--widget-background);
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 12px 20px;
        font-family: inherit;
        font-weight: 600;
        color: var(--primary-color);
        box-shadow: var(--shadow);
        min-width: 200px;
        text-align: center;
        position: relative;
        overflow: hidden;
        letter-spacing: 1px;
        font-size: 1.1rem;
      }

      .current-month::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(0, 255, 65, 0.2),
          transparent
        );
        animation: scanner 3s linear infinite;
      }

      /* Enhanced Month Navigation Buttons */
      .month-nav-btn {
        background: var(--widget-background) !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 50% !important;
        width: 50px !important;
        height: 50px !important;
        color: var(--primary-color) !important;
        font-size: 1.5rem !important;
        font-weight: bold !important;
        box-shadow: var(--shadow) !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
      }

      .month-nav-btn:hover {
        background: var(--primary-color) !important;
        color: white !important;
        box-shadow: var(--shadow-hover) !important;
        transform: scale(1.1) !important;
      }

      .month-nav-btn:active {
        transform: scale(0.95) !important;
        box-shadow: inset 0 0 20px rgba(58, 110, 165, 0.4),
          0 0 10px rgba(58, 110, 165, 0.3) !important;
      }

      /* Schulplan Header Centering */
      .schulplan-header {
        text-align: center;
        margin: 20px 0;
        padding: 10px 0;
      }

      .schulplan-header h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--erlenhof-blue);
      }

      body.dark-mode .schulplan-header h3 {
        color: var(--text-color);
      }

      /* Schulplan Input Section Flexbox Layout */
      .schulplan-inputs {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 20px;
      }

      .schulplan-inputs .form-group {
        flex: 1;
        min-width: 0;
      }

      .schulplan-inputs .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text-color);
      }

      .schulplan-inputs .form-group input,
      .schulplan-inputs .form-group select {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 1rem;
        background: var(--widget-background);
        color: var(--text-color);
        transition: all 0.2s ease;
      }

      .schulplan-inputs .form-group input:focus,
      .schulplan-inputs .form-group select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.1);
      }

      /* Schulplan Content Section Flexbox Layout */
      .schulplan-content {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        margin-top: 20px;
      }

      .schulplan-content .school-schedule {
        flex: 2;
        min-width: 0;
      }

      .schulplan-content .school-summary-section {
        flex: 1;
        min-width: 250px;
      }

      /* Responsive breakpoints for tablet screens (768px-1024px) */
      @media (min-width: 768px) and (max-width: 1024px) {
        .schulplan-inputs {
          gap: 15px;
        }

        .schulplan-inputs .form-group input,
        .schulplan-inputs .form-group select {
          padding: 10px;
          font-size: 0.95rem;
        }

        .schulplan-content {
          gap: 15px;
        }

        .schulplan-content .school-summary-section {
          min-width: 200px;
        }

        .schulplan-header {
          margin: 15px 0;
        }

        .schulplan-header h3 {
          font-size: 1.3rem;
        }
      }

      /* Responsive breakpoints for mobile screens (<768px) */
      @media (max-width: 768px) {
        .schulplan-inputs {
          flex-direction: column;
          gap: 15px;
        }

        .schulplan-inputs .form-group input,
        .schulplan-inputs .form-group select {
          padding: 14px;
          font-size: 1rem;
        }

        .schulplan-content {
          flex-direction: column;
          gap: 15px;
        }

        .schulplan-content .school-summary-section {
          min-width: auto;
        }

        .schulplan-header {
          margin: 10px 0;
        }

        .schulplan-header h3 {
          font-size: 1.2rem;
        }

        /* Ensure the school plan widget adapts on mobile */
        .widget.school-plan-widget {
          grid-column: span 1;
          min-width: auto;
        }
      }

      /* Schulplan Styles */
      .schulplan-container {
        display: flex;
        gap: 30px;
        padding: 20px;
        max-width: 1400px;
        margin: 0 auto;
      }

      .schulplan-form {
        flex: 2;
        background: var(--widget-background);
        padding: 25px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
      }

      .schulplan-overview {
        flex: 1;
        background: var(--widget-background);
        padding: 25px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
        align-self: flex-start;
      }

      .form-row {
        display: flex;
        gap: 20px;
        margin-bottom: 25px;
      }

      .form-group {
        flex: 1;
      }

      .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text-color);
      }

      .form-control {
        width: 100%;
        padding: 12px;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        font-size: 14px;
        transition: border-color 0.3s, box-shadow 0.3s;
        box-sizing: border-box;
      }

      .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.1);
      }

      .schulplan-table-container {
        margin: 25px 0;
        overflow-x: auto;
        border-radius: var(--border-radius);
        border: 1px solid var(--border-color);
      }

      .schulplan-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        background: var(--widget-background);
      }

      .schulplan-table th,
      .schulplan-table td {
        padding: 15px 12px;
        text-align: center;
        vertical-align: middle;
      }

      .schulplan-table th {
        background: var(--primary-color);
        color: white;
        font-weight: 600;
        border-bottom: 2px solid var(--primary-hover);
      }

      .day-header {
        width: 18%;
        font-size: 15px;
      }

      .time-label {
        background: var(--background-color);
        font-weight: 600;
        color: var(--text-color);
        text-align: left;
        padding-left: 20px;
        width: 10%;
        border-right: 1px solid var(--border-color);
      }

      .time-cell {
        border: 1px solid var(--border-color);
        padding: 10px 8px;
        min-height: 80px;
        position: relative;
      }

      .time-select {
        padding: 6px 8px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 13px;
        background: white;
        margin: 2px;
        min-width: 65px;
      }

      .auswaehle-select {
        min-width: 90px;
      }

      .separator {
        margin: 0 4px;
        font-weight: bold;
        color: var(--text-muted);
      }

      .frei-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
      }

      .frei-button {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s;
      }

      .frei-button:hover {
        background: var(--primary-hover);
      }

      .status-indicator {
        font-family: "Inter", "Nunito Sans", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.2px;
        text-align: center;
      }

      .status-indicator.frei {
        background: #e8f5e8;
        color: #2d5a2d;
        border: 1px solid #c3e6c3;
      }

      .schulplan-actions {
        text-align: center;
        margin-top: 25px;
      }

      .btn {
        padding: 12px 30px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

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

      .btn-primary:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(58, 110, 165, 0.3);
      }

      .schulplan-overview h3 {
        color: var(--primary-color);
        margin-bottom: 20px;
        font-size: 18px;
        font-weight: 700;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 8px;
      }

      .overview-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .overview-item {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
      }

      .overview-item:last-child {
        border-bottom: none;
      }

      .overview-label {
        font-weight: 600;
        color: var(--text-color);
        min-width: 80px;
      }

      .overview-value {
        color: var(--text-muted);
        text-align: right;
        flex: 1;
        margin-left: 15px;
        font-size: 14px;
        line-height: 1.4;
      }

      /* Dark mode overrides for Schulplan */
      body.dark-mode .schulplan-form,
      body.dark-mode .schulplan-overview {
        background: var(--widget-background);
        border-color: var(--border-color);
      }

      body.dark-mode .form-control,
      body.dark-mode .time-select {
        background: var(--widget-background);
        color: var(--text-color);
        border-color: var(--border-color);
      }

      body.dark-mode .schulplan-table {
        background: var(--widget-background);
      }

      body.dark-mode .time-label {
        background: var(--background-color);
        color: var(--text-color);
      }

      body.dark-mode .time-cell {
        border-color: var(--border-color);
      }

      body.dark-mode .overview-item {
        border-bottom-color: var(--border-color);
      }

      /* Responsive design */
      @media (max-width: 1200px) {
        .schulplan-container {
          flex-direction: column;
          gap: 20px;
        }

        .schulplan-overview {
          align-self: stretch;
        }
      }

      @media (max-width: 768px) {
        .form-row {
          flex-direction: column;
          gap: 15px;
        }

        .schulplan-table-container {
          overflow-x: scroll;
        }

        .time-select {
          min-width: 55px;
          font-size: 12px;
        }

        .overview-item {
          flex-direction: column;
          gap: 5px;
        }

        .overview-value {
          text-align: left;
          margin-left: 0;
        }
      }

