/* ============================= */
/* GLOBAL STYLES                 */
/* ============================= */
body {
    background-color: #f5f6f8;
    font-family: 'Inter', sans-serif;
}

/* ============================= */
/* DASHBOARD CARDS               */
/* ============================= */
.dashboard-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-header-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

/* ============================= */
/* HEADER                        */
/* ============================= */
.dashboard-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 26px;
}

.dashboard-title i {
    color: #2563eb; /* BLUE */
    margin-right: 8px;
}

.dashboard-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* ============================= */
/* SEARCH                        */
/* ============================= */
.search-box input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 10px;
    color: #9ca3af;
}

/* ============================= */
/* STAT CARDS                    */
/* ============================= */
.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

/* BLUE / RED / GRAY SYSTEM */
.success .stat-icon { background: #2563eb; } /* BLUE */
.danger .stat-icon  { background: #dc2626; } /* RED */
.primary .stat-icon { background: #1d4ed8; } /* DARK BLUE */
.warning .stat-icon { background: #6b7280; } /* GRAY */
.dark .stat-icon    { background: #374151; } /* DARK GRAY */

/* ============================= */
/* STATUS DOT                   */
/* ============================= */
.status-dot.online   { background: #2563eb; }
.status-dot.late     { background: #dc2626; }
.status-dot.shiftout { background: #6b7280; }
.status-dot.offline  { background: #9ca3af; }

/* ============================= */
/* CUSTOM PILLS                  */
/* ============================= */
.custom-pills .nav-link {
    color: #6b7280;
}

.custom-pills .nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

.custom-pills .nav-link.active::after {
    background: linear-gradient(90deg, #2563eb, #dc2626);
}

.custom-pills .nav-link:hover {
    color: #dc2626;
}

/* ============================= */
/* GRADIENTS                     */
/* ============================= */
.bg-gradient-success {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #2563eb, #dc2626);
}

/* ============================= */
/* ATM CARD                      */
/* ============================= */
.atm-card {
    background: #f8fafc;
	border-radius: 30px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.atm-card.matte {
    padding: 24px;
    border-radius: 20px;

    background: linear-gradient(135deg, #2563eb, #dc2626);
    color: #ffffff;

    box-shadow: 
        0 10px 25px rgba(0,0,0,0.25),
        inset 0 0 1px rgba(255,255,255,0.2);

    position: relative;
    overflow: hidden;
}

/* ============================= */
/* MATTE OVERLAY                 */
/* ============================= */
.atm-card.matte::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

/* ============================= */
/* SHINE EFFECT (PRESERVED)      */
/* ============================= */
.atm-card.matte::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 30%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );

    transform: skewX(-20deg);
    animation: shineSwipe 4s infinite;
    pointer-events: none;
}

/* Animation */
@keyframes shineSwipe {
    0% { left: -120%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

/* Row container (neutral gray divider) */
.atm-row {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6; /* light gray */
}

/* Labels (soft blue-gray) */
.atm-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d; /* muted gray */
    margin-bottom: 4px;
}

/* Grid layout */
#atm3col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    min-width: 900px;
}

/* Column content */
#atm3col div {
    display: flex;
    flex-direction: column;
}

/* Horizontal scroll */
.horizontal-scroll {
    overflow-x: auto;
    white-space: nowrap;
}

/* Values (default = BLUE for normal/positive) */
.atm-value {
    font-weight: bold;
    color: #0d6efd; /* primary blue */
    word-break: break-word;
}

/* Optional value modifiers */
.atm-value.pass {
    color: #0d6efd; /* blue = good */
}

.atm-value.fail {
    color: #dc3545; /* red = failing */
}

.atm-value.neutral {
    color: #495057; /* dark gray */
}

/* Card divider (soft blue-gray line) */
.atm-info-card hr {
    border-color: rgba(108, 117, 125, 0.3); /* gray tone */
    margin: 1rem 0;
}

/* Optional card styling */
.atm-info-card {
    background: #ffffff;
    border: 1px solid #dee2e6; /* gray border */
    border-radius: 8px;
    padding: 15px;
}

/* ============================= */
/* CARD ELEMENTS (RED • BLUE • GRAY THEME)
/* ============================= */

/* Remove chip */
.card-chip {
    display: none;
}

/* ============================= */
/* CARD NUMBER */
/* ============================= */
.card-number {
    font-size: 1.0rem;
    letter-spacing: 3px;
    margin-bottom: 18px;
    font-weight: 600;
    color: #0d6efd; /* blue primary */
}

/* ============================= */
/* CARD NAME */
/* ============================= */
.card-name {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #fff; /* gray */
    font-weight: 600;
}

/* ============================= */
/* CARD EXPIRY */
/* ============================= */
.card-expiry {
    font-size: 0.75rem;
    color: #000; /* muted gray */
}

/* ============================= */
/* CARD BRAND */
/* ============================= */
.card-brand {
    position: absolute;
    bottom: 20px;
    right: 20px;

    font-size: 1.3rem;
    font-weight: bold;
    font-style: italic;

    color: #dc3545; /* red accent */
    opacity: 0.9;
}

/* Optional hover enhancement for card */
.card:hover .card-brand {
    color: #0d6efd; /* blue on hover */
    transition: 0.2s ease;
}

/* ============================= */
/* PROFILE PHOTO                 */
/* ============================= */
.atm-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.2);
    object-fit: cover;
}

/* ============================= */
/* FORM (RED • BLUE • GRAY THEME)
/* ============================= */
.atm-form .form-control {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    padding: 12px;
    background: #f8f9fa;   /* light gray */
    color: #212529;
    transition: all 0.2s ease;
}

/* Focus state - BLUE accent */
.atm-form .form-control:focus {
    outline: none;
    border-color: #0d6efd; /* blue */
    box-shadow: 0 0 0 3px rgba(13,110,253,0.2);
    background: #ffffff;
}

/* Optional input hover */
.atm-form .form-control:hover {
    border-color: #6c757d; /* gray hover */
}

/* ============================= */
/* BUTTON (PRIMARY BLUE → RED HOVER)
/* ============================= */
.atm-btn {
    border-radius: 30px;
    padding: 10px 22px;
    background: #dc3545;  /* blue primary */
    color: #fff;
    border: none;
    transition: all 0.25s ease;
    font-weight: 600;
}

/* Hover → RED accent */
.atm-btn:hover {
    background: #0d6efd; /* red */
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(220,53,69,0.25);
}

/* Active click state */
.atm-btn:active {
    transform: scale(0.98);
    box-shadow: none;
}

/* Disabled state */
.atm-btn:disabled {
    background: #6c757d; /* gray */
    cursor: not-allowed;
    opacity: 0.7;
}

/* ============================= */
/* REQUEST BUTTON                */
/* ============================= */
.request-btn {
    background-color: #f3f4f6;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.request-btn:hover {
    background: #dc2626;
    color: #fff;
}

/* ============================= */
/* SIDE PANELS                  */
/* ============================= */
.left-side {
    background: linear-gradient(135deg, #2563eb, #111827);
    color: #fff;
}

.right-side {
    background: linear-gradient(135deg, #dc2626, #374151);
}

/* ============================= */
/* MODERN CARDS                  */
/* ============================= */
.class-card-modern {
    background: linear-gradient(135deg, #2563eb, #dc2626);
    color: #fff;
}

/* ============================= */
/* METRIC CARDS                  */
/* ============================= */
.metric-card::before {
    background: linear-gradient(90deg, #2563eb, #dc2626);
}

.metric-card:hover .metric-value {
    color: #dc2626;
}

/* ============================= */
/* TABLE HEADER                  */
/* ============================= */
.table-schedule thead th {
    background: linear-gradient(135deg, #2563eb, #dc2626);
}

/* ============================= */
/* CLASS CARD                    */
/* ============================= */
.class-card {
    background: linear-gradient(135deg, #2563eb, #dc2626);
}

/* ============================= */
/* PRODUCT CARDS (UPDATED)       */
/* ============================= */
.cart {
    background: #111827;
    border: 1px solid #374151;
    color: #f9fafb;
}

.cart:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 20px rgba(37,99,235,0.35);
}

.cart-title { color: #93c5fd; }
.cart-sub { color: #d1d5db; }
.cart-price { color: #dc2626; }
.cart-stock { color: #9ca3af; }

.cart-btn {
    background: #2563eb;
}

.cart-btn:hover {
    background: #dc2626;
}

/* ============================= */
/* HIGHLIGHT                     */
/* ============================= */
.highlight {
    background: #dc2626;
    color: #fff;
}

/* ============================= */
/* STATUS COLORS                 */
/* ============================= */
.status-inprogress {
    background: #eff6ff;
    color: #2563eb;
}

.status-completed {
    background: #f3f4f6;
    color: #111827;
}

.status-closed {
    background: #fee2e2;
    color: #dc2626;
}

.icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;

    display: flex;
    align-items: left;
    justify-content: center;

    border-radius: 50% !important;

    line-height: 1 !important;
}

/* FIX ICON ALIGNMENT */
.icon-circle i {
    font-size: 18px;
    line-height: 1;
    display: block;
}


/* Container */
.table-container {
    background: #f1f3f5;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Scroll */
.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

/* Table */
.custom-table {
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
}

/* Sticky header */
.custom-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Header */
.custom-table thead {
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    color: #fff;
}

/* Hover */
.custom-table tbody tr:hover {
    background-color: #e9ecef;
}

/* Passing */
.table-success {
    background-color: #cfe2ff !important;
    color: #084298;
}

/* Failing */
.table-danger {
    background-color: #f8d7da !important;
    color: #842029;
}

/* Missing */
.text-warning {
    color: #dc3545 !important;
}

/* Average */
.avg-pass {
    background-color: #0d6efd;
    color: #fff;
}
.avg-fail {
    background-color: #dc3545;
    color: #fff;
}

/* Button */
.enter-grade-btn {
    border-radius: 50%;
    padding: 4px 8px;
}

/* Pulse */
.highlight-btn {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13,110,253,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(13,110,253,0); }
    100% { box-shadow: 0 0 0 0 rgba(13,110,253,0); }
}

/* Table base */
.table-blue {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    background: #ffffff;
}

/* Header (Blue gradient) */
.table-blue thead {
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    color: #fff;
}

/* Header cells */
.table-blue th {
    text-align: center;
    padding: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    border: none;
    font-size: 13px;
}

/* Body cells */
.table-blue td {
    padding: 12px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6; /* gray */
    color: #212529;
}

/* Zebra rows (gray tone) */
.table-blue tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Hover effect */
.table-blue tbody tr:hover {
    background: #e7f1ff; /* light blue */
    transition: 0.2s ease-in-out;
}

/* ===== STATUS BADGES ===== */
.badge-status {
    display: inline-block;
    min-width: 90px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Active (Blue) */
.badge-active {
    background: #e7f1ff;
    color: #0d6efd;
}

/* Danger (Red) */
.badge-danger {
    background: #fdecea;
    color: #dc3545;
}

/* Warning (Gray/Amber mix) */
.badge-warning {
    background: #f1f3f5;
    color: #6c757d;
}

/* ===== ACTION BUTTON ===== */
.action-btn {
    border-radius: 6px; /* cleaner than 20% */
    padding: 6px 10px;
    transition: all 0.2s ease;
}

/* Hover button */
.action-btn:hover {
    transform: scale(1.05);
}

/* ===== STICKY HEADER ===== */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    color: #fff;
}

/* Optional: subtle border between header rows */
.table-blue thead tr + tr th {
    border-top: 1px solid rgba(255,255,255,0.2);
}


/* ============================= */
/* CLASS CARD (BLUE–GRAY)        */
/* ============================= */
.class-card {
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;

    background: linear-gradient(135deg, #0d6efd, #6c757d); /* blue → gray */
    color: #fff;

    font-size: 12px;
    line-height: 1.3;

    transition: 0.2s ease;
}

.class-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.class-title {
    font-weight: 600;
    font-size: 13px;
}

.class-sub {
    font-size: 11px;
    opacity: 0.9;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */
.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .table-schedule td {
        height: auto;
    }

    .class-card {
        font-size: 11px;
        padding: 6px;
    }

    .table-schedule thead th {
        font-size: 11px;
    }
}

/* ============================= */
/* SCROLLBAR (GRAY)              */
/* ============================= */
.table-container::-webkit-scrollbar-thumb {
    background: #6c757d;
}

/* =========================
   PANEL (GRAY BASE)
========================= */
.panel.rounded-4 {
  padding: 16px;
  background: #f1f3f5; /* light gray */
  border-radius: 12px;
  color: #212529;
  max-height: 700px;
  display: flex;
  flex-direction: column;
}

.panel.rounded-4::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* =========================
   SEARCH BAR (BLUE ACCENT)
========================= */
#search-input {
  background: #ffffff;
  border: 1px solid #0d6efd;
  border-radius: 6px;
  padding: 8px;
  width: 100%;
}

/* =========================
   PRODUCT GRID CONTAINER
========================= */
.product-grid-container {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-top: 8px;
}

.product-grid-container::-webkit-scrollbar {
  width: 8px;
}
.product-grid-container::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 4px;
}

/* =========================
   PRODUCT GRID
========================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* =========================
   NO RESULTS
========================= */
.no-results {
  display: none;
  text-align: center;
  color: #6c757d;
  grid-column: 1 / -1;
  padding: 20px;
  font-weight: 500;
}

/* =========================
   PRODUCT CARD (BLUE BASE)
========================= */
.cart {
  display: flex;
  flex-direction: column;
  background: #1e3c72; /* deep blue */
  border-radius: 8px;
  padding: 8px;
  border: 1px solid rgba(108, 117, 125, 0.3);
  color: #f8f9fa;
  transition: all 0.3s ease;
  height: 100%;
}

.cart:hover {
  background: #274c8a;
  border-color: #0d6efd;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(13,110,253,0.25);
}

.cart-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0 8px 8px;
}

.mt-auto {
  margin-top: auto;
}

/* =========================
   IMAGE
========================= */
.product-img-container {
  width: 100%;
  padding-top: 66.66%;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(108, 117, 125, 0.3);
  margin-bottom: 6px;
}

.product-img-container img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.product-img-container img:hover {
  transform: scale(1.05);
}

/* =========================
   TEXT
========================= */
.cart-title {
  font-weight: 600;
  color: #e7f1ff;
  font-size: 14px;
}

.cart-sub {
  font-size: 12px;
  color: #ced4da;
}

.cart-price {
  color: #0d6efd; /* blue instead of green */
  font-weight: 600;
}

.cart-stock {
  font-size: 12px;
  color: #adb5bd;
}

/* =========================
   BUTTON (RED PRIMARY ACTION)
========================= */
.cart-btn {
  background: #dc3545;
  color: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 4px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

.cart-btn:hover:not(:disabled) {
  background: #bb2d3b;
}

.cart-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* =========================
   HIGHLIGHT
========================= */
.highlight {
  background: #dc3545;
  color: #ffffff;
  padding: 1px 3px;
  border-radius: 3px;
}

/* =========================
   CART RECEIPT
========================= */
.cart-receipt {
  background: #ffffff;
  color: #212529;
  border: 1px solid #dee2e6;
  border-radius: 10px;
}

.cart-header {
  color: #0d6efd;
}

/* =========================
   CART ITEMS
========================= */
.cart-items {
  max-height: 300px;
  overflow-y: auto;
}

.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: #6c757d;
}

/* =========================
   CART ROW
========================= */
.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed #dee2e6;
}

.cart-item-left {
  width: 40px;
}

.cart-item-right {
  flex: 1;
  text-align: right;
}

.qty {
  font-weight: bold;
  color: #0d6efd;
}

.item-name {
  color: #212529;
  text-decoration: none;
}

/* =========================
   SUMMARY
========================= */
.cart-summary {
  color: #212529;
}

/* =========================
   ACTION BUTTONS
========================= */
.cart-actions {
  display: flex;
  gap: 8px;
}

.cart-actions .btn {
  flex: 1;
}

/* Blue secondary */
.cart-actions .btn-warning {
  background: #0d6efd;
  color: #ffffff;
}

.cart-actions .btn-warning:hover {
  background: #0b5ed7;
}


/* ============================= */
/* METRIC CARDS                  */
/* ============================= */
.metric-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.8rem 1.6rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #dee2e6; /* soft gray border */
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Top accent bar (Blue → Gray) */
.metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, #0d6efd, #6c757d);
    border-radius: 0 0 4px 0;
    transition: width 0.3s ease;
}

.metric-card:hover::before { 
    width: 100%; 
}

/* Header */
.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

/* Title */
.metric-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #6c757d; /* gray */
    text-transform: uppercase;
}

/* Icon */
.metric-icon {
    font-size: 1.5rem;
    opacity: 0.85;
    color: #0d6efd; /* blue */
}

/* Value */
.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

/* Subtext */
.metric-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: #adb5bd;
    margin: 0;
}

/* Hover effect (Blue instead of Green) */
.metric-card:hover .metric-value { 
    color: #0d6efd;
}

/* ============================= */
/* OPTIONAL STATUS VARIANTS      */
/* ============================= */

/* Danger (Red card accent) */
.metric-card.danger::before {
    background: linear-gradient(90deg, #dc3545, #6c757d);
}

.metric-card.danger .metric-icon {
    color: #dc3545;
}

.metric-card.danger:hover .metric-value {
    color: #dc3545;
}

/* Neutral (Gray emphasis) */
.metric-card.neutral .metric-icon {
    color: #6c757d;
}

/* Zoom overlay */
.zoom-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8); /* fade effect */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

/* Zoomed image */
.zoom-overlay img {
	max-width: 80%;
	max-height: 80%;
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
	transition: transform 0.3s ease;
}