* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
            min-height: 100vh;
        }
        
        
        .header {
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 12px 16px;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            gap: 12px;
        }
        
        @media (min-width: 640px) {
            .header {
                padding: 16px 24px;
            }
        }
        
        @media (max-width: 768px) {
            .header {
                display: flex !important;
                flex-direction: column !important;
                grid-template-columns: none !important;
            }
            
            .logo-container {
                display: none !important;
            }
            
            .academy-name {
                order: 1;
                width: 100%;
                text-align: center;
            }
            
            .nav-container {
                order: 2;
                width: 100%;
                justify-content: center;
            }
            
            .user-info,
            .hamburger-btn {
                display: none !important;
            }
        }
    
        .logo-container {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            flex-shrink: 0;
        }
        
        .logo-container svg {
            width: 100%;
            max-width: 300px;
            height: auto;
        }
        
        .logo-container img {
            width: 100%;
            max-width: 300px;
            height: auto;
        }
        
        @media (min-width: 1024px) {
            .logo-container svg,
            .logo-container img {
                max-width: var(--logo-width, 300px);
            }
        }
        
        .academy-name {
            font-size: 16px;
            font-weight: 600;
            color: #1F2937;
            margin: 0;
        }
        
        @media (min-width: 768px) {
            .academy-name {
                font-size: 20px;
            }
        }
        
        @media (min-width: 1024px) {
            .academy-name {
                font-size: 24px;
            }
        }

        
        .welcome-banner-container {
            width: 100%;
            display: flex;
            justify-content: center;
            padding: 0px;
            box-sizing: border-box;
        }

        .welcome-banner-container svg {
            width: 500px;
            height: auto;
            display: block;
        }

        
        @media (max-width: 768px) {
            .welcome-banner-container {
                padding: 15px 10px;
            }
            
            .welcome-banner-container svg {
                width: 100%;
                max-width: 100%;
                min-width: 280px;
            }
        }

        
        .nav-container {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        
        @media (min-width: 640px) {
            .nav-container {
                gap: 12px;
            }
        }
        
        @media (min-width: 768px) {
            .nav-container {
                gap: 16px;
            }
        }
        
        .nav-desktop {
            display: none;
        }
        
        .nav-link {
            padding: 6px 12px;
            color: #374151;
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.2s ease;
            font-weight: 500;
            font-size: 14px;
            white-space: nowrap;
        }
        
        @media (min-width: 1024px) {
            .nav-link {
                padding: 8px 16px;
                font-size: 16px;
            }
        }
        
        .nav-link:hover {
            background: #F3F4F6;
            color: #4F46E5;
        }
        
        .nav-link.active {
            background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
            color: #4F46E5;
        }
        
        
        .hamburger-btn {
            background: white;
            border: 2px solid #E5E7EB;
            border-radius: 8px;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }
        
        @media (min-width: 640px) {
            .hamburger-btn {
                width: 48px;
                height: 48px;
            }
        }
        
        .hamburger-btn:hover {
            border-color: #4F46E5;
        }
        
        .hamburger-btn.active {
            background: linear-gradient(135deg, #4F46E5, #7C3AED);
            border-color: #4F46E5;
        }
        
        .hamburger-icon {
            width: 18px;
            height: 14px;
            position: relative;
        }
        
        .hamburger-line {
            width: 100%;
            height: 2px;
            background: #6B7280;
            border-radius: 1px;
            position: absolute;
            transition: all 0.3s ease;
        }
        
        .hamburger-btn.active .hamburger-line {
            background: white;
        }
        
        .hamburger-line:nth-child(1) { top: 0; }
        .hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
        .hamburger-line:nth-child(3) { bottom: 0; }
        
        .hamburger-btn.active .hamburger-line:nth-child(1) {
            top: 50%;
            transform: translateY(-50%) rotate(45deg);
        }
        
        .hamburger-btn.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger-btn.active .hamburger-line:nth-child(3) {
            bottom: 50%;
            transform: translateY(50%) rotate(-45deg);
        }
        
        
        .dropdown-menu {
            position: fixed;
            top: 64px;
            right: 0;
            left: 0;
            background: white;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            opacity: 0;
        }
        
        @media (min-width: 640px) {
            .dropdown-menu {
                top: 78px;  
                left: auto;
                right: 0;
                min-width: 250px;
                border-radius: 0 0 0 12px;
            }
        }
        
        .dropdown-menu.open {
            max-height: 500px;
            opacity: 1;
        }
        
        .menu-items:first-child {
            padding: 0 0;
        }

        .menu-items {
            padding: 8px 0;
        }
        
        .menu-item {
            padding: 12px 24px;
            color: #374151;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.2s ease;
            cursor: pointer;
            border-left: 3px solid transparent;
            -webkit-tap-highlight-color: transparent;
            min-height: 48px;
        }
        
        .menu-item:hover {
            background: #F9FAFB;
            border-left-color: #4F46E5;
            color: #4F46E5;
        }
        
        .menu-icon {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        
        .menu-divider {
            height: 1px;
            background: #E5E7EB;
            margin: 8px 16px;
        }
        
        .menu-item.logout {
            color: #DC2626;
        }
        
        .menu-item.logout:hover {
            background: #FEF2F2;
            border-left-color: #DC2626;
        }
        
        
        .user-info {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.2s ease;
            margin-left: auto;
        }
        
        .user-name {
            font-weight: 500;
            color: #374151;
            display: none;
            text-align: right;
        }
        
        @media (min-width: 640px) {
            .user-name {
                display: block;
            }
        }
        
        
        .donate-btn {
            background: linear-gradient(135deg, #F59E0B, #D97706);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
            position: relative;
            overflow: hidden;
            white-space: nowrap;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }
        
        @media (min-width: 640px) {
            .donate-btn {
                padding: 10px 20px;
                font-size: 14px;
            }
        }
        
        .donate-btn::before {
            content: '❤️';
            margin-right: 6px;
            animation: heartbeat 1.5s ease-in-out infinite;
        }
        
        .donate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
            background: linear-gradient(135deg, #FBBF24, #F59E0B);
        }
        
        .donate-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .donate-btn:active::after {
            width: 200px;
            height: 200px;
        }
        
        @keyframes heartbeat {
            0%, 100% { transform: scale(1); }
            10%, 30% { transform: scale(1.1); }
            20%, 40% { transform: scale(1); }
        }
        
        
        .login-btn {
            background: linear-gradient(135deg, #4F46E5, #7C3AED);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
            white-space: nowrap;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        @media (min-width: 640px) {
            .login-btn {
                padding: 10px 20px;
                font-size: 14px;
            }
        }
        
        .login-btn::before {
            content: '👤';
            filter: brightness(0) invert(1);
        }
        
        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
            background: linear-gradient(135deg, #6366F1, #8B5CF6);
        }
        
        .login-btn:active {
            transform: translateY(0);
        }
        
        
        .signup-btn {
            background: linear-gradient(135deg, #10B981, #059669);
            color: white;
            border: 2px solid transparent;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
            white-space: nowrap;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        @media (min-width: 640px) {
            .signup-btn {
                padding: 10px 20px;
                font-size: 14px;
            }
        }

        .signup-btn::before {
            content: '✓';
            font-weight: bold;
            font-size: 16px;
        }

        .signup-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4), 0 0 0 3px rgba(16, 185, 129, 0.1);
            background: linear-gradient(135deg, #34D399, #10B981);
            border-color: rgba(255, 255, 255, 0.2);
        }

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

        
        .show-if-true {
            display: flex !important;
        }
        
        .hide-if-false {
            display: none !important;
        }
        
        
        .main-content {
            max-width: 1480px;
            margin: 0 auto;
            padding: 20px 8px;
        }
        
        @media (min-width: 640px) {
            .main-content {
                padding: 30px 12px;
            }
        }
        
        @media (min-width: 1024px) {
            .main-content {
                padding: 20px 16px;
            }
        }
        
        
        .footer {
            background: white;
            border-top: 1px solid #E5E7EB;
            padding: 24px 16px;
            margin-top: 40px;
        }
        
        @media (min-width: 640px) {
            .footer {
                padding: 32px 24px;
                margin-top: 60px;
            }
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 24px;
        }
        
        @media (min-width: 640px) {
            .footer-content {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 32px;
            }
        }
        
        .footer-section h3 {
            font-size: 16px;
            font-weight: 600;
            color: #1F2937;
            margin-bottom: 16px;
        }
        
        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .footer-link {
            color: #6B7280;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s ease;
        }
        
        .footer-link:hover {
            color: #4F46E5;
        }
        
        .footer-bottom {
            text-align: center;
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid #E5E7EB;
            color: #9CA3AF;
            font-size: 14px;
        }
        
        
        .page-content {
            
        }
        
        .content-card-wrapper {
            background: white;
            border-radius: 12px;
            padding: 6px 6px 20px 6px;
            margin-top: 0px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        
        .policy-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .policy-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .policy-content {
            background: white;
            border-radius: 12px;
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            animation: slideUp 0.3s ease;
        }
        
        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .policy-header {
            padding: 24px;
            border-bottom: 1px solid #E5E7EB;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            background: white;
            border-radius: 12px 12px 0 0;
            z-index: 10;
        }
        
        .policy-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: #1F2937;
            margin: 0;
        }
        
        .policy-close {
            background: #F3F4F6;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 20px;
            color: #6B7280;
        }
        
        .policy-close:hover {
            background: #E5E7EB;
            color: #1F2937;
        }
        
        .policy-body {
            padding: 24px;
            color: #374151;
            line-height: 1.6;
        }
        
        .policy-body h3 {
            font-size: 18px;
            font-weight: 600;
            color: #1F2937;
            margin-top: 24px;
            margin-bottom: 12px;
        }
        
        .policy-body h3:first-child {
            margin-top: 0;
        }
        
        .policy-body p {
            margin-bottom: 12px;
        }
        
        .policy-body ul {
            margin-left: 24px;
            margin-bottom: 12px;
        }
        
        .policy-body li {
            margin-bottom: 8px;
        }
        
        .policy-date {
            font-style: italic;
            color: #6B7280;
            margin-bottom: 16px;
        }
        
        
        
        @media screen and (max-width: 768px) {
            
            .lessons-log-entry table {
                width: 100%;
            }
            
            .lessons-log-entry input[type="text"],
            .lessons-log-entry select,
            .lessons-log-entry textarea {
                font-size: 16px !important; 
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
            }
            
            .lessons-log-entry textarea {
                min-height: 100px;
            }
            
            .lessons-log-entry input[type="button"] {
                width: 100%;
                padding: 12px;
                font-size: 16px;
            }
            
            
            #compliance-table-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            #compliance-table {
                min-width: 600px;
            }
            
            
            #lessons-table {
                min-width: 600px;
            }
            
            
            .action-buttons {
                min-width: 32px;
                min-height: 32px;
                font-size: 14px;
            }
            
            
            #lesson-filters select,
            #lesson-filters input[type="text"] {
                font-size: 16px;
            }
        }
      body { font-family: Verdana, Arial, sans-serif; font-size: 90%; }
      table { border-spacing: 10px 0; }
      th { border-bottom: 2px solid black; }
      
      .action-buttons { padding: 0px 0px; width: 1.4em; height: 1.4em; font-size: 0.8em; cursor: pointer;
        text-decoration: none; display: inline-block; text-align: center; border: 1px solid black; border-radius: 3px; }
      .action-buttons-empty { padding: 0px 0px; width: 1.4em; display: inline-block; }
      .lesson-td { 
        padding-top: 3px; 
        padding-right: 8px; 
        padding-bottom: 3px; 
        border-top: 1px black solid;
      }
      
      
      .date-box {
        text-align: center;
        margin: 0.2em 0;
      }
      .date-container {
        display: inline-block;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 4px 12px;
        background: #f8f8f8;
      }
      .date-weekday {
        font-size: 0.8em;
        color: #666;
        
        margin-bottom: 2px;
      }
      .date-number {
        font-weight: bold;
      }

      
      .custom-checkbox {
          display: inline-block;
          position: relative;
          margin-right: 2px;
      }
      .custom-checkbox input {
          display: none;
      }
      .checkmark {
          width: 0.8em;
          height: 0.8em;
          border: 2px solid red;
          background-color: red;
          display: inline-block;
          position: relative;
          cursor: pointer;
      }
      .custom-checkbox input:checked + .checkmark {
          background-color: green;
          border: 2px solid green;
      }
      .checkmark::after {
          content: '';
          position: absolute;
          left: 0.1em;
          top: 0em;
          width: 0.25em;
          height: 0.4em;
          border: solid white;
          border-width: 0 2px 2px 0;
          transform: rotate(45deg);
          opacity: 0;
      }
      .custom-checkbox input:checked + .checkmark::after {
          opacity: 1;
      }

      .lessons-log-entry * {
          margin: 1px 2px;
      }

      

      :root {
          
          --page-header-height: 105px;
          
          
          --filter-header-height: 64px;
          
          
          --date-header-height: 55px;
          
          
          --compliance-header-top: var(--page-header-height);
          --filter-header-top: var(--page-header-height);
          --date-header-top: var(--filter-header-top); 
          --lessons-header-top: calc(var(--page-header-height) + var(--filter-header-height));
      }
                              
      
      table {
          border-collapse: separate;
          border-spacing: 0;
          position: relative;
      }

      
      #lessons-table {
          overflow: visible;
      }

      #lessons-table tbody {
          overflow: visible;
      }

      
      table:has(th[colspan="2"]:first-child) tr:first-child th {
          position: sticky;
          top: var(--compliance-header-top);
          z-index: 100;
          background-color: white;
          padding: 8px 8px;
          border-bottom: 2px solid #888;
           
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      }
      
      
      table:has(th[colspan="2"]:first-child) tr:first-child th:last-child {
          border-right: none;
      }

      
      #lessons-table tr.date-hr-row {
          position: relative;
          z-index: 1;
      }
      #lessons-table tr.date-hr-row td {
          position: relative;
          z-index: 1;
          background-color: transparent;
          padding: 0;
          border: none;
      }
      #lessons-table tr.date-hr-row td hr {
          position: relative;
          z-index: 1;
      }

      #lessons-table tr.date-header-row td {
          position: sticky !important;
          top: var(--filter-header-top) !important;
          z-index: 151 !important;
          background-color: transparent !important;
          padding: 0px 0 15px 0 !important;
          border: none !important;
          box-shadow: none !important;
          pointer-events: none !important;
      }

      #lessons-table tr.date-header-row .date-box {
          margin-left: 16px;  
          background-color: white;
          padding: 2px 2px;  
          pointer-events: auto;
          position: relative;
          z-index: 2;
          margin-top: 12px;
      }

      #lessons-table tr.date-header-row .date-container {
          background: #6540e95c !important;
          border: 1px solid #000000 !important;
          display: inline-block !important;
          padding: 8px 16px;
          border-radius: 4px;
          font-weight: bold;
          width: 154px; 
          text-align: center; 
      }

      
      #lesson-filters {
          position: sticky;
          top: var(--filter-header-top);
          z-index: 150;
          background-color: white;
          isolation: isolate;
          transform: translateY(1px);
      }
                              
      
      table:not(.data-table):has(th:first-child:not([colspan])) tr:first-child th {
          position: sticky;
          top: var(--lessons-header-top);
          z-index: 130;
          background-color: white;
          padding: 8px 8px;
          border-bottom: 2px solid #888;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
      }
      
      
      table:not(.data-table):has(th:first-child:not([colspan])) tr:first-child th:last-child {
          border-right: none;
      }

      
      .data-table thead tr th {
          position: sticky !important;
          top: var(--page-header-height) !important;
          z-index: 100 !important;
          background-color: white !important;
          padding: 10px 8px !important;
          border-bottom: 2px solid #333 !important;
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
      }

      
      table[align="center"][width="100%"] tr:first-child th {
          position: sticky !important;
          top: var(--page-header-height) !important;
          z-index: 100 !important;
          background-color: blue !important;
          color: white !important;
          padding: 10px 8px !important;
      }
          
      
      table tr:has(td[style*="background-color: #c7baf759"]) {
          position: relative;
      }

      table tr:has(td[style*="background-color: #c7baf759"]) td {
          background-color: #c7baf759 !important;
      }

      
      .compliance-subject-cell {
          position: relative;
      }
      .compliance-tooltip {
          display: none;
          position: absolute;
          left: 100%;
          top: 50%;
          transform: translateY(-50%);
          margin-left: 8px;
          background: linear-gradient(135deg, #4F46E5, #7C3AED);
          color: white;
          padding: 10px 14px;
          border-radius: 8px;
          font-size: 12px;
          white-space: nowrap;
          z-index: 1000;
          box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
          pointer-events: none;
          line-height: 1.5;
      }
      .compliance-tooltip::before {
          content: '';
          position: absolute;
          left: -6px;
          top: 50%;
          transform: translateY(-50%);
          border: 6px solid transparent;
          border-right-color: #4F46E5;
          border-left: none;
      }
      .compliance-subject-cell:hover .compliance-tooltip {
          display: block;
      }
          
      

      
      html {
          
      }

      body {
          scroll-padding-top: calc(var(--page-header-height) + 90px);
      }

      table td {
          background-color: white;
          position: relative;
      }


      


      
