  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
      --gold-gradient: linear-gradient(145deg, #FFD700 0%, #B8860B 100%);
      --bg-light: #fff;
      --bg-dark: #121212;
      --text-light: #000;
      --text-dark: #fff;
      --card-light: #f8f9fa;
      --card-dark: #1e1e1e;
      --border-dark: rgba(255, 215, 0, 0.25);
  }

  /* Loader */
    .loader-wrapper {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 2000;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }
    .loader {
      border: 6px solid #f3f3f3;
      border-top: 6px solid #FFD700;
      border-radius: 50%;
      width: 60px; height: 60px;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .loader-wrapper.hidden {
      opacity: 0;
      visibility: hidden;
    }
  /* End Loader */

  /* Floating contact buttons */
    .floating-contact {
      position: fixed;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      z-index: 9999;
    }

    .contact-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 14px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.25);
      transition: transform .2s ease, box-shadow .2s ease;
      cursor: pointer;
      text-decoration: none;
    }

    .contact-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    /* Specific colors */
    .whatsapp { background-color: #25D366; }
    .phone { background-color: #007AFF; }
    .email { background-color: #FF6F00; }

    /* Responsive adjustments */
    @media (max-width: 600px) {
        .floating-contact {
          right: 15px;
          gap: 12px;
        }
        .contact-btn {
          width: 32px;
          height: 32px;
          font-size: 14px;
        }
      }
  /* End Floating contact buttons */

  body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
  }

  /* When light mode is active */
  body:not(.dark-mode) {
    background-color: var(--bg-light);
    color: var(--text-light);
  }

  .card {
      background-color: #fff;
      border: 1px solid #dee2e6;
      transition: background-color 0.3s ease, color 0.3s ease;
  }

  .table {
      color: inherit;
  }

  /* Card */
    /* 🌙 Dark Mode */
    .dark-mode .card {
      background-color: #1e1e1e;
      color: #e0e0e0;
      border: 1px solid #444;
    }

    .dark-mode .card-header {
      background: var(--gold-gradient);
      color: #fff;
    }

    .dark-mode .card i {
      filter: brightness(0.9);
    }

    .dark-mode .card h6 {
      color: #f5f5f5;
    }

    /* Optional smooth hover glow for all cards */
    .card:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }

    .dark-mode .card:hover {
      box-shadow: 0 6px 15px rgba(255, 215, 0, 0.15);
    }
  /* End Card */

  /* Tab */
    .tabs {
      margin-bottom: 20px;
      background: var(--bg-primary);
      border: 2px solid rgba(255, 215, 0, 0.25);
      border-radius: 8px;
      overflow: hidden;
    }

    .tab-content {
      padding: 1rem;
      /*border: 1px solid rgba(255, 215, 0, 0.25);*/
    }

    .nav-tabs {
      border-bottom: 2px solid rgba(255, 215, 0, 0.4)
    }

    .nav-tabs .nav-link {
      color: var(--text-light);
      font-weight: 600;
      transition: all 0.3s ease;
      background-color: transparent;
      border: none;
      border-bottom: 3px solid transparent;
    }

    .nav-tabs .nav-link.active {
      color: #fff;
      border-color: #FFD700;
      background: linear-gradient(145deg, #FFD700 0%, #B8860B 100%);
    }

    /* Dark Mode Tabs */
    .dark-mode .nav-tabs {
      border-bottom: 2px solid rgba(255, 215, 0, 0.4);
    }

    .dark-mode .nav-tabs .nav-link {
      color: var(--text-dark);
      background-color: transparent;
      border-bottom: 3px solid transparent;
    }

    .dark-mode .nav-tabs .nav-link.active {
      color: #000;
      border-color: #FFD700;
      background-color: rgba(255, 215, 0, 0.15);
    }

    .dark-mode .tab-content {
      background-color: #494444;
      color: var(--text-dark);
      padding: 1rem;
      /*border: 1px solid rgba(255, 215, 0, 0.25);*/
    }
  /* End Tab */

  /* Input */
    /* 🌞 Default (Day Mode) */
    .form-label {
      display: block;
      color: #222;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .form-control,
    .form-select {
      background-color: #fff;
      color: #000;
      border: 2px solid #FFD700; /* Gold border */
      border-radius: 8px;
      transition: all 0.3s ease;
    }

    .form-control::placeholder {
      color: #777;
    }

    .form-control:focus,
    .form-select:focus {
      border-color: #FFD700;
      box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
      background-color: #fff;
      color: #000;
    }

    /* 🌙 Dark Mode */
    .dark-mode .form-label {
      color: #f8f9fa;
    }

    .dark-mode .form-control,
    .dark-mode .form-select {
      background-color: #1e1e1e;
      color: #f8f9fa;
      border: 2px solid #FFD700;
    }

    .dark-mode .form-control::placeholder {
      color: rgba(255, 255, 255, 0.6);
    }

    .dark-mode .form-control:focus,
    .dark-mode .form-select:focus {
      border-color: #FFD700;
      box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
      background-color: #2a2a2a;
      color: #fff;
    }

    /* Optional: make selects look smooth */
    .form-select option {
      background-color: #fff;
      color: #000;
    }

    .dark-mode .form-select option {
      background-color: #1e1e1e;
      color: #fff;
    }
  /*End Input*/

  /* Night Mode */
    .dark-mode body {
      background-color: var(--bg-dark);
      color: var(--text-dark);
    }
  /*  */


  /* User Avatar */
    .user-avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: linear-gradient(90deg, #FFD700, #B8860B);
      color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 1.2rem;
      cursor: pointer;
      transition: transform 0.2s ease;
    }
  /* End User Avatar */


  /* Accordion */
    .accordion-button {
      background: linear-gradient(135deg, #f1d36a, #e0b923);
      color: #000;
      padding: 15px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .accordion-button:hover {
      background: var(--gold-gradient) !important;
    }

    .accordion-button i {
      font-size: 18px;
      transition: transform 0.3s ease;
    }

    .accordion-button.accordion-active ion-icon {
      transform: rotate(180deg);
    }
  /* End Accordion */

    .action-btn {
      display: flex;
      justify-content: flex-end; /* aligns icons to the right */
      align-items: center;
      gap: 0.5rem;
      font-size: 22px;
      font-weight: 900;
    }

    .action-btn span {
      cursor: pointer;
      transition: transform 0.2s ease, color 0.2s ease;
    }

    /* Hover effects for interactivity */
    .action-btn span:hover {
      transform: scale(1.2);
    }

    /* Icon colors */
    .print-btn {
      color: #39afd1;
    }

    .delete-btn {
      color: #f20303;
    }


  body.dark-mode .card {
    background-color: #1e1e1e;
    border-color: #333;
    color: #eee;
  }

  body.dark-mode .table {
    background-color: #1e1e1e;
    color: #ddd;
  }

  body.dark-mode .table thead {
    background-color: #2c2c2c;
    color: #fff;
  }

  

  body.dark-mode .accordion-button {
    background-color: #2c2c2c;
    color: #fff;
  }

  body.dark-mode .accordion-button:not(.collapsed) {
    background-color: #444;
    color: #ffd700;
  }

  body.dark-mode .accordion-body {
    background-color: #1e1e1e;
    color: #eee;
  }

  /* Theme Toggle Button */
  .theme-toggle {
    background: transparent;
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  body.dark-mode .theme-toggle {
    color: #ffd700;
  }

  /* Optional hover feedback */
  .theme-toggle:hover {
      transform: scale(1.1);
      transition: transform 0.2s;
  }

  /* Desktop Top Navbar */
  .navbar {
      background: var(--gold-gradient);
      color: #000;
  }

  .navbar .navbar-brand {
      color: #000;
      font-weight: 700;
  }

  .navbar .nav-link {
      color: #000 !important;
      font-weight: 500;
  }

  /* Sidebar */
  .sidebar {
      position: fixed;
      top: 56px;
      left: 0;
      width: 240px;
      height: calc(100vh - 56px);
      background-color: #000;
      border-right: 1px solid rgba(255, 215, 0, 0.2);
      padding-top: 1rem;
      transition: all 0.3s ease;
  }

  .sidebar .nav-link {
      color: #fff;
      padding: 10px 20px;
      border-left: 4px solid transparent;
      transition: all 0.3s ease;
  }

  .sidebar .nav-link:hover,
  .sidebar .nav-link.active {
      background: var(--gold-gradient);
      border-left: 4px solid #FFD700;
      color: #000;
  }

  .sidebar .nav-link i {
      margin-right: 10px;
  }

  /* Main Content */
  .content {
      margin-top: 70px;
      margin-left: 240px;
      padding: 0.5rem;
      min-height: calc(100vh - 56px);
      transition: all 0.3s ease;
  }

  /* Mobile header bar */
  .mobile-header {
      display: none;
      background: var(--gold-gradient);
      color: #000;
  }

  @media (max-width: 991.98px) {
    .sidebar {
      display: none;
    }

    .content {
      margin-left: 0;
      margin-top: 56px;
      margin-bottom: 70px; /* space for bottom nav */
    }

    .mobile-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 56px;
      background: var(--gold-gradient);
      border-bottom: 2px solid #fff;
      padding: 0 1rem;
      z-index: 1050;
    }

    .mobile-header .app-name {
      font-weight: 700;
      font-size: 1.2rem;
    }

    .mobile-header i {
      font-size: 1.4rem;
      color: #000;
    }
  }

  /* Mobile Bottom Navigation */
  .mobile-bottom-nav {
      display: none;
  }




  /* Receipt container styling - to look like a piece of paper */
    .receipt-container {
        width: 100%;
        padding: 0 20px;
        background-color: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-radius: 8px;
        border: 2px solid #FFD700;
        text-align: center;
        color: #333;
    }

    /* Header Section */
    .header {
        border-bottom: 2px solid #ccc;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .header h1 {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 15px;
    }

    .company-info {
        margin-top: 10px;
    }

    .company-info img {
        max-width: 30px;
        vertical-align: middle;
        margin-right: 5px;
    }

    .company-info p {
        font-size: 12px;
        color: #555;
        margin: 2px 0;
        line-height: 1.3;
    }

    /* Key Transaction Data Table - Top Section */
    .key-data-table {
        width: 100%;
        border-collapse: collapse;
        /*margin: 20px 0;*/
    }

    .key-data-table th, .key-data-table td {
        text-align: center;
        padding: 8px 5px;
        font-size: 14px;
    }

    .key-data-table th {
        background-color: #333; /* Dark background for headers */
        color: #f7b731; /* Gold text color for headers */
        font-weight: normal;
    }
    
    /* Highlighted cells for key values */
    .key-data-table .highlight {
        background-color: #333;
        color: #f7b731;
        font-weight: bold;
    }

    /* Detail Rows - Middle Section */
    .detail-rows {
        width: 100%;
        border-collapse: collapse;
        /*margin: 20px 0;*/
        text-align: left;
    }

    .detail-rows tr {
        line-height: 1.8;
    }

    .detail-rows td {
        font-size: 14px;
        padding: 3px 0;
        border-bottom: 1px dashed #eee;
    }

    .detail-rows .label {
        font-weight: normal;
        color: #333;
        width: 45%; /* Adjust spacing between label and value */
        padding-left: 10px;
    }

    .detail-rows .value {
        font-weight: bold;
        text-align: right;
        color: #cc0000; /* Red color for values */
        width: 55%;
        padding-right: 10px;
    }

    .detail-rows .gcm3 {
        font-size: 12px;
        font-weight: normal;
    }

    /* Total Amount Section */
    .total-section {
        padding: 15px 0;
        /*margin-top: 20px;*/
    }

    .total-section h3 {
        font-size: 18px;
        font-weight: bold;
        /*margin-bottom: 5px;*/
    }

    .total-amount {
        font-size: 30px;
        font-weight: bold;
        color: #cc0000; /* Red color for total amount */
        /*margin: 5px 0 20px 0;*/
    }

    /* Footer Section */
    .footer-text {
        font-size: 14px;
        font-weight: 500;
        color: #555;
        margin-bottom: 25px;
    }
    
    .barcode-qr-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin-top: 15px;
    }

    .barcode-qr-container img {
        max-width: 100px; /* Size for placeholder images */
        height: auto;
    }

    .barcode {
        width: 60%;
        border-bottom: 2px solid black;
        padding-bottom: 5px;
    }
  /* End Receipt container styling - to look like a piece of paper */

  @media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: var(--gold-gradient);
        box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
        z-index: 1030;
        border-top: 2px solid #fff;
        padding-bottom: 5px;
    }

    .mobile-bottom-nav a {
        color: #000;
        text-decoration: none;
        font-size: 22px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        width: 60px;
    }

    .mobile-bottom-nav a.active i {
        background: linear-gradient(145deg, #FFD700 0%, #B8860B 100%);
        color: #000;
        border-radius: 50%;
        border: 2px solid #fff;
        width: 70px;
        height: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        top: 50%; /* lift the circle up */
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        transition: 0.3s ease;
    }

    .mobile-bottom-nav a i {
        transition: 0.3s;
    }

    .mobile-bottom-nav a span {
          font-weight: bold;
          font-size: 0.8rem;
          margin-top: 3px;
          color: #000;
      }
  }


