@charset "utf-8";

/* ============================= */
/* GLOBAL STYLES                 */
/* ============================= */
body {
    background-color: #f4f6f8;
    font-family: 'Inter', sans-serif;
}

/* ============================= */
/* DASHBOARD CARDS               */
/* ============================= */
.dashboard-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card-header-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0;
}

.card-subtext {
    font-size: 0.85rem;
    color: #adb5bd;
}

.icon-badge {
    font-size: 2.2rem;
    padding: 0.6rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Gradient backgrounds for cards */
.bg-gradient-success {
    background: linear-gradient(to bottom right, #00c853, #64dd17);
}

.bg-gradient-warning {
    background: linear-gradient(to bottom right, #ffa000, #ffca28);
}

.bg-gradient-danger {
    background: linear-gradient(to bottom right, #e53935, #ff7043);
}

.bg-gradient-primary {
    background: linear-gradient(to bottom right, #1976d2, #42a5f5);
}

.bg-gradient-dark {
    background: linear-gradient(to bottom right, #1c1c1c, #3a3a3a);
}

.bg-gradient-orange {
    background: linear-gradient(to bottom right, #ff9800, #ff5722);
}

.card-body {
    padding: 1.5rem;
}

.icon-container {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .card-body {
        text-align: center;
    }

    .icon-container {
        text-align: center;
        margin-top: 0.75rem;
    }
}

/* ============================= */
/* IMAGE ZOOM OVERLAY            */
/* ============================= */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.zoomable-image {
    cursor: zoom-in;
}

/* ============================= */
/* HOVER HIGHLIGHT               */
/* ============================= */
.hover-highlight:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* ============================= */
/* REQUEST BUTTON                */
/* ============================= */
.request-btn {
    background-color: #fff8e1;
    border: 2px solid #ffb84d;
    border-radius: 10px;
    color: #ff950f;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;

    width: 400px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
}

/* Hover & click animations */
.request-btn:hover {
    background: linear-gradient(135deg, #ffb84d, #ff950f);
    color: #fff;
    border-color: #ff950f;
    box-shadow: 0 8px 20px rgba(255, 149, 15, 0.35);
    transform: translateY(-5px) scale(1.05);
    animation: hoverBounce 0.4s ease;
}

.request-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 10px rgba(255, 149, 15, 0.4);
}

@keyframes hoverBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1.03); }
}

/* ============================= */
/* AWARDEE CARD                  */
/* ============================= */
.awardee-name {
    font-weight: bold;
    text-align: center;
    color: #fff;
    letter-spacing: 5px;
}

.awardee-award {
    font-size: 1.75rem;
    color: #FFD700;
}

/* ============================= */
/* SLIDESHOW                     */
/* ============================= */
.slideshow-container {
    position: relative;
    background-size: cover;
}

.slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.slide.active {
    display: flex !important;
}

.nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 1000;
}

#prevSlide { left: 10px; }
#nextSlide { right: 10px; }


/* ============================= */
/* MATTE WARNING (AMBER) CARD    */
/* ============================= */
.atm-card.matte {
    padding: 24px;
    border-radius: 20px;

    /* Your gradient (refined for matte feel) */
    background: linear-gradient(to bottom right, #ffa000, #ffca28);

    color: #2b2b2b;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: 0.5px;

    transform-style: preserve-3d;
    transition: transform 0.15s ease, box-shadow 0.25s ease;

    /* Softer matte shadow (not glossy) */
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.25),
        inset 0 0 1px rgba(255,255,255,0.25);

    position: relative;
    overflow: hidden;
}

.atm-card-panel.matte {
    padding: 5px;
    border-radius: 20px;

    /* Your gradient (refined for matte feel) */
    background: linear-gradient(to bottom right, #ffa000, #ffca28);

    color: #2b2b2b;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: 0.5px;

    transform-style: preserve-3d;
    transition: transform 0.15s ease, box-shadow 0.25s ease;

    /* Softer matte shadow (not glossy) */
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.25),
        inset 0 0 1px rgba(255,255,255,0.25);

    position: relative;
    overflow: hidden;
}

/* Hover */
.atm-card.matte:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.35),
        inset 0 0 1px rgba(255,255,255,0.3);
}

/* ============================= */
/* MATTE OVERLAY (KEY PART)      */
/* ============================= */
.atm-card.matte::before {
    content: "";
    position: absolute;
    inset: 0;

    /* subtle matte dulling layer */
    background: rgba(255,255,255,0.08);

    pointer-events: none;
}

/* ============================= */
/* SOFT LIGHT SWEEP              */
/* ============================= */
.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.2),
        transparent
    );

    transform: skewX(-20deg);
    animation: shineSwipe 4s infinite;
    pointer-events: none;
}

/* Animation */
@keyframes shineSwipe {
    0% { left: -120%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

/* ============================= */
/* CARD STYLE FOR REQUEST INFO   */
/* ============================= */
.atm-card {
    background-color: #fff3cd;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.atm-row {
    display: flex;
    flex-direction: column; /* stack instead of side-by-side */
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.atm-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

#atm3col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
	min-width: 900px; /* forces horizontal scroll */
	
}

#atm3col div {
    display: flex;
    flex-direction: column;
}

.horizontal-scroll {
    overflow-x: auto;
    white-space: nowrap;
}

.atm-value {
    font-weight: bold;
    color: #333;
    word-break: break-word;
}

.atm-info-card hr {
    border-color: rgba(219, 234, 254, 0.3);
    margin: 1rem 0;
}

/* ============================= */
/* CARD ELEMENTS                 */
/* ============================= */

/* Remove chip */
.card-chip {
    display: none;
}

/* Number */
.card-number {
    font-size: 1.0rem;
    letter-spacing: 3px;
    margin-bottom: 18px;
    font-weight: 600;
    color: #3a2f00;
}

/* Labels */
.card-name {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: rgba(0,0,0,0.6);
}

.card-expiry {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.5);
}

/* Brand */
.card-brand {
    position: absolute;
    bottom: 20px;
    right: 20px;

    font-size: 1.3rem;
    font-weight: bold;
    font-style: italic;

    color: #5a4300;
}

/* ============================= */
/* PROFILE PHOTO                 */
/* ============================= */
.atm-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.2);
    object-fit: cover;
}

/* ============================= */
/* FORM ELEMENTS                 */
/* ============================= */
.atm-form .form-control {
    border-radius: 12px;
    border: none;
    padding: 12px;

    background: #fff3cd;
    color: #333;
}

.atm-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,160,0,0.4);
}

/* Button */
.atm-btn {
    border-radius: 30px;
    padding: 10px 22px;
    background: #2b2b2b;
    color: #fff;
    transition: all 0.2s ease;
}

.atm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.atm-option {
    border-radius: 30px;
    padding: 5px 10px;
    background: #2b2b2b;
    color: #fff;
    transition: all 0.2s ease;
}

.atm-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ============================= */
/* LEARNER CARD                  */
/* ============================= */
.atm-learner-card {
    background: #fff3cd;
    color: #2b2b2b;

    border-left: 4px solid #ffa000;
    border-radius: 12px;

    padding: 10px 15px;
    margin-bottom: 12px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ============================= */
/* LEFT SIDE PANEL               */
/* ============================= */
.left-side {
    background: linear-gradient(135deg, #ffa000, #ffca28);

    padding: 10px 15px;
    border-radius: 12px 0 0 12px;

    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;


    color: #2b2b2b;
}

/* Photo */
.learner-photo {
    width: 55px;
    height: 55px;

    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.2);

    object-fit: cover;
}

/* Flex wrapper */
.wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible; /* allow dropdown to escape container */
}

/* LEFT SIDE: gradient + photo */
.left-side {
    background: linear-gradient(135deg, #FFD700 0%, #FFECB3 100%); /* Dark yellow to soft yellow */
    padding: 10px 15px;
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
    color: #333;
}

.learner-photo {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.15);
    object-fit: cover;
    flex-shrink: 0;
}

.left-side .ms-3 {
    margin-left: 15px;
    overflow: hidden;
}

.left-side p {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.left-side .text-muted {
    opacity: 0.75;
    font-size: 14px;
}

/* RIGHT SIDE: gradient + dropdown */
.right-side {
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%); /* Dark yellow shades */
    border-radius: 0 12px 12px 0;
    padding: 0 15px;
    height: 55px;
    display: flex;
    align-items: center;
    position: relative; /* parent for dropdown positioning */
    overflow: visible; /* allow dropdown to escape */
}

.right-side .dropdown-toggle {
    font-size: 1.6rem;
    color: #333; /* Dark text on yellow */
    cursor: pointer;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute; /* positioned relative to .right-side */
    top: 100%; /* directly below the toggle */
    right: 0;
    left: auto !important;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 10000; /* high enough to appear on top */
}

.dropdown-menu a.dropdown-item:hover {
    background-color: #FFB300; /* Dark yellow on hover */
    color: #333;
}

/* Dropup menu */
.dropup .dropdown-menu {
    top: auto;
    bottom: 100%; /* appear above the toggle */
    margin-bottom: 5px;
	background-color: #fff; /* FIX: ensure same background */
}

/* Badges */
.badge.bg-secondary {
    background-color: #a0a0a0;
}

.badge.bg-danger {
    background-color: #d9534f;
    color: white;
}

/* Additional shine animation */
@keyframes shine {
    0% { transform: translateX(-200%) rotate(25deg); }
    100% { transform: translateX(200%) rotate(25deg); }
}

/* Badges */
.badge.bg-secondary {
    background-color: #a0a0a0;
}

/* Additional shine animation */
@keyframes shine {
    0% { transform: translateX(-200%) rotate(25deg); }
    100% { transform: translateX(200%) rotate(25deg); }
}

/* ============================= */
/* BODY & GLOBAL STYLES          */
/* ============================= */
body {
    background-color: #f4f6f8;
    font-family: 'Inter', sans-serif;
}

/* ============================= */
/* DASHBOARD CARDS               */
/* ============================= */
.dashboard-card {
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.dashboard-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #212529;
}

.dashboard-icon {
    font-size: 2.2rem;
    opacity: 0.9;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Border accent variants */
.border-start-primary { border-left: 5px solid #0d6efd; }
.border-start-success { border-left: 5px solid #28a745; }
.border-start-warning { border-left: 5px solid #ffc107; }
.border-start-info { border-left: 5px solid #17a2b8; }

.reminder-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    transition: 0.3s;
}

/* ============================= */
/* METRIC CARDS                  */
/* ============================= */
.metric-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.8rem 1.6rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, #ffc107, #ffb300);
    border-radius: 0 0 4px 0;
    transition: width 0.3s ease;
}

.metric-card:hover::before { width: 100%; }

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.metric-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #6c757d;
    text-transform: uppercase;
}

.metric-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.metric-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: #adb5bd;
    margin: 0;
}

.metric-card:hover .metric-value { color: #ffc107; }

/* ============================= */
/* ICON STYLES                   */
/* ============================= */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-success-subtle { background-color: #e8f5e9 !important; }
.bg-danger-subtle  { background-color: #fdecea !important; }
.bg-warning-subtle { background-color: #fff8e1 !important; }

/* ============================= */
/* TABLE STYLES                  */
/* ============================= */
.card { overflow: hidden; }

.table {
    table-layout: fixed;
    width: 100%;
    word-wrap: break-word;
}

.table thead th {
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
}

.table td {
    font-size: 12px;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.03);
}

.badge { font-size: 11px; white-space: nowrap; }

.table-responsive { overflow-x: auto; }

/* Table cell links */
.table tbody td a {
    display: block;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s, box-shadow 0.2s;
    max-width: 100%;
}

.table tbody td a .fw-bold,
.table tbody td a small {
    white-space: normal;
    word-break: break-word;
}

/* ============================= */
/* TABLE RESPONSIVE (SMALL SCREENS) */
/* ============================= */
@media (max-width: 575.98px) {
    .table-responsive { overflow-x: visible; }
    table.table { border: 0; }
    table.table thead { display: none; }
    table.table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border-bottom: 2px solid #dee2e6;
        padding-bottom: 1rem;
    }
    table.table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: 0;
        border-bottom: 1px solid #dee2e6;
        position: relative;
    }
    table.table tbody td:last-child { border-bottom: 0; }
    table.table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #212529;
    }
    table.table tbody td:first-child {
        color: #0d6efd;
        font-weight: 700;
    }
    table.table tbody td a { padding: 0; }
}

/* ============================= */
/* TABLE CARD VARIANTS           */
/* ============================= */
#AddNewTeaching table td {
    white-space: normal !important;
    word-break: break-word !important;
    vertical-align: middle;
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
}

.subject-cell { cursor: pointer; text-align: center; vertical-align: middle; }

.td-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 6px;
    transition: background 0.2s, transform 0.2s;
}

.td-card:hover {
    background-color: #f8f9fa;
    transform: scale(1.03);
}

.td-level-section { font-weight: bold; font-size: 0.9rem; }
.td-subject        { margin-top: 2px; font-size: 0.95rem; }
.td-major          { margin-top: 2px; font-size: 0.8rem; color: #555; }

/* ============================= */
/* SCROLL & THUMBNAILS            */
/* ============================= */
.table-container { scroll-behavior: smooth; }

.table-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover { background: #999; }

.thumbnail-img { cursor: pointer; border-radius: 50%; transition: 0.3s ease; }

thead.sticky-top { z-index: 10; background-color: #f8f9fa; }

/* ============================= */
/* ZOOM OVERLAY                   */
/* ============================= */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.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;
}

/* ============================= */
/* BADGES, BUTTONS & LABEL COLORS */
/* ============================= */
.badge-danger { background-color: #F9070B !important; color: white; }
.text-danger  { color: #F9070B !important; }
.text-orange  { 
	color: #FF8C00; 
}

.no-arrow { background-image: none !important; }

.custom-pills .nav-link {
    border: none;
    background: none;
    color: #000;
    position: relative;
    padding-bottom: 8px;
    margin-right: 20px;
    border-radius: 0;
    transition: color 0.3s ease;
}

.custom-pills .nav-link.active {
    background-color: transparent !important;
    color: #FF950F;
    font-weight: 500;
}

.custom-pills .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #FF950F;
    border-radius: 2px;
}

/* ============================= */
/* PROGRESS BARS                  */
/* ============================= */
.progress { border-radius: 5px; overflow: hidden; }
.progress-bar { transition: width 0.5s; }

/* ============================= */
/* HOVER EFFECTS                  */
/* ============================= */
.hover-shadow:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/*.table td a:hover {
    background-color: #fff6e0;
    transform: scale(1.02);
}*/

/* Modern Card */
.class-card-modern {
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    position: relative;
}

/* Card Hover Effect */
.class-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Card Label */
.class-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Colors */
.status-inprogress {
    background-color: #fff4e0;
    color: #ff950f;
}

.status-completed {
    background-color: #e6f4ea;
    color: #28a745;
}

.status-closed {
    background-color: #f8d7da;
    color: #dc3545;
}

.status-default {
    background-color: #e9ecef;
    color: #6c757d;
}

/* Status Badge */
.status-badge-modern {
    font-size: 0.85rem;
    padding: 0.35em 0.7em;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
}

/* Progress Bar Custom */
.progress-bar {
    border-radius: 3px;
    height: 8px;
}

/* PAGE */
.agent-dashboard{
    padding:25px;
}

/* HEADER */
.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.header-left{
    display:flex;
    flex-direction:column;
}

.dashboard-title{
    font-weight:700;
    color:#2c3e50;
    font-size:26px;
}

.dashboard-title i{
    color:#4f6df5;
    margin-right:8px;
}

.dashboard-subtitle{
    font-size:13px;
    color:#8a94a6;
}

/* SEARCH */
.search-box{
    position:relative;
    width:320px;
}

.search-box i{
    position:absolute;
    left:12px;
    top:10px;
    color:#9aa4b2;
}

.search-box input{
    width:100%;
    padding:8px 12px 8px 35px;
    border-radius:8px;
    border:1px solid #e2e6ea;
}

/* STAT CARDS */
.stat-row{
    margin-top:0px;
}

.stat-card{
    display:flex;
    align-items:center;
    gap:15px;
    padding:20px;
    border-radius:14px;
    background:white;
    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;
}

.stat-label{
    font-size:13px;
    color:#7b8794;
}

.stat-card h3{
    margin:0;
}

.success .stat-icon{background:#22c55e;}
.danger .stat-icon{background:#ef4444;}
.primary .stat-icon{background:#4f6df5;}
.warning .stat-icon{background:#facc15;}
.dark .stat-icon{background:#1f2937;}

#lastUpdated{
    font-size:12px;
    color:#8a94a6;
    margin-top:10px;
    text-align:right;
}

/* GRID */
.agent-grid{
    margin-top:20px;
}

/* CARD */
.modern-card{
    border-radius:16px;
    background:white;
    padding:15px;
    text-align:center;
    transition:0.25s;
    box-shadow:0 4px 14px rgba(0,0,0,0.06);
}

.modern-card:hover{
    transform:translateY(-5px);
}

/* ONLINE CARD */
.online-card{
    border:2px solid #22c55e;
    box-shadow:0 0 12px rgba(34,197,94,0.7);
}

/* LATE CARD */
.late-card{
    border:2px solid #facc15;
    box-shadow:0 0 12px rgba(250,204,21,0.7);
}

/* SHIFT OUT CARD */
.shiftout-card{
    border:2px solid #374151; /* dark gray */
    box-shadow:0 0 12px rgba(55,65,81,0.7);
}

/* OFFLINE CARD */
.offline-card{
    border:none;
}

/* AVATAR */
.avatar-wrapper{
    position:relative;
    display:inline-block;
}

.avatar-img{
    width:72px;
    height:72px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #f1f3f6;
}

/* STATUS DOT */
.status-dot{
    position:absolute;
    bottom:3px;
    right:3px;
    width:14px;
    height:14px;
    border-radius:50%;
    border:2px solid white;
}

.status-dot.online{
    background:#22c55e;
}

.status-dot.late{
    background:#facc15;
}
	
.status-dot.shiftout{ 
    background:#374151;
}

.status-dot.offline{
    background:#ef4444;
}

.agent-card h6{
    font-weight:600;
    margin-top:10px;
}

.last-seen{
    font-size:12px;
    color:#888;
}

.agent-last-log{
    font-size:12px;
    margin-top:6px;
    color:#555;
}
	
/* Flash effect for newly time-in employees */
.new-timein {
    animation: flashGreen 1s ease-in-out 3; /* flashes 3 times */
}

@keyframes flashGreen {
    0%, 100% { box-shadow: 0 0 12px rgba(34,197,94,0.7); }
    50% { box-shadow: 0 0 30px rgba(34,197,94,1); }
}

/* ===== MODAL WIDTH CONTROL ===== */
.modal-xl {
	max-width: 60%;
}

.modal-body-scroll {
    max-height: 70vh; /* limits height */
    overflow-y: auto; /* vertical scroll */
    overflow-x: auto; /* optional horizontal scroll */
}

/* ===== TABLE SCROLL CONTAINER ===== */
.table-container {
	overflow-x: auto;
	overflow-y: auto;
	max-height: 600px; /* vertical scroll inside modal */
	border-radius: 0 0 1rem 1rem;
}

/* ===== TABLE BASE ===== */
.custom-table {
	min-width: 800px; /* forces horizontal scroll if needed */
	border-collapse: separate;
	border-spacing: 0;
}

/* ===== PREVENT WRAPPING ===== */
.custom-table th,
.custom-table td {
	white-space: nowrap;
	padding: 0.75rem;
}

/* ===== STICKY HEADER ===== */
.custom-table thead th {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 5;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Sticky first column */
.custom-table th:first-child,
.custom-table td:first-child {
	position: sticky;
	left: 0;
	z-index: 10;
	background: #fff;
	min-width: 60px; /* prevent shrinking */
}

/* Make header above everything */
.custom-table thead th {
	z-index: 20;
}

/* Intersection (top-left corner cell) */
.custom-table thead th:first-child {
	z-index: 30;
}

/* ===== HOVER EFFECT ===== */
.custom-table tbody tr:hover {
	background-color: #f8f9fa;
}

/* ===== SMOOTH SCROLL ===== */
.table-container {
	scroll-behavior: smooth;
}

/* ===== SCROLLBAR (optional styling) ===== */
.table-container::-webkit-scrollbar {
	height: 8px;
	width: 8px;
}

.table-container::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* ============================= */
/* DASHBOARD SUMMARY CARDS       */
/* ============================= */
.card-summary {
    border: none;
    border-radius: 14px;

    /* Let background define text color */
    color: inherit;

    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.15);

    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.card-summary:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.25);
}

.card-summary .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

/* Icon */
.card-summary .mdi {
    font-size: 40px;
    opacity: 0.85;
}

/* Status badge */
.status-badge {
    display: inline-block;
    min-width: 110px;
    text-align: center;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* ============================= */
/* DATATABLES (THEMED)           */
/* ============================= */

/* Search input */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 20px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    margin-left: 0.5em;
    width: 240px;
}

/* Length select */
.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    padding: 4px 6px;
}

/* Pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.4em 0.8em;
    border-radius: 8px;
    border: none;
    margin: 2px;

    background: #f5f5f5;
    color: #333 !important;

    transition: all 0.2s ease;
}

/* Hover */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e0e0e0;
}

/* Active (MATCH YOUR THEME) */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #ffa000; /* 🔥 your yellow theme */
    color: #fff !important;
}

/* Optional: royal blue variant */
/*
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #2a4b9b;
}
*/

.table-schedule {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #fff; /* dark base */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

/* HEADER */
.table-schedule thead th {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fffbea;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    letter-spacing: 0.6px;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #78350f;
}

/* BODY CELLS */
.table-schedule tbody td {
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

/* ROW HOVER */
.table-schedule tbody tr:hover {
    background: rgba(245, 158, 11, 0.08);
}

/* =========================
   PANEL
========================= */
.panel.rounded-4 {
  padding: 16px;
  background: #fff7e2;
  border-radius: 12px;
  color: #3b2f0d;
  max-height: 700px; /* Overall max height */
  display: flex;
  flex-direction: column;
}

/* Remove scrollbar from panel itself */
.panel.rounded-4::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* =========================
   SEARCH BAR (FIXED)
========================= */
.mb-3 {
  flex: 0 0 auto; /* Prevent shrinking/growing */
}

#search-input {
  background: #fff7e1;
  border: 1px solid #f5c23c;
  border-radius: 6px;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* =========================
   SCROLLABLE PRODUCT GRID CONTAINER
========================= */
.product-grid-container {
  flex: 1 1 auto;       /* Take all remaining vertical space */
  overflow-y: auto;
  margin-top: 8px;
  /* Make sure height fits inside the panel */
  max-height: 100%;     
}

/* Scrollbar for product grid */
.product-grid-container::-webkit-scrollbar {
  width: 8px;
}
.product-grid-container::-webkit-scrollbar-thumb {
  background: #f5c23c;
  border-radius: 4px;
}

/* =========================
   PRODUCT GRID (AUTO FIT)
========================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* =========================
   NO RESULTS
========================= */
.no-results {
  display: none;
  text-align: center;
  color: #ffd54f;
  grid-column: 1 / -1;
  padding: 20px;
  font-weight: 500;
}

/* =========================
   PRODUCT CARD
========================= */
.cart {
  display: flex;
  flex-direction: column;
  background: #4b3f0d;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid rgba(245, 194, 60, 0.25);
  color: #3b2f0d;
  transition: all 0.3s ease;
  height: 100%; /* Full height so buttons align */
}

.cart:hover {
  background: #5c4b0f;
  border-color: #f5c23c;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(245, 194, 60, 0.35);
}

.cart-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Take all available vertical space */
  padding: 0 8px 8px; /* Adjust padding as needed */
}

.mt-auto {
  margin-top: auto; /* Push button down */
}

/* =========================
   IMAGE
========================= */
.product-img-container {
  width: 100%;
  padding-top: 66.66%;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 194, 60, 0.25);
  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: #ffe082;
  font-size: 14px;
}

.cart-sub {
  font-size: 12px;
  color: #ffd54f;
  line-height: 1.3;
}

.cart-price {
  color: #ffeb3b;
  font-weight: 600;
  margin: 4px 0;
}

.cart-stock {
  font-size: 12px;
  color: #ffe57f;
}

/* =========================
   BUTTON
========================= */
.cart-btn {
  background: #f5c23c;
  color: #3b2d0f;
  border: none;
  padding: 8px;
  border-radius: 4px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cart-btn:hover:not(:disabled) {
  background: #ffd54f;
}

.cart-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* =========================
   HIGHLIGHT
========================= */
.highlight {
  background: #ffeb3b;
  color: #000;
  padding: 1px 3px;
  border-radius: 3px;
}

/* =========================
   CART RECEIPT
========================= */
.cart-receipt {
  background: #3b2f0d;
  color: #fff;
  border: 1px solid rgba(245, 194, 60, 0.3);
  border-radius: 10px;
}

.cart-header {
  color: #3b2f0d;
}

/* =========================
   CART ITEMS
========================= */
.cart-items {
  max-height: 300px;
  overflow-y: auto;
}

.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: #f5c23c;
}

/* =========================
   CART ROW
========================= */
.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.cart-item-left {
  	width: 40px;
}

.cart-item-right {
  	flex: 1;
	text-align: right;
}

.qty {
  	font-weight: bold;
  	color: #3b2f0d;
}

.item-name {
  	color: #3b2f0d;
  	text-decoration: none;
  	white-space: nowrap;
  	overflow: hidden;
  	text-overflow: ellipsis;
}

/* =========================
   SUMMARY
========================= */
.cart-summary {
  color: #3b2f0d;
}

/* =========================
   ACTION BUTTONS
========================= */
.cart-actions {
  display: flex;
  gap: 8px;
}

.cart-actions .btn {
  flex: 1;
}

.cart-actions .btn-warning {
  background: #f5c23c;
  color: #3b2d0f;
}

.cart-actions .btn-warning:hover {
  background: #ffd54f;
}