    
    :root {
        --mybgcolor: #f9f9fb;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--mybgcolor);
      color: #212529;
      max-width: 1024px;
      margin: 0 auto;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      /* height: 100vh; */
      padding-bottom: 70px; /* space for fixed bottom nav */
    }

    .base-red {
      --bs-primary: #dc3545;
      --bs-primary-rgb: 220, 53, 69;
    }
    .app-header {
      padding: 1rem 1rem 0.5rem 1rem;
      background-color: var(--mybgcolor) !important;
      position: sticky !important; 
      top: 0; 
      z-index: 9;
    }
    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.5) !important; /* gelap tapi no blur */
        backdrop-filter: none !important; /* hilangkan blur jika ada */
        background-color: transparent !important;
    }
    .modal-backdrop.show {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .app-header.red-mode {
      --mybgcolor: #d32f2f;
      color: white;
    }


    .app-header .profile-circle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-color: #dc3545;
      color: white;
      font-weight: 700;
      font-size: 1rem;
      line-height: 36px;
      text-align: center;
      user-select: none;
    }
    .app-greeting {
      font-weight: 600;
      font-size: 1.1rem;
      margin-left: 0.5rem;
    }
    .app-header .bell-icon {
      width: 20px;
      height: 20px;
      stroke: #212529;
      cursor: pointer;
    }
    .total-balance-section {
      padding: 0 1rem;
      margin-top: 0.5rem;
    }
    .total-balance-label {
      font-weight: 600;
      font-size: 0.9rem;
      text-transform: uppercase;
      color: #6c757d;
      letter-spacing: 0.05em;
    }
    .total-balance-amount {
      font-size: 2rem;
      font-weight: 700;
      margin-top: 0.05rem;
      letter-spacing: 0.05em;
      user-select: text;
    }
    /* Cards scroll container */
    .cards-container {
      padding: 0 1rem;
      margin-top: 1rem;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none; /* Firefox */
    }
    .cards-container::-webkit-scrollbar {
      display: none;
    }
    .card-item {
      flex: 0 0 auto;
      width: 200px;
      height: 120px;
      border-radius: 12px;
      color: white;
      padding: 1rem 1.2rem 1.2rem 1.2rem;
      margin-right: 1rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-weight: 600;
      position: relative;
      user-select: none;
    }
    .card-item .card-brand {
      font-weight: 700;
      font-size: 1.05rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .card-amount {
      font-size: 1.3rem;
      margin: 0.3rem 0 0.1rem 0;
      font-weight: 700;
      user-select: text;
    }
    .card-bottom-row {
      font-weight: 400;
      font-size: 0.8rem;
      display: flex;
      justify-content: space-between;
      opacity: 0.85;
      user-select: text;
      font-family: monospace;
    }
    .card-salary {
      font-weight: 600;
      margin-top: 0.2rem;
    }
    .card-violet {
      background: linear-gradient(135deg, #7765f0, #afa7ff);
      box-shadow: 0 6px 12px rgba(119, 101, 240, 0.4);
    }
    .card-black {
      background: linear-gradient(135deg, #000000, #3a337c);
      box-shadow: 0 6px 12px rgba(58, 51, 124, 0.5);
    }
    .card-pink {
      background: linear-gradient(135deg, #f05393, #f17db0);
      box-shadow: 0 6px 12px rgba(241, 125, 176, 0.5);
    }
    .cards-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 1rem 0.150rem 1rem;
      margin-top: 1.25rem;
      font-weight: 600;
      font-size: 0.8rem;
      text-transform: uppercase;
      color: #6c757d;
      letter-spacing: 0.05em;
    }
    .cards-add {
      color: #dc3545;
      font-weight: 600;
      cursor: pointer;
      user-select: none;
    }
    /* Finance section */
    .finance-section {
      margin-top: 2rem;
      padding: 0 1rem;
    }
    .finance-items {
      display: flex;
      overflow-x: auto;
      gap: 0.75rem;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 0.5rem;
    }
    .finance-items::-webkit-scrollbar {
      display: none;
    }
    .finance-card {
      background-color: #f8f9fa;
      border-radius: 12px;
      min-width: 110px;
      padding: 1rem 1rem 1.2rem 1rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
      user-select: none;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    .finance-card:hover {
      background-color: #f1e2e4;
    }
    .finance-icon {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      padding: 6px;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
    }
    .finance-icon.bonuses {
      background-color: #7765f0;
    }
    .finance-icon.analysis {
      background-color: #4dc3f7;
    }
    .finance-icon.payment {
      background-color: #5a4de7;
    }
    .finance-icon.investment {
      background-color: #ea6599;
    }
    .finance-label {
      font-size: 0.8rem;
      font-weight: 500;
      text-align: center;
      color: #212529;
    }
    /* Last transactions */
    .transactions-header {
      margin-top: 2rem;
      padding: 0 1rem 0.3rem 1rem;
      font-weight: 600;
      font-size: 0.8rem;
      text-transform: uppercase;
      color: #6c757d;
      display: flex;
      justify-content: space-between;
      align-items: center;
      letter-spacing: 0.05em;
      user-select: none;
    }
    .transactions-seeall {
      color: #dc3545;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      user-select: none;
      user-drag: none;
    }
    .transaction-item {
      display: flex;
      justify-content: space-between;
      padding: 0.75rem 1rem;
      background: white;
      border-radius: 10px;
      margin: 0 1rem 0.75rem 1rem;
      box-shadow: 0 3px 9px rgba(220, 53, 69, 0.12);
      align-items: center;
      cursor: default;
      user-select: none;
    }
    .transaction-left {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex: 1 1 auto;
      min-width: 0;
    }
    .transaction-icon {
      width: 40px;
      height: 40px;
      background-color: #212529;
      border-radius: 10px;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      flex-shrink: 0;
    }
    .transaction-info {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-width: 0;
    }
    .transaction-title {
      font-weight: 600;
      font-size: 1rem;
      color: #212529;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .transaction-subtitle {
      font-weight: 400;
      font-size: 0.8rem;
      color: #6c757d;
      user-select: text;
      margin-top: 0.1rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .transaction-amount {
      font-weight: 700;
      font-size: 1rem;
      min-width: 65px;
      text-align: right;
      user-select: text;
      flex-shrink: 0;
    }
    .transaction-amount.negative {
      color: #dc3545;
    }
    .transaction-amount.positive {
      color: #28a745;
    }
    .transaction-type {
      font-weight: 400;
      font-size: 0.75rem;
      color: #6c757d;
      text-align: right;
      user-select: text;
    }
    /* Bottom navigation */
    .bottom-nav {
      margin: 0 auto;
      max-width: 1024px;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 58px;
      background-color: white;
      box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
      display: flex;
      justify-content: space-around;
      align-items: center;
      font-size: 0.85rem;
      font-weight: 600;
      user-select: none;
      z-index: 1000;
    }
    .bottom-nav .nav-item {
      color: #6c757d;
      text-align: center;
      flex: 1 1 auto;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.15rem;
      transition: color 0.3s ease;
      user-select: none;
      white-space: nowrap;
      font-family: 'Inter', sans-serif;
      text-decoration: none;
    }
    .bottom-nav .nav-item.active {
      color: #dc3545;
    }
    /* Icons for bottom nav: using inline SVG for clarity */
    .nav-icon {
      width: 22px;
      height: 22px;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }
    .nav-icon.active {
      stroke: #dc3545;
      fill: #dc3545;
    }
    .nav-icon.inactive {
      stroke: #6c757d;
      fill: none;
    }

      .card-attendance {
        padding: 20px;
        border-radius: 12px;
        color: white;
        margin-bottom: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s;
    }

    .card-attendance:hover {
        transform: translateY(-4px);
    }

    .masuk-card {
       /* background: rgb(62,180,137);
       background: linear-gradient(159deg, rgba(62,180,137,1) 0%, rgba(144,238,144,1) 100%); */

       background: rgb(65,105,225);
       background: linear-gradient(159deg, rgba(65,105,225,1) 0%, rgba(137,207,240,1) 100%);

       /* background: rgb(30,144,255);
       background: linear-gradient(159deg, rgba(30,144,255,1) 0%, rgba(153,186,221,1) 100%); */


    }

    .pulang-card {
        background: linear-gradient(135deg, #f44336, #ff80ab);
    }

     .announcement-card {
        background: linear-gradient(135deg, #42a5f5, #478ed1);
        border-radius: 12px;
        padding: 20px;
        color: white;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

    .swiper-button-next,
    .swiper-button-prev {
        color: white;
    }

    .swiper-pagination-bullet {
        background: white;
    }

    .swiper {
        padding-bottom: 40px; /* space for pagination */
    }

    @keyframes spin {
      0%   { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    .rotate {
      animation: spin 1s linear infinite;
    }

    #profileImagePreview {
      border: 4px solid #fff;
      transition: 0.3s ease-in-out;
    }

    #profileImagePreview:hover {
        opacity: 0.8;
    }

    #overlay-gpscam {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        padding: 10px;
        border-radius: 8px;
        position: absolute;
        top: 10%;
        left: 10%;
        width: 80%;
    }
    
    #canvas {
        border: 1px solid #ddd;
        width: 320px;
        height: 240px;
    }

