* { box-sizing: border-box; }
    html, body { height: 100%; margin: 0; padding: 0; }
    
    body {
      font-family: 'Segoe UI', sans-serif;

      background: 
        linear-gradient(rgba(13,95,47,0.75), rgba(13,95,47,0.75)),
        url('image/bckg.png');

      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;

      margin: 0;
      padding: 0;
      height: 100vh;
      overflow: hidden;
    }
    
    .app-wrapper {
      height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* header fix (tak bergerak) */
    .raya-header {
      flex-shrink: 0;
    }

    /* content scroll sahaja */
    .main-content {
      flex: 1;
      overflow-y: auto;
    }
    .app-wrapper { height: 100%; width: 100%; }
    
    .raya-header {
      background: linear-gradient(135deg, #0d5f2f 0%, #1a8649 50%, #0d5f2f 100%);
      color: white;
      padding: 2rem 1rem;
      text-align: center;
      border-bottom: 4px solid #ffd700;
      box-shadow: 0 8px 20px rgba(13, 95, 47, 0.4);
    }
    
    .raya-header h1 {
      font-family: 'Poppins', sans-serif;
      font-size: 2rem;
      font-weight: 800;
      margin: 0.5rem 0;
      color: #ffd700;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .event-details {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      margin-top: 1rem;
    }
    
    .detail-item {
      background: rgba(255, 215, 0, 0.15);
      padding: 1rem;
      border-radius: 8px;
      border-left: 3px solid #ffd700;
    }
    
    .detail-label {
      font-size: 0.85rem;
      color: #e8f5e9;
      opacity: 0.85;
      font-weight: 600;
    }
    
    .detail-value {
      font-size: 1rem;
      color: #ffd700;
      font-weight: 700;
      margin-top: 0.25rem;
    }
    
    .section-container {
      margin: 2rem auto;
      background: white;
      border-radius: 12px;
      padding: 2rem;
      width: 100%;
      max-width: 900px; /* ← BESARKAN */
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .section-title {
      font-family: 'Poppins', sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: #0d5f2f;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      border-bottom: 2px solid #1a8649;
      padding-bottom: 1rem;
    }
    
    .form-group {
      margin-bottom: 1.5rem;
    }
    
    .form-label {
      display: block;
      font-weight: 600;
      color: #0d5f2f;
      margin-bottom: 0.5rem;
      font-size: 0.95rem;
    }
    
    .form-input {
      width: 100%;
      padding: 0.75rem;
      border: 2px solid #e0e0e0;
      border-radius: 6px;
      font-size: 1rem;
      transition: all 0.3s ease;
      font-family: inherit;
    }
    
    .form-input:focus {
      outline: none;
      border-color: #1a8649;
      box-shadow: 0 0 0 3px rgba(26, 134, 73, 0.1);
    }
    
    .btn {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: inherit;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      justify-content: center;
    }
    
    .btn-primary {
      background: linear-gradient(135deg, #0d5f2f 0%, #1a8649 100%);
      color: #ffd700;
    }
    
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(13, 95, 47, 0.4);
    }
    
    .btn-secondary {
      background: #e8f5e9;
      color: #0d5f2f;
    }
    
    .btn-secondary:hover {
      background: #c8e6c9;
    }
    
    .btn-danger {
      background: #e74c3c;
      color: white;
    }
    
    .btn-danger:hover {
      background: #c0392b;
    }
    
    .item-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    
    .item-card {
      background: #f9f9f9;
      border: 1px solid #e0e0e0;
      border-left: 4px solid #1a8649;
      padding: 1.5rem;
      border-radius: 8px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    .stat-card {
      background: linear-gradient(135deg, #166534, #22c55e);
      padding: 1rem;
      border-radius: 12px;
      color: white;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .stat-title {
      font-size: 0.9rem;
      opacity: 0.9;
    }

    .stat-value {
      font-size: 1.8rem;
      font-weight: bold;
      color: #fde047;
      margin-top: 5px;
    }

    /* GRID 2 COLUMN */
    .record-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    /* CARD */
    .record-card {
      background: #ffffff;
      padding: 0.5rem;
      border-radius: 12px;
      border: 1px solid #e5e7eb;
    }

    /* SCROLL AREA */
    .scroll-box {
      max-height: 400px;
      overflow-y: auto;
      padding-right: 5px;
    }

    /* SCROLLBAR NICE */
    .scroll-box::-webkit-scrollbar {
      width: 6px;
    }
    .scroll-box::-webkit-scrollbar-thumb {
      background: #22c55e;
      border-radius: 10px;
    }

    @media (max-width: 768px){
      .record-grid {
        grid-template-columns: 1fr;
      }
    }
    
    @media (max-width: 640px) {
      .item-card {
        flex-direction: column;
      }
      
      .item-card > div:last-child {
        width: 100%;
        margin-top: 1rem;
      }
    }
    
    .item-info h3 {
      margin: 0;
      color: #0d5f2f;
      font-weight: 700;
    }
    
    .item-info p {
      margin: 0.5rem 0 0 0;
      color: #666;
      font-size: 0.9rem;
    }
    
    .badge {
      display: inline-block;
      padding: 0.4rem 0.8rem;
      background: #1a8649;
      color: #ffd700;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 600;
      margin-top: 0.5rem;
    }
    
    .empty-state {
      text-align: center;
      padding: 2rem;
      color: #999;
    }
    
    .empty-state svg {
      width: 48px;
      height: 48px;
      margin-bottom: 1rem;
      opacity: 0.5;
    }
    
    .loading {
      display: inline-block;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: white;
      animation: spin 0.8s linear infinite;
    }
    
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    
    .tabs {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 2rem;
      border-bottom: 2px solid #e0e0e0;
    }
    
    .tab-btn {
      padding: 1rem 1.5rem;
      border: none;
      background: none;
      cursor: pointer;
      font-weight: 600;
      color: #999;
      border-bottom: 3px solid transparent;
      transition: all 0.3s ease;
      font-family: inherit;
    }
    
    .tab-btn.active {
      color: #0d5f2f;
      border-bottom-color: #1a8649;
    }
    
    .tab-content { display: none; }
    .tab-content.active { display: block; }
    
    .summary-box {
      background: linear-gradient(135deg, #0d5f2f 0%, #1a8649 100%);
      color: white;
      padding: 1.5rem;
      border-radius: 8px;
      margin-bottom: 1.5rem;
    }
    
    .summary-item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.75rem;
      font-size: 1.1rem;
    }
    
    .summary-label { opacity: 0.9; }
    .summary-value { font-weight: 700; color: #ffd700; }
    
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }
    
    .modal.active {
      display: flex;
    }
    
    .modal-content {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      max-width: 500px;
      width: 90%;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .modal-header {
      font-size: 1.3rem;
      font-weight: 700;
      color: #0d5f2f;
      margin-bottom: 1.5rem;
      border-bottom: 2px solid #1a8649;
      padding-bottom: 1rem;
    }
    
    .modal-footer {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
      justify-content: flex-end;
    }
    
    .password-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 2000;
      justify-content: center;
      align-items: center;
    }
    
    .password-overlay.active {
      display: flex;
    }
    
    .password-box {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      text-align: center;
    }
    
    .password-box h2 {
      color: #0d5f2f;
      margin-top: 0;
      font-family: 'Poppins', sans-serif;
    }
    
    .password-input {
      width: 100%;
      padding: 0.75rem;
      border: 2px solid #e0e0e0;
      border-radius: 6px;
      font-size: 1rem;
      margin: 1rem 0;
      font-family: inherit;
    }
    
    .password-input:focus {
      outline: none;
      border-color: #1a8649;
      box-shadow: 0 0 0 3px rgba(26, 134, 73, 0.1);
    }
    
    .password-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
      margin-top: 1.5rem;
    }
    
    @media (max-width: 640px) {
      .section-container {
        max-width: 100%;
        padding: 1rem;
      }
      
      .raya-header h1 {
        font-size: 1.5rem;
      }
      
      .event-details {
        grid-template-columns: 1fr;
      }
      
      .tabs {
        flex-wrap: wrap;
      }
      
      .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
      }
      
      .form-input, .form-label {
        font-size: 1rem;
      }
      
      .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
      }
    }