:root {
      --elite-blue-deep: #0a192f;
      --elite-blue-primary: #1e3a8a;
      --elite-blue-accent: #2563eb;
      --elite-bg-gradient: linear-gradient(135deg, #0a192f 0%, #1e3a8a 100%);
      --elite-card-bg: #ffffff;
      --elite-border: #e2e8f0;
      --elite-gold: #c69214;
      --elite-gold-light: #f3c65d;
      --sidebar-width: 290px;
    }

    @keyframes floatLogo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

.logo-animated {
  display: inline-block !important;
  animation: floatLogo 3s ease-in-out infinite !important;
  will-change: transform;
}

    * { box-sizing: border-box; }

    body { 
      background: var(--elite-bg-gradient); 
      color: #1e293b; 
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
      min-height: 100vh; 
      display: flex; 
      flex-direction: column; 
      margin: 0;
      overflow-x: hidden;
    }
    
    /* Background utama halaman */
    @media (min-width: 769px) {
      body {
        background-image: url('background_login.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
      }
    }

    /* Penataan dua kolom menyatu di tengah layar */
    @media (min-width: 992px) {
      #mainContainerWrapper {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        margin: 0;
        padding: 0;
      }
      #mainAppWrapper {
        display: flex;
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
      }
      #loginContainer {
        flex: 1;
        height: 100vh;
        display: flex;
        align-items: flex-start; /* Mengunci posisi kontainer ke atas */
        justify-content: center;
        padding: 2rem 2rem 1rem 2rem;
        overflow-y: auto;
        
        background-image: url('panel_kiri_bg.png');
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
      }
      #loginContainer .clean-card { 
        background: transparent !important; 
        backdrop-filter: none !important; 
        border: none !important; 
        box-shadow: none !important; 
        padding: 0.5rem 1rem 1rem 1rem !important; /* Mengurangi padding atas card */
        width: 100%; 
        max-width: 440px;
        margin: 0 auto;
      }
    
      #loginBannerContainer {
        flex: 1;
        height: 100vh;
        overflow: hidden;
        padding: 0;
        margin: 0;
      }
      #loginBannerContainer img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        object-position: center;
      }
    }

    @media (max-width: 991px) {
      #mainContainerWrapper {
        padding: 1.5rem;
      }
      #mainAppWrapper {
        display: flex;
        flex-direction: column;
      }
      #loginBannerContainer {
        display: none !important;
      }
    }

    /* Menyembunyikan banner di HP secara otomatis */
    @media (max-width: 991px) {
      #loginBannerContainer {
        display: none !important;
      }
    }
   
    main.container { 
      position: relative; 
      z-index: 5; 
      flex: 1; 
      width: 100%; 
      max-width: 1200px; 
      padding: 2rem 1rem; 
    }

    .app-layout {
      display: flex;
      width: 100vw;
      min-height: 100vh;
      margin: 0;
      padding: 0;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1000;
      background: #ffffff;
      transition: all 0.2s ease;
    }

    .sidebar-menu {
  width: var(--sidebar-width);
  /* Gradasi sudut 180° dari Dark Navy (#061325) ke Deep Blue Navy (#132d5e) */
  background: linear-gradient(180deg, #061325 0%, #0d2346 50%, #132d5e 100%) !important;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.2s ease, width 0.2s ease;
}

    .app-layout.sidebar-hidden .sidebar-menu {
      transform: translateX(-100%);
      width: 0;
      overflow: hidden;
      border-right: none;
    }

    .sidebar-toggle-btn {
      position: fixed;
      top: 15px;
      left: 15px;
      z-index: 1100;
      background: var(--elite-blue-primary);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 8px;
      padding: 0.5rem 0.75rem;
      font-size: 0.95rem;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      transition: all 0.15s;
      display: none;
    }
    .sidebar-toggle-btn:hover {
      background: var(--elite-blue-accent);
      color: #fff;
    }

    .sidebar-brand {
  padding: 0.85rem 1rem 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.sidebar-brand-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sidebar-brand img {
  width: 100%;
  height: auto;
  max-height: 80px; /* Naik menjadi 80px (proporsional antara 68px dan 105px) */
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

    .sidebar-user-info {
      padding: 1rem 1.4rem;
      background: rgba(255, 255, 255, 0.04);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-user-name {
      font-weight: 700;
      color: #ffffff;
      font-size: 1.02rem;
      margin-bottom: 3px;
      word-break: break-word;
    }

    .sidebar-user-sub {
      font-size: 0.84rem;
      color: var(--elite-gold-light);
      word-break: break-word;
      line-height: 1.35;
      font-weight: 500;
    }

    .sidebar-nav-list {
      list-style: none;
      padding: 0.5rem 0;
      margin: 0;
      flex: 1;
      overflow-y: auto;
    }

    .sidebar-nav-item {
      padding: 0.75rem 1.5rem;
      display: flex;
      align-items: center;
      gap: 12px;
      color: #94a3b8;
      font-weight: 600;
      font-size: 0.92rem;
      cursor: pointer;
      transition: all 0.15s;
      border-left: 3px solid transparent;
      text-decoration: none;
    }

    .sidebar-nav-item:hover, .sidebar-nav-item.active {
      color: #ffffff;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.05) 100%);
  border-left-color: var(--elite-gold);
}

    .sidebar-nav-item i {
      width: 20px;
      text-align: center;
    }

    .sidebar-footer {
      padding: 0.8rem 1.2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      flex-direction: column;
      gap: 6px;
      background: transparent;
    }

    .sidebar-creator-badge {
      font-size: 0.75rem;
      color: var(--elite-gold-light);
      text-align: center;
      letter-spacing: 0.5px;
      font-weight: normal;
      opacity: 0.85;
    }

    .sidebar-footer .btn-logout-sidebar {
      background-color: rgba(239, 68, 68, 0.15);
      color: #f87171;
      border: 1px solid rgba(239, 68, 68, 0.3);
      width: 100%;
      padding: 0.55rem;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      transition: all 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .sidebar-footer .btn-logout-sidebar:hover {
      background-color: #ef4444;
      color: #fff;
    }

    .dashboard-main-wrapper {
      flex: 1;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      min-width: 0;
      height: 100vh;
      overflow-y: auto;
      padding: 2rem;
    }
    
    .clean-card { 
      background: rgba(255, 255, 255, 0.92); /* Putih semi-transparan */
      backdrop-filter: blur(10px); /* Efek kaca buram elegan */
      border: 1px solid rgba(255, 255, 255, 0.6); 
      border-radius: 16px; 
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18); 
      padding: 2rem; 
      margin-bottom: 1.5rem; 
      width: 100%; 
      word-break: break-word; 
    }
    .card-title-badge { 
      display: inline-block; 
      width: 4px; 
      height: 22px; 
      background-color: var(--elite-gold); 
      margin-right: 10px; 
      vertical-align: middle; 
      border-radius: 2px; 
    }
    
    .form-label { 
      font-weight: 600; 
      color: var(--elite-blue-primary); 
      font-size: 0.88rem; 
    }
    .form-control, .form-select { 
      border: 1.5px solid var(--elite-border); 
      border-radius: 10px; 
      padding: 0.65rem 0.9rem; 
      font-weight: 500; 
      font-size: 0.92rem; 
      background-color: #f8fafc; 
      color: #1e293b; 
      width: 100%; 
      transition: all 0.15s;
    }
    .form-control:focus, .form-select:focus { 
      border-color: var(--elite-blue-accent); 
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); 
      background-color: #fff; 
    }
    
    option.pelatihan-aktif { background-color: #d1fae5; color: #065f46; font-weight: bold; }

    .btn-custom { 
      background: linear-gradient(135deg, var(--elite-blue-primary) 0%, var(--elite-blue-deep) 100%); 
      color: #ffffff; 
      font-weight: 600; 
      padding: 0.75rem 1.5rem; 
      border-radius: 10px; 
      border: 1px solid var(--elite-blue-accent); 
      box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2); 
      transition: all 0.15s ease; 
      width: 100%; 
    }
    .btn-custom:hover { 
      background: linear-gradient(135deg, var(--elite-blue-accent) 0%, var(--elite-blue-primary) 100%); 
      color: #fff; 
      transform: translateY(-1px); 
    }
    
    .upload-grid { 
      display: grid; 
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
      gap: 1.2rem; 
      width: 100%; 
    }
    .upload-box { 
      background-color: #f8fafc; 
      border: 1px solid var(--elite-border); 
      border-left: 4px solid var(--elite-blue-primary); 
      border-radius: 12px; 
      padding: 1.2rem; 
      display: flex; 
      flex-direction: column; 
      justify-content: space-between; 
      transition: all 0.15s ease; 
      width: 100%; 
    }
    .upload-box:hover { 
      box-shadow: 0 8px 25px rgba(30, 58, 138, 0.06); 
      border-color: #cbd5e1; 
    }
    .upload-completed { 
      background-color: #f0fdf4 !important; 
      border-left-color: #16a34a !important; 
      border-color: #bbf7d0 !important; 
    }
    
    .drop-zone {
      border: 2px dashed #cbd5e1;
      border-radius: 10px;
      padding: 1rem;
      text-align: center;
      background-color: #ffffff;
      cursor: pointer;
      transition: all 0.15s ease;
      margin-bottom: 0.5rem;
    }
    .drop-zone:hover, .drop-zone.dragover {
      border-color: var(--elite-blue-accent);
      background-color: #eff6ff;
    }
    .drop-zone i {
      font-size: 1.5rem;
      color: var(--elite-blue-primary);
      margin-bottom: 0.3rem;
    }
    .drop-zone p {
      font-size: 0.78rem;
      color: #64748b;
      margin: 0;
      font-weight: 500;
    }

    .nav-pills { 
      background: #e2e8f0; 
      border-radius: 12px; 
      padding: 5px; 
    }
    .nav-pills .nav-item { 
      flex: 1 1 0%; 
      text-align: center; 
    }
    .nav-pills .nav-link { 
      color: var(--elite-blue-primary); 
      font-weight: 600; 
      border-radius: 10px; 
      padding: 0.6rem 0.75rem; 
      background: transparent; 
      font-size: 0.85rem; 
      width: 100%; 
      white-space: normal;
      word-break: break-word;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
    }
    .nav-pills .nav-link.active { 
      background: linear-gradient(135deg, var(--elite-blue-primary) 0%, var(--elite-blue-deep) 100%); 
      color: #ffffff; 
      box-shadow: 0 4px 15px rgba(30, 58, 138, 0.25); 
    }
    .tab-content {
      min-height: 380px; 
    }
    
    @keyframes pulseGlow {
      0% { opacity: 0.85; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.03); text-shadow: 0 0 8px rgba(198, 146, 20, 0.4); }
      100% { opacity: 0.85; transform: scale(1); }
    }
    .animated-progress-val { display: inline-block; animation: pulseGlow 2s infinite ease-in-out; }
    .progress-bar-animated-stripes {
      background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
      background-size: 1rem 1rem;
      animation: progress-bar-stripes 1s linear infinite;
    }

    @media (max-width: 768px) {
      body.logged-in-mobile { background: #ffffff !important; }
      .app-layout { display: block !important; position: static !important; width: 100% !important; height: auto !important; background: #ffffff !important; }
      .sidebar-menu { display: none !important; }
      .sidebar-toggle-btn { display: none !important; }
      .dashboard-main-wrapper { display: block !important; width: 100% !important; height: auto !important; padding: 0.75rem !important; background: #ffffff !important; }
      .mobile-header-center-wrap { display: flex !important; }
      
      .clean-card {
        padding: 1rem !important;
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
      }
      .table-responsive {
        border: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
      }
      table.table {
        font-size: 0.8rem !important;
        white-space: nowrap;
      }
      table.table th, table.table td {
        padding: 0.5rem 0.4rem !important;
      }
    }

    .mobile-header-center-wrap {
      display: none;
    } 
  
  .preview-loader-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.sleek-spinner-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sleek-spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: var(--elite-blue-accent);
  animation: spinSmooth 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.sleek-spinner-icon {
  font-size: 1.1rem;
  color: var(--elite-blue-primary);
  animation: pulseScale 1.6s ease-in-out infinite;
}

@keyframes spinSmooth {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseScale {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes shimmerProgress {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

.loader-text-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--elite-blue-deep);
  margin: 0;
  letter-spacing: -0.2px;
}

.loader-text-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}