:focus {
  outline: 0;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
  background-color: #ecf0f5;
}

::-webkit-scrollbar {
  width: 8px;
  background-color: #ecf0f5;
}

::-webkit-scrollbar-thumb {
  background-color: #333333;
}


.loading {
  display: none;
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 999999;
}

.wallet-card .wallet-footer .webcame {
  display: inline-block;
  text-align: center;
  align-items: flex-start;
  justify-content: space-between;
  margin: auto;
}

.wallet-card .wallet-footer .webcame canvas {
  width: 600px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}


div.dataTables_filter label {
  font-weight: normal;
  white-space: nowrap;
  text-align: left;
  float: right;
}


/* --------------------------------
    Pagination
-----------------------------------*/
div.dataTables_paginate ul.pagination {
  float: right;
}

div.dataTables_info {
  padding-top: 8px;
  padding-left: 10px;
  white-space: nowrap;
}

.pagination>li>a,
.pagination>li>span {
  margin: 0 1px;
  color: #333;
  padding: 5px 10px;
  line-height: 33px;
  font-weight: 500;
  font-size: 14px;
  background-color: #FFFFFF;
  border: solid 1px #eee;
}

.pagination>li>a:hover {
  color: #ffffff;
  background: #00B4FF;
  border-color: #00B4FF;
}

.pagination>li:first-child>a,
.pagination>li:first-child>span {
  margin-left: 0;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.pagination>li:last-child>a,
.pagination>li:last-child>span {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover {
  z-index: 2;
  color: #ffffff;
  cursor: default;
  background: #00B4FF;
  border-color: #00B4FF;

}

.avatar-section {
  position: relative;
}

.avatar-section input[type="file"] {
  display: inline-block;
  opacity: 0;
  position: absolute;
  margin-left: 20px;
  margin-right: 20px;
  padding-top: 30px;
  padding-bottom: 67px;
  width: 85%;
  z-index: 99;
  margin-top: 10px;
  cursor: pointer;
}


/* -----  ID Card -----------*/
.id-card {
  position: relative;
  width: 300px;
  height: 500px;
  margin: auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 5px 20px 0 rgb(0 0 0 / 9%);
}

.id-card .body-id-card {
  background: url(../img/bg-id-card-red.png) no-repeat center;
  height: 100%;
  width: 100%;
  padding: 30px;
}

.id-card .body-id-card .avatar {
  margin-bottom: 10px;
  margin-top: 30px;
}

.id-card .body-id-card h3 {
  font-size: 16px;
  text-align: center;
  margin: auto;
}

.id-card .body-id-card p {
  font-size: 14px;
  text-transform: uppercase;
  color: #333333;
  font-weight: 600;
}

.id-card .body-id-card .barcode {
  position: relative;
  display: inline-block;
  background: #ffffff;
  height: 155px;
  width: 155px;
  box-shadow: 0 5px 20px 0 rgb(0 0 0 / 9%);
  margin-top: 50px;
  border: solid 2px #ffffff;
  overflow: hidden;
  text-align: center;
}

.id-card .body-id-card .barcode img {
  height: 150px;
  width: 150px;
  text-align: center;
  display: inline-block;
}


/* --------- WEBCAME -----------*/
.webcam-capture-body {
  display: inline-block;
  text-align: center;
  margin: auto;
}

.webcam-capture,
.webcam-capture video {
  display: inline-block;
  width: 100% !important;
  height: auto !important;
  margin: auto;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
}

@media only screen and (max-width:690px) {
  .wallet-card .wallet-footer .webcame canvas {
    width: 100%;
    height: auto;
  }
}

@media only screen and (max-width:480px) {
  .wallet-card .wallet-footer .webcame canvas {
    width: 100%;
    height: 230px;
  }

  div.dataTables_filter label {
    float: left;
  }

  div.dataTables_filter input {
    margin-left: 0.5em;
    display: inline-block;
    width: 180px;
  }

  .wallet-card {
    padding: 10px 15px;
    position: relative;
    z-index: 1;
  }

  .id-card {
    position: relative;
    width: 250px;
    height: auto;
    border-radius: 30px;
  }

  .hidden-sm {
    display: none;
  }
}

@media print {
  .hidden-print {
    display: none !important;
  }

  a[href]:after {
    content: none !important;
  }

  header,
  footer,
  aside,
  nav,
  form,
  iframe,
  .menu,
  .hero,
  .adslot {
    display: none;
  }

}


@page: right {
  @bottom-right {
    content: counter(page);
  }
}

@page: left {
  @bottom-left {
    content: counter(page);
  }
}

/* =========================================
   MOBILE BANKING UI REDESIGN
   ========================================= */

:root {
  --primary-color: #546E7A;
  --primary-gradient: linear-gradient(135deg, #37474F 0%, #546E7A 100%);
  --secondary-color: #ffffff;
  --accent-color: #CFD8DC;
  --bg-color: #ECEFF1;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --text-color: #263238;
  --text-muted: #78909C;
}

body {
  background-color: var(--bg-color);
  font-family: 'Poppins', sans-serif;
  /* Modern font */
}

/* Header Redesign - MOVED TO LOCAL SCOPE */
/* .appHeader styles removed to avoid global conflict */

/* Home Header Section */
.home-header {
  background: var(--primary-gradient);
  padding: 80px 20px 60px 20px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  color: white;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 78, 146, 0.3);
}

.user-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.user-info p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Attendance Card */
.attendance-status-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin: -40px 20px 20px 20px;
  position: relative;
  box-shadow: var(--card-shadow);
  z-index: 100;
  text-align: center;
}

.status-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.status-item {
  text-align: center;
  flex: 1;
}

.status-time {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 5px;
}

.status-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.status-btn:active {
  transform: scale(0.95);
}

.btn-check-in {
  background: linear-gradient(to right, #11998e, #38ef7d);
}

.btn-check-out {
  background: linear-gradient(to right, #ff416c, #ff4b2b);
}

.btn-disabled {
  background: #e0e0e0;
  color: #999;
  pointer-events: none;
  box-shadow: none;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.menu-item {
  background: white;
  border-radius: 15px;
  padding: 15px 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.menu-item:active {
  transform: scale(0.95);
}

.menu-icon {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--primary-color);
  background: rgba(0, 78, 146, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  position: relative;
  /* Fixed: Added relative positioning */
}

.menu-label {
  font-size: 0.75rem;
  color: var(--text-color);
  font-weight: 500;
}

/* Section Title */
.section-title {
  padding: 0 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title a {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-decoration: none;
}

/* History List - Replaces Table */
.history-list {
  padding: 0 20px;
  padding-bottom: 80px;
  /* Space for bottom tab */
}

.history-card {
  background: white;
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border-left: 5px solid var(--primary-color);
}

.history-card.late {
  border-left-color: #ffca28;
}

.history-card.absent {
  border-left-color: #f44336;
}

.history-date {
  display: flex;
  flex-direction: column;
}

.date-day {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
}

.date-month {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.history-times {
  flex: 1;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.time-box {
  text-align: center;
}

.time-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.time-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Bottom Tab Bar */
/* Bottom Tab Bar Flat Design */
.appBottomMenu {
  background: #ffffff;
  border: none !important;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  height: 60px;
  /* Reduced height */
  border-radius: 0;
  /* Remove top radius for flat look */
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 9999;
}

.appBottomMenu .item {
  color: #B0BEC5;
  flex: 1;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: none !important;
  background: transparent !important;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.appBottomMenu .item .col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.appBottomMenu .item:before,
.appBottomMenu .item:after,
.appBottomMenu:before,
.appBottomMenu:after {
  display: none !important;
  content: none !important;
  border: none !important;
  background: none !important;
}

.appBottomMenu .item.active {
  color: #37474F;
  box-shadow: none !important;
  border: none !important;
}

.appBottomMenu .item:hover {
  color: #546E7A;
}

.appBottomMenu .item ion-icon {
  font-size: 24px;
  margin-bottom: 2px;
  display: block;
}

.appBottomMenu .item strong {
  font-size: 10px;
  font-weight: 500;
  display: block;
}

/* Reset Scroll Button to normal style */
.appBottomMenu .item:nth-child(3) {
  top: 0 !important;
}

.appBottomMenu .item:nth-child(3) .col {
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  border: none !important;
  color: inherit !important;
  box-shadow: none !important;
  display: flex !important;
}

.appBottomMenu .item:nth-child(3) ion-icon {
  color: inherit !important;
  font-size: 24px !important;
  margin-bottom: 2px !important;
}

.appBottomMenu .item:nth-child(3) strong {
  display: block !important;
  /* Show text again */
  font-size: 10px !important;
  font-weight: 500 !important;
}

/* Badge Fix */
.appBottomMenu .item .badgenotif,
.appBottomMenu .item .badgenew,
.menu-item .badgenotif,
.badgenew {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF5252;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid white;
  font-weight: 700;
  z-index: 10;
}

/* Modern Mobile Banking Utilities */
.bg-primary-gradient {
  background: var(--primary-gradient) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(0, 78, 146, 0.3);
  border-radius: 10px !important;
}

/* Sidebar Profile Header styling */
.profileBox {
  background: var(--primary-gradient) !important;
  color: white !important;
}

.profileBox .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.profileBox .btn-icon {
  color: white !important;
}