﻿/* BASE STYLES */

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    font-family: "Acer Foco";
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

    body:has(.login-section),
    body:has(.dashboard-section),
    body:has(.auth-section) {
        height: 100vh;
        overflow: hidden;
    }

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body:has(.login-section) main,
body:has(.dashboard-section) main,
body:has(.auth-section) main {
    height: calc(100vh - 56px);
    overflow: hidden;
}


/* NAVIGATION BAR */

.navbar {
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 8px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
    margin-right: 24px;
}

    .navbar-brand img {
        height: 32px;
        width: auto;
        transition: transform 0.2s ease;
    }

        .navbar-brand img:hover {
            transform: scale(1.05);
        }

.navbar-nav {
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 8px 16px !important;
    color: #2c3e50 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .nav-link:hover {
        color: #78bc27 !important;
        background-color: rgba(120, 188, 39, 0.08);
    }

    .nav-link i {
        font-size: 1.1rem;
        transition: transform 0.2s ease;
    }

    .nav-link:hover i {
        transform: translateY(-1px);
    }

.navbar .dropdown-menu {
    padding: 8px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 8px;
}

.navbar .dropdown-item {
    padding: 8px 16px;
    color: #2c3e50;
    font-weight: 500;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

    .navbar .dropdown-item:hover {
        color: #78bc27;
        background-color: rgba(120, 188, 39, 0.08);
        transform: translateX(4px);
    }

    .navbar .dropdown-item i {
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }

.breadcrumb {
    padding: 12px 16px !important;
    background-color: #f8f9fa;
}


/* SECTIONS */

.main-section {
    min-height: calc(100vh - 56px);
    padding: 70px 0 50px 0;
    text-align: center;
    background: #fff;
    background-size: cover;
    color: black;
}

.form-section {
    min-height: calc(100vh - 56px);
    padding: 100px 0 50px 0;
    text-align: center;
    background-size: cover;
}

.auth-section {
    height: calc(100vh - 56px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: #fff;
    background-size: cover;
    color: black;
    font-style: italic;
    overflow: hidden;
}

.login-section {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    margin: 0;
    background: url('../Content/imgs/c-bg-login.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.dashboard-section {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 0;
    margin: 0;
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url('../Content/imgs/c-bg-dashboard.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    overflow: hidden;
}

    .dashboard-section .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .dashboard-section .row.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }


/* FOOTER */

.contnr-footer {
    background-color: #3c3b3b;
    color: #808080;
    padding: 15px 0;
    margin: 0;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

    .contnr-footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contnr-footer footer {
        padding: 8px 0;
    }

    .contnr-footer p {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }

        .contnr-footer p:last-child {
            margin-bottom: 0;
        }

    .contnr-footer a {
        color: #808080;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .contnr-footer a:hover {
            color: #78bc27;
            text-decoration: underline;
        }


/* TYPOGRAPHY & COLORS */

.title_labelh2 {
    font-weight: bold;
    color: rgb(120, 188, 39);
}

.title-h {
    color: rgb(120, 188, 39);
    font-weight: bolder;
    font-style: italic;
}

.title-h2 {
    color: rgb(120, 188, 39);
}

.title_label {
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    font-weight: bold;
    color: white;
}

.vw_label {
    font-family: 'Trebuchet MS';
    color: rgb(120, 188, 39);
}

.color-acer {
    color: rgb(120, 188, 39);
}

.text-danger {
    font-weight: bold;
}


/* PANELS & CONTAINERS */

.titlebanner {
    background-color: rgba(0,0,0,0.5);
    padding-top: 45px;
    padding-bottom: 50px;
}

.pnl1 {
    background-color: rgba(0,0,0,0.5);
    padding-top: 45px;
    padding-bottom: 50px;
}

.pnl2 {
    background-color: rgba(0,0,0,0.5);
    padding-top: 20px;
    padding-bottom: 20px;
}


/* SEPARATORS */

.separator {
    margin: 1rem 0;
}

    .separator .fa-stack {
        margin: 0 1rem;
    }

/* Commented out alternative separator style
.separator {
    display: flex;
    align-items: center;
    text-align: center;
}

.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 4px solid white;
}

.separator::before {
    margin-right: .25em;
}

.separator::after {
    margin-left: .25em;
}
*/


/* DASHBOARD PANELS */

.dash-pnl {
    padding: 20px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    margin-bottom: 20px;
    -webkit-box-shadow: 0 1px 0px rgba(0,0,0,0.05);
    box-shadow: 0 1px 0px rgba(0,0,0,0.05);
    color: #fff;
    border-radius: 5px;
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), no-repeat center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    min-height: 120px;
}

    .dash-pnl:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

.dash-icon {
    width: 60px;
    height: 60px;
    display: inline-block;
    line-height: 60px;
    text-align: center;
    font-size: 30px;
    background: #eee;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 10px;
    float: left;
    margin-right: 10px;
    color: #fff;
}

.dash-pnl-info {
    font-size: 12px;
    padding-top: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

    .dash-pnl-info span {
        display: block;
        font-size: 30px;
        font-weight: 600;
        color: rgb(120, 188, 39);
    }

.dashboard-section h3 span {
    word-break: break-word;
}


/* BANNER BACKGROUNDS */

.banner-img-claim {
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url('../Content/imgs/c-bg-claims.jpg') no-repeat center;
    background-size: cover;
}

.banner-img-claim2 {
    background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.5)),url('../Content/imgs/c-bg-redeem.png') no-repeat center;
    background-size: cover;
}

.banner-img-reward {
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url('../Content/imgs/c-bg-reward.jpg') no-repeat center;
    background-size: cover;
}

.banner-img-reward2 {
    background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.5)),url('../Content/imgs/c-bg-redeem.png') no-repeat center;
    background-size: cover;
}

.banner-img-redeem {
    background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.5)),url('../Content/imgs/c-bg-redeem.png') no-repeat center;
    background-size: cover;
}

.banner-img-order {
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),url('../Content/imgs/c-bg-order.jpg') no-repeat center;
    color: #fff;
}

.banner-title {
    padding-top: 60px;
    color: #fff;
}

.banner-title-redeem {
    padding-top: 70px;
    color: #fff;
}


/* CALLOUTS */

.bs-callout {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
    background-color: #eeecec;
    font-family: 'Acer Foco', 'Trebuchet MS';
}

    .bs-callout h4 {
        margin-top: 0;
        margin-bottom: 5px;
    }

    .bs-callout p:last-child {
        margin-bottom: 0;
    }

    .bs-callout code {
        border-radius: 3px;
    }

    .bs-callout + .bs-callout {
        margin-top: -5px;
    }

.bs-callout-default {
    border-left-color: #777;
}

    .bs-callout-default h3 {
        color: #777;
    }

.bs-callout-primary {
    border-left-color: #428bca;
}

    .bs-callout-primary h3 {
        color: #428bca;
    }

.bs-callout-success {
    border-left-color: #5cb85c;
}

    .bs-callout-success h3 {
        color: #5cb85c;
    }

.bs-callout-danger {
    border-left-color: #d9534f;
}

    .bs-callout-danger h3 {
        color: #d9534f;
    }

.bs-callout-warning {
    border-left-color: #f0ad4e;
    padding: 0px;
}

    .bs-callout-warning h3 {
        color: #f0ad4e;
    }

.bs-callout-info {
    border-left-color: #5bc0de;
}

    .bs-callout-info h3 {
        color: #5bc0de;
    }


/* VIDEO HEADER */

header {
    position: relative;
    background-color: black;
    height: 100%;
    min-height: 25rem;
    width: 100%;
    overflow: hidden;
}

    header video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: 0;
        -ms-transform: translateX(-50%) translateY(-50%);
        -moz-transform: translateX(-50%) translateY(-50%);
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
    }

    header .container {
        position: relative;
        z-index: 2;
    }

    header .overlay {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: black;
        opacity: 0.5;
        z-index: 1;
    }

@media (pointer: coarse) and (hover: none) {
    header {
        background: url('https://mobilesupport.acer.com.ph/Content/themes/base/images/Tablet_orense_billboard_smartphone_Image.jpg') black no-repeat center center scroll;
    }

        header video {
            display: none;
        }
}

/* PROFILE & CARDS */

.profile-info-header {
    background-color: #DFF0D8 !important;
    padding: 10px 20px;
}

    .profile-info-header .card-title {
        color: #2d5016;
        font-size: 20px;
    }


/*  MERCHANT CARD  */

.merchant-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

    .merchant-card.animate-in {
        animation: fadeInUp 0.6s ease forwards;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.merchant-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.merchant-card:hover .merchant-card-inner {
    transform: scale(1.02);
    filter: saturate(1.05);
}

.merchant-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #e7e7e7;
}

.merchant-card-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.merchant-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.25s ease;
}

    .merchant-card-image img.loaded {
        opacity: 1;
    }

.merchant-card:hover .merchant-card-image img {
    transform: scale(1.03);
}

.merchant-card-body {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.merchant-logo img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
}

.merchant-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merchant-category,
.merchant-tagline {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merchant-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.merchant-price,
.merchant-locations {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
}

.merchant-locations {
    margin-bottom: 0;
}

    .merchant-price i,
    .merchant-locations i {
        color: #78bc27;
        margin-right: 8px;
        width: 16px;
    }

.btn-order {
    background-color: #78bc27;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.25s ease, background-color 0.25s ease;
    margin-top: auto;
}

    .btn-order:hover {
        background-color: #6aa622;
        transform: scale(1.02);
        color: white;
    }

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

    .empty-state i {
        font-size: 4rem;
        color: #ddd;
        margin-bottom: 20px;
    }

@media (prefers-reduced-motion: reduce) {
    .merchant-card,
    .merchant-card-inner,
    .btn-order,
    .merchant-card-image img {
        transition: none !important;
        animation: none !important;
    }

    .merchant-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* MODALS */

.modal-header {
    background: linear-gradient(135deg, #78bc27, #2d5016);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

    .modal-header .modal-title {
        font-size: 1.5rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .modal-header .modal-title i {
            font-size: 1.75rem;
        }

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-body {
    padding: 24px;
}

.claim-details-box,
#vwHistory_modal .modal-body > div:first-child,
#ga_redeem_modal .modal-body > .info-row,
#edit_modal .modal-body .alert-info {
    background: linear-gradient(135deg, #f8f9fa, #d3d5d7);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid #78bc27;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .claim-details-box .row > div {
        margin-bottom: 8px;
    }

    .claim-details-box strong {
        color: #2c3e50;
        font-weight: 600;
        margin-right: 8px;
    }

    .claim-details-box .text-primary {
        color: #78bc27 !important;
        font-weight: 700;
    }

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#history_tbl {
    margin-bottom: 0;
}

    #history_tbl thead {
        background: linear-gradient(135deg, #78bc27, #2d5016);
        color: white;
    }

        #history_tbl thead th {
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.813rem;
            letter-spacing: 0.5px;
            padding: 16px 12px;
            border: none;
        }

    #history_tbl tbody td {
        padding: 14px 12px;
        vertical-align: middle;
        border-bottom: 1px solid #e9ecef;
    }

    #history_tbl tbody tr:last-child td {
        border-bottom: none;
    }

    #history_tbl tbody tr:hover {
        background-color: #f8f9fa;
    }

    #history_tbl .badge {
        padding: 6px 12px;
        font-weight: 600;
        font-size: 0.813rem;
        border-radius: 12px;
    }

#edit_modal .card {
    border: none;
    box-shadow: none;
    background: transparent;
}

#edit_modal .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.938rem;
}

#edit_modal .form-control,
#edit_modal .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.2s ease;
    font-size: 0.938rem;
}

    #edit_modal .form-control:focus,
    #edit_modal .form-select:focus {
        border-color: #78bc27;
        box-shadow: 0 0 0 0.2rem rgba(120, 188, 39, 0.15);
        outline: none;
    }

#edit_modal input[type="file"] {
    padding: 12px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

    #edit_modal input[type="file"]:hover {
        border-color: #78bc27;
        background-color: #fff;
    }

#edit_modal .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

    #edit_modal .form-check-input:checked {
        background-color: #78bc27;
        border-color: #78bc27;
    }

#edit_modal .form-check-label {
    font-weight: 600;
    color: #495057;
    margin-left: 8px;
    cursor: pointer;
}

#edit_modal .alert-info {
    background: linear-gradient(135deg, #d1ecf1, #7db8c4);
    border: none;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
    border-radius: 8px;
    padding: 16px;
}

    #edit_modal .alert-info strong {
        font-weight: 700;
    }

.modal-footer {
    padding: 20px 24px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

    .modal-footer .btn {
        padding: 10px 24px;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .modal-footer .btn-secondary {
        background: #6c757d;
        border: none;
    }

        .modal-footer .btn-secondary:hover {
            background: #5a6268;
            transform: translateY(-2px);
        }

    .modal-footer .btn-success,
    #edit_modal .btn-success {
        background: linear-gradient(135deg, #78bc27, #2d5016);
        border: none;
        color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .modal-footer .btn-success:hover,
        #edit_modal .btn-success:hover {
            background: linear-gradient(135deg, #5a9e1a, #1a3009);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

    .modal-footer .btn-warning,
    #edit_modal .btn-warning {
        background: linear-gradient(135deg, #ffc107, #ff8c00);
        border: none;
        color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .modal-footer .btn-warning:hover,
        #edit_modal .btn-warning:hover {
            background: linear-gradient(135deg, #cc7a00, #995c00);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            color: white;
        }

    .modal-footer .btn-danger,
    #edit_modal .btn-danger {
        background: linear-gradient(135deg, #dc3545, #8b0000);
        border: none;
        color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .modal-footer .btn-danger:hover,
        #edit_modal .btn-danger:hover {
            background: linear-gradient(135deg, #c82333, #660000);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            color: white;
        }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}


.modal .card > .mt-3,
.modal .card .card-body > .mt-3,
#edit_modal .card > .mt-3,
#edit_modal .card .card-body > .mt-3 {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
    

/* FORMS */

.form-label {
    margin-bottom: 0.5rem;
}

input[type="file"] {
    padding: 0.375rem 0.75rem;
}


/* CLAIM CARDS */

.claim-card {
    background: #fff;
    border: none;
    border-left: 5px solid #78bc27;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

    .claim-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: inherit;
        transition: width 0.3s ease;
    }

    .claim-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        transform: translateY(-4px);
    }

        .claim-card:hover::before {
            width: 8px;
        }

    .claim-card.status-new {
        border-left-color: #5bc0de;
    }

    .claim-card.status-pending {
        border-left-color: #ffc107;
    }

    .claim-card.status-edited-for-checking {
        border-left-color: #ff8c00;
    }

    .claim-card.status-approved {
        border-left-color: #78bc27;
    }

    .claim-card.status-rejected {
        border-left-color: #dc3545;
    }

    .claim-card.status-cancelled-for-credits {
        border-left-color: #721c24;
    }

.claim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    gap: 16px;
}

.claim-card .serial-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    word-break: break-word;
    flex: 1;
}

.claim-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 8px;
}


    .claim-card .status-badge i {
        animation: pulse 2s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.claim-card .status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.25), 0 3px 6px rgba(0,0,0,0.18);
}

.claim-card .status-badge.new {
    background: linear-gradient(135deg, #5bc0de, #0c5460);
    color: white;
    border: none;
}

.claim-card .status-badge.pending {
    background: linear-gradient(135deg, #ffc107, #ff6b00);
    color: #fff;
    border: none;
}

.claim-card .status-badge.edited-for-checking {
    background: linear-gradient(135deg, #ff8c00, #cc3300);
    color: white;
    border: none;
}

.claim-card .status-badge.approved {
    background: linear-gradient(135deg, #78bc27, #2d5016);
    color: white;
    border: none;
}

.claim-card .status-badge.rejected {
    background: linear-gradient(135deg, #dc3545, #8b0000);
    color: white;
    border: none;
}

.claim-card .status-badge.cancelled-for-credits {
    background: linear-gradient(135deg, #721c24, #330000);
    color: white;
    border: none;
}

.claim-card .claim-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    margin-top: 60px; 
}

.claim-card .claim-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .claim-card .claim-info-item:hover {
        background: #e9ecef;
        transform: translateX(4px);
    }

    .claim-card .claim-info-item i {
        color: #78bc27;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .claim-card .claim-info-item span {
        font-size: 0.938rem;
        color: #495057;
        line-height: 1.5;
    }

    .claim-card .claim-info-item strong {
        color: #2c3e50;
        font-weight: 600;
    }

.claim-card .action-buttons {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.claim-card .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 1px 3px rgba(0,0,0,0.12); 
    white-space: nowrap;
    min-width: 110px;
    transform: translateZ(0); 
}

    .claim-card .btn-action:hover {
        text-decoration: none;
        transform: translateY(-3px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.15); 
    }

    .claim-card .btn-action:active {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    }

    .claim-card .btn-action i {
        flex-shrink: 0;
    }

    .claim-card .btn-history {
        background: linear-gradient(135deg, #17a2b8, #0c5460);
        color: white;
    }

        .claim-card .btn-history:hover {
            background: linear-gradient(135deg, #0c5460, #084952);
            color: white;
        }

    .claim-card .btn-edit {
        background: linear-gradient(135deg, #ffc107, #cc7a00);
        color: #fff;
    }

        .claim-card .btn-edit:hover {
            background: linear-gradient(135deg, #cc7a00, #995c00);
            color: #fff;
        }


/* SEARCH & PAGINATION */

.search-bar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
}

    .search-bar .form-select {
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
        font-size: 0.938rem;
        background-color: #fff;
        transition: all 0.3s ease;
        appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg fill="%2378bc27" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 16px;
    }

        .search-bar .form-select:hover {
            border-color: #78bc27;
            box-shadow: 0 0 8px rgba(120,188,39,0.3);
            cursor: pointer;
        }

        .search-bar .form-select:focus {
            border-color: #78bc27;
            outline: none;
            box-shadow: 0 0 0 2px rgba(120,188,39,0.25);
        }

    .search-bar .form-control {
        border: 1px solid #dee2e6;
        border-radius: 6px 0 0 6px;
        padding: 0.5rem 0.75rem;
        font-size: 0.938rem;
        transition: all 0.2s ease;
    }

        .search-bar .form-control:focus {
            border-color: #78bc27;
            outline: 0;
            box-shadow: 0 0 0 2px rgba(120, 188, 39, 0.25);
        }

        .search-bar .form-control:hover {
            border-color: #a8d978;
        }

    .search-bar .btn[type="submit"] {
        background-color: #78bc27;
        color: white;
        border-color: #78bc27;
        border-radius: 0 6px 6px 0;
        padding: 0.5rem 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border: 1px solid #78bc27;
    }

        .search-bar .btn[type="submit"]:hover {
            background-color: #5a9e1a;
            border-color: #5a9e1a;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(120, 188, 39, 0.3);
        }

        .search-bar .btn[type="submit"]:active {
            transform: translateY(0);
            box-shadow: 0 1px 3px rgba(120, 188, 39, 0.3);
        }

    .search-bar .btn[href*="myclaims"],
    .search-bar a.btn[title="Refresh"] {
        background-color: #78bc27;
        color: white;
        border-color: #78bc27;
        border-radius: 6px;
        padding: 0.5rem 0.75rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border: 1px solid #78bc27;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .search-bar .btn[href*="myclaims"]:hover,
        .search-bar a.btn[title="Refresh"]:hover {
            background-color: #5a9e1a;
            border-color: #5a9e1a;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(120, 188, 39, 0.3);
        }

        .search-bar .btn[href*="myclaims"]:active,
        .search-bar a.btn[title="Refresh"]:active {
            transform: translateY(0);
            box-shadow: 0 1px 3px rgba(120, 188, 39, 0.3);
        }

    .search-bar .input-group .form-control {
        border-right: 0;
    }

    .search-bar .input-group .btn {
        border-left: 1px solid #78bc27;
    }


.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

    .pagination-container .page-info {
        font-size: 0.95rem;
        color: #6c757d;
        font-weight: 500;
        order: -1; 
        width: 100%; 
        text-align: center;
    }

.pagination {
    margin-bottom: 0;
    display: flex; 
    flex-wrap: nowrap; 
    gap: 4px;
}

    .pagination .page-link,
    .pagination .page-item a,
    .pagination .page-item span {
        color: #78bc27;
        border-color: #dee2e6;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        text-decoration: none;
        background-color: #fff;
        border: 1px solid #dee2e6;
        border-radius: 4px; 
        min-width: 40px;
        height: 40px; 
        font-size: 0.875rem; 
        transition: all 0.2s ease;
    }

    .pagination .page-item.active .page-link,
    .pagination .page-item.active span {
        background-color: #78bc27;
        border-color: #78bc27;
        z-index: 1;
        color: #fff;
        font-weight: 600;
    }

    .pagination .page-link:hover,
    .pagination .page-item a:hover {
        color: #5a8e1f;
        background-color: #e9ecef;
        border-color: #78bc27; 
        transform: translateY(-1px);
    }

    .pagination .page-item.disabled span {
        color: #6c757d;
        pointer-events: none;
        background-color: #f8f9fa; 
        border-color: #dee2e6;
        opacity: 0.5;
    }

/* REWARD CARDS */

.reward-card {
    background: #fff;
    border: none;
    border-left: 5px solid #78bc27;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

    .reward-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: inherit;
        transition: width 0.3s ease;
    }

    .reward-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        transform: translateY(-4px);
    }

        .reward-card:hover::before {
            width: 8px;
        }

    .reward-card.status-redeemed-resend-order {
        border-left-color: #17a2b8;
    }

    .reward-card.status-redeemed {
        border-left-color: #83b81a;
    }

.reward-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    gap: 16px;
}

.reward-card .reference-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    word-break: break-word;
    flex: 1;
}

.reward-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 8px;
}

    .reward-card .status-badge i {
        animation: pulse 2s ease-in-out infinite;
    }


.reward-card .status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.25), 0 3px 6px rgba(0,0,0,0.18);
}

.reward-card .status-badge.redeemed-resend-order {
    background: linear-gradient(135deg, #17a2b8, #0c5460);
    color: #fff;
    border: none;
}

.reward-card .status-badge.redeemed {
    background: linear-gradient(135deg, #a8d978, #78bc27);
    color: white;
    border: none;
}


.reward-card .reward-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    margin-top: 60px;
}

.reward-card .reward-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .reward-card .reward-info-item:hover {
        background: #e9ecef;
        transform: translateX(4px);
    }

    .reward-card .reward-info-item i {
        color: #78bc27;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .reward-card .reward-info-item span {
        font-size: 0.938rem;
        color: #495057;
        line-height: 1.5;
    }

    .reward-card .reward-info-item strong {
        color: #2c3e50;
        font-weight: 600;
    }

.reward-card .action-buttons {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.reward-card .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 1px 3px rgba(0,0,0,0.12);
    white-space: nowrap;
    min-width: 110px;
    transform: translateZ(0);
}

    .reward-card .btn-action:hover {
        text-decoration: none;
        transform: translateY(-3px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.15);
    }

    .reward-card .btn-action:active {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    }

    .reward-card .btn-action i {
        flex-shrink: 0;
    }

.reward-card .btn-history {
    background: linear-gradient(135deg, #17a2b8, #0c5460);
    color: white;
}

    .reward-card .btn-history:hover {
        background: linear-gradient(135deg, #0c5460, #084952);
        color: white;
    }

.reward-card .btn-details {
    background: linear-gradient(135deg, #78bc27, #2d5016);
    color: white;
}

    .reward-card .btn-details:hover {
        background: linear-gradient(135deg, #5a9e1a, #1a3009);
        color: white;
    }

/* MODAL DETAILS STYLING */
.detail-item {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .detail-item:hover {
        background: #e9ecef;
    }

    .detail-item label {
        display: block;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 6px;
        font-size: 0.938rem;
    }

        .detail-item label i {
            color: #78bc27;
            margin-right: 8px;
            width: 20px;
            text-align: center;
        }

    .detail-item span {
        color: #495057;
        font-size: 0.938rem;
        word-break: break-word;
    }

/* ALERTS & MESSAGES */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    min-height: 400px;
}

    .empty-state i {
        font-size: 3.5rem; 
        color: #ffffff; 
        background: linear-gradient(135deg, #78bc27 0%, #9ed652 100%);
        width: 80px; 
        height: 80px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-bottom: 1.25rem; 
    }

        .empty-state i::before {
            animation: pulse 2s ease-in-out infinite;
        }

    .empty-state h4 {
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: #2c3e50;
        animation: fadeInUp 0.6s ease-out;
    }

    .empty-state p {
        font-size: 1rem;
        max-width: 400px;
        margin: 0 auto 1.5rem;
        animation: fadeInUp 0.6s ease-out 0.2s backwards;
    }

.btn-shine {
    background: linear-gradient(135deg, #78bc27 0%, #9ed652 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.75rem; 
    font-size: 0.9375rem; 
    font-weight: 600;
    border-radius: 30px; 
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(120, 188, 39, 0.25); 
    position: relative;
    overflow: hidden;
}

    .btn-shine i {
        font-size: 0.875rem; 
        background: none;
        width: auto;
        height: auto;
        margin: 0;
    }

    .btn-shine::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent );
        transition: left 0.5s ease;
        animation: shimmer 3s infinite;
    }

    .btn-shine:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(120, 188, 39, 0.4);
        color: white;
        text-decoration: none;
    }

    .btn-shine:active {
        transform: translateY(0);
    }

@keyframes shine {
    0%, 100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50%, 100% {
        left: 200%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}


.alert-dismissible {
    padding-right: 3rem;
}

.alert i {
    margin-right: 8px;
}

/* SCROLL BUTTON */

.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgb(120, 188, 39), rgb(45, 80, 22));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scroll-btn:hover {
        background: linear-gradient(135deg, rgb(90, 150, 25), rgb(26, 48, 9));
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .scroll-btn.show {
        opacity: 1;
        visibility: visible;
    }

    .scroll-btn:active {
        transform: translateY(-1px);
    }

    .scroll-btn i {
        font-size: 20px;
        transition: transform 0.6s ease;
    }

        .scroll-btn i.rotating {
            animation: coinFlip 0.6s ease;
        }

@keyframes coinFlip {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(180deg);
    }
}

/* SUBMIT & REDEEM BUTTONS */
.btn-submit-now,
.banner-img-claim .btn {
    background: linear-gradient(135deg, #78bc27, #5a9e1a) !important;
    transition: all 0.3s ease;
}

    .btn-submit-now:hover,
    .banner-img-claim .btn:hover {
        background: linear-gradient(135deg, #5a9e1a, #4a8515) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

.banner-img-reward .btn {
    background: linear-gradient(135deg, #8ed927, #78bc27) !important;
    transition: all 0.3s ease;
}

    .banner-img-reward .btn:hover {
        background: linear-gradient(135deg, #78bc27, #6aa820) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(120, 188, 39, 0.3);
    }

/* BUTTONS & UTILITIES */

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}
div.dataTables_processing {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 9999 !important;
}


/* MEDIA QUERIES*/

/* TABLETS & SMALL DESKTOPS (max-width: 991px) */
@media (max-width: 991px) {
    .navbar {
        padding: 8px 16px;
    }

    .navbar-collapse {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 8px;
        margin-top: 8px;
    }

    .navbar-nav {
        padding: 8px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 16px !important;
    }

    .navbar .dropdown-menu {
        box-shadow: none;
        border: none;
        background: rgba(120, 188, 39, 0.04);
        margin-top: 0;
        padding: 4px;
    }

    .navbar-toggler {
        padding: 8px;
        border: none;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

        .navbar-toggler:hover {
            background-color: rgba(120, 188, 39, 0.08);
        }

        .navbar-toggler:focus {
            box-shadow: none;
            outline: 2px solid rgba(120, 188, 39, 0.4);
            outline-offset: 2px;
        }

    .dashboard-section h2 {
        font-size: 1.75rem;
    }

    .dashboard-section h3 {
        font-size: 1.3rem;
    }

    .dash-pnl {
        min-height: 110px;
    }

    .dash-icon {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 26px;
    }

    .dash-pnl-info {
        font-size: 11px;
    }

        .dash-pnl-info span {
            font-size: 26px;
        }

    .claim-card,
    .reward-card {
        padding: 20px;
    }

        .claim-card .action-buttons,
        .reward-card .action-buttons {
            top: 20px;
            right: 20px;
        }

        .claim-card .serial-number,
        .reward-card .reference-number {
            font-size: 1.25rem;
            padding-right: 130px;
        }

        .claim-card .btn-action,
        .reward-card .btn-action {
            min-width: 100px;
            padding: 8px 14px;
            font-size: 0.813rem;
        }

        .claim-card .claim-info,
        .reward-card .reward-info {
            grid-template-columns: 1fr;
        }

    .modal-dialog {
        margin: 1rem;
    }
}

/* TABLETS (max-width: 768px) */
@media (max-width: 768px) {
    .empty-state {
        padding: 2rem 1rem;
        min-height: 300px;
    }

        .empty-state i {
            font-size: 3rem; 
            width: 70px;
            height: 70px;
            margin-bottom: 1rem;
        }

    .btn-shine {
        padding: 0.5rem 1.5rem; 
        font-size: 0.875rem;
    }

    .search-bar .form-select,
    .search-bar .form-control {
        font-size: 0.875rem;
    }
        .search-bar .btn {
            font-size: 0.875rem;
        }

    .jumbotron h1 {
        font-size: 1.75rem;
    }

    .jumbotron p {
        font-size: 0.95rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .claim-card,
    .reward-card {
        padding: 16px;
    }

        .claim-card-header,
        .reward-card-header {
            flex-direction: column;
            gap: 12px;
        }

        .claim-card .action-buttons,
        .reward-card .action-buttons {
            top: 16px;
            right: 16px;
        }

        .claim-card .serial-number,
        .reward-card .reference-number {
            font-size: 1.125rem;
            padding-right: 110px;
        }

        .claim-card .btn-action,
        .reward-card .btn-action {
            min-width: 90px;
            padding: 8px 12px;
        }

        .claim-card .claim-info,
        .reward-card .reward-info {
            margin-top: 50px;
        }

        .claim-card .status-badge,
        .reward-card .status-badge {
            padding: 6px 14px;
            font-size: 0.75rem;
            border-radius: 14px;
        }

        .claim-card .claim-info-item,
        .reward-card .reward-info-item {
            padding: 10px;
        }

    .modal-header {
        padding: 16px 20px;
    }

        .modal-header .modal-title {
            font-size: 1.25rem;
        }

            .modal-header .modal-title i {
                font-size: 1.5rem;
            }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
    }

    #history_tbl {
        font-size: 0.875rem;
    }

        #history_tbl thead th,
        #history_tbl tbody td {
            padding: 10px 8px;
        }

    #edit_modal .row.g-3 > div {
        margin-bottom: 16px;
    }

    .pagination-container {
        flex-direction: column;
        gap: 8px;
    }

        .pagination-container .page-info {
            font-size: 0.85rem;
            margin-bottom: 4px;
        }

    .pagination {
        gap: 3px;
    }

        .pagination .page-link,
        .pagination .page-item a,
        .pagination .page-item span {
            min-width: 36px;
            height: 36px;
            padding: 0.375rem 0.5rem;
            font-size: 0.8rem;
        }

    .search-bar .row {
        gap: 10px;
        margin: 0;
    }

    .search-bar .col-md-7,
    .search-bar .col-md-1 {
        flex: 1;
        padding: 0;
    }

    .search-bar .col-md-7 {
        flex: 1 1 75%;
        padding-right: 5px;
    }

    .search-bar .col-md-1 {
        flex: 0 0 auto;
        width: auto;
        min-width: 50px;
    }

        .search-bar .col-md-1 .btn {
            padding: 0.375rem 0.75rem;
            width: auto !important;
        }

    .scroll-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

        .scroll-btn i {
            font-size: 18px;
        }

    body:has(.contnr-footer) .scroll-btn {
        bottom: 75px;
    }

    .contnr-footer {
        padding: 12px 0;
    }

        .contnr-footer .container {
            padding-left: 12px;
            padding-right: 12px;
        }

        .contnr-footer p {
            font-size: 0.813rem;
        }

        .contnr-footer .small {
            font-size: 0.75rem;
        }
}

/* ALL PHONES - 2x2 GRID (max-width: 767px) */
@media (max-width: 767px) {
    .dashboard-section .row.text-start.g-4 > div[class*="col-"] {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }

    .row.text-start.g-4 {
        gap: 12px !important;
    }

    .dashboard-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .dashboard-section .row.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .dashboard-section h2 {
        font-size: 1.5rem;
        padding-bottom: 1rem !important;
    }

    .dashboard-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .separator::before,
    .separator::after {
        border-bottom-width: 3px;
    }

    .separator .fa-stack {
        font-size: 2.5rem;
        margin: 0 0.75rem;
    }

    .dash-pnl {
        margin-bottom: 0;
        padding: 12px;
        min-height: 120px;
        max-height: 120px;
    }

    .dash-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .dash-pnl-info {
        font-size: 9px;
        padding-top: 0;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

        .dash-pnl-info span {
            font-size: 20px;
            margin-bottom: 2px;
            line-height: 1.1;
        }
}

/* SMALLER PHONES - 2x2 GRID (max-width: 576px) */
@media (max-width: 576px) {
    .empty-state i {
        font-size: 2.5rem; 
        width: 60px;
        height: 60px;
    }

    .empty-state h4 {
        font-size: 1.25rem;
    }

    .empty-state p {
        font-size: 0.875rem;
    }

    .btn-shine {
        padding: 0.15rem 1rem; 
        font-size: 0.8125rem; 
        width: auto;
        max-width: 280px;
        justify-content: center;
    }

    .search-bar .form-select,
    .search-bar .form-control {
        font-size: 0.813rem;
    }

    .search-bar .btn {
        font-size: 0.813rem;
        padding: 0.5rem;
    }

    .modal-footer,
    .modal .card > .mt-3,
    .modal .card .card-body > .mt-3 {
        flex-direction: column;
        align-items: stretch;
    }

        .modal-footer .btn,
        .modal .card > .mt-3 .btn,
        .modal .card .card-body > .mt-3 .btn {
            width: 100%;
        }

    .navbar-brand img {
        height: 28px;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .navbar .dropdown-item {
        font-size: 0.80rem;
    }

    .dashboard-section .row.text-start.g-4 > div[class*="col-"] {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }

    .dashboard-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-section .row.py-5 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .dashboard-section h2 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .dashboard-section h3 {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .separator .fa-stack {
        font-size: 2rem;
        margin: 0 0.5rem;
    }

    .separator::before,
    .separator::after {
        border-bottom-width: 2px;
    }

    .dash-pnl {
        padding: 15px;
        min-height: 90px;
        margin-bottom: 0;
    }

    .dash-icon {
        width: 48px;
        height: 48px;
        line-height: 48px;
        font-size: 22px;
        margin-right: 12px;
        border-radius: 8px;
    }

    .dash-pnl-info {
        font-size: 11px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .dash-pnl-info span {
            font-size: 24px;
            line-height: 1.2;
            margin-bottom: 2px;
        }

    .claim-card,
    .reward-card {
        padding: 14px;
    }

        .claim-card .serial-number,
        .reward-card .reference-number {
            font-size: 1rem;
            padding-right: 100px;
        }

        .claim-card .status-badge,
        .reward-card .status-badge {
            padding: 5px 12px;
            font-size: 0.688rem;
            gap: 6px;
            border-radius: 12px;
        }

            .claim-card .status-badge i,
            .reward-card .status-badge i {
                font-size: 6px;
            }

    .claim-card-header,
    .reward-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .claim-card .action-buttons,
    .reward-card .action-buttons {
        top: 14px;
        right: 14px;
        gap: 6px;
    }

    .claim-card .btn-action,
    .reward-card .btn-action {
        min-width: 85px;
        padding: 7px 10px;
        font-size: 0.75rem;
        border-radius: 6px;
    }

        .claim-card .btn-action span,
        .reward-card .btn-action span {
            display: inline !important;
        }

    .claim-card .claim-info,
    .reward-card .reward-info {
        margin-top: 45px;
    }

    .claim-card .claim-info-item,
    .reward-card .reward-info-item {
        padding: 8px;
        gap: 10px;
    }

        .claim-card .claim-info-item i,
        .reward-card .reward-info-item i {
            font-size: 14px;
            width: 18px;
            height: 18px;
        }

        .claim-card .claim-info-item span,
        .reward-card .reward-info-item span {
            font-size: 0.875rem;
        }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 10px;
    }

    .modal-header {
        padding: 14px 16px;
        border-radius: 10px 10px 0 0;
    }

        .modal-header .modal-title {
            font-size: 1.125rem;
        }

    .modal-body {
        padding: 16px;
    }

    .claim-details-box {
        padding: 16px;
    }

    #history_tbl {
        font-size: 0.813rem;
    }

        #history_tbl thead th {
            padding: 10px 6px;
            font-size: 0.75rem;
        }

        #history_tbl tbody td {
            padding: 8px 6px;
        }

    #edit_modal .form-control,
    #edit_modal .form-select {
        padding: 10px 14px;
        font-size: 0.875rem;
    }

    .modal-footer {
        padding: 14px 16px;
    }

        .modal-footer .btn {
            width: 100%;
            margin-bottom: 8px;
        }

            .modal-footer .btn:last-child {
                margin-bottom: 0;
            }

    .pagination-container .page-info {
        font-size: 0.8rem;
    }

    .pagination {
        gap: 2px;
        justify-content: center;
    }

        .pagination .page-link,
        .pagination .page-item a,
        .pagination .page-item span {
            min-width: 32px;
            height: 32px;
            padding: 0.25rem 0.4rem;
            font-size: 0.75rem;
        }

    .scroll-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

        .scroll-btn i {
            font-size: 16px;
        }

    body:has(.contnr-footer) .scroll-btn {
        bottom: 70px;
    }

    .contnr-footer {
        padding: 10px 0;
    }

        .contnr-footer p {
            font-size: 0.75rem;
            line-height: 1.4;
        }

        .contnr-footer .small {
            font-size: 0.688rem;
        }

        .contnr-footer p:first-child {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
}

/* VERY SMALL PHONES - 2x2 GRID (max-width: 360px) */
@media (max-width: 360px) {
    .dashboard-section .row.text-start.g-4 > div[class*="col-"] {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }

    .pagination .page-item:nth-child(2),
    .pagination .page-item:nth-last-child(2) {
        display: none;
    }

    .pagination {
        gap: 1px;
        justify-content: center;
        flex-wrap: wrap;
    }

        .pagination .page-link,
        .pagination .page-item a,
        .pagination .page-item span {
            min-width: 28px;
            height: 28px;
            padding: 0.2rem 0.3rem;
            font-size: 0.7rem;
        }

    .pagination-container .page-info {
        font-size: 0.7rem;
    }

    .navbar-toggler {
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
        border: 1px solid rgba(0,0,0,0.1);
    }

    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }

    .navbar {
        padding-left: 8px;
        padding-right: 8px;
    }

    .navbar-brand {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }

    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    .search-bar {
        padding: 10px 8px;
    }

        .search-bar .col-md-7 {
            flex: 1 1 70%;
        }

        .search-bar input {
            font-size: 0.8rem;
            padding: 0.3rem 0.5rem;
        }

        .search-bar .btn {
            font-size: 0.8rem;
            padding: 0.3rem 0.5rem;
        }

    .dashboard-section .row.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .dashboard-section h2 {
        font-size: 1.1rem;
    }

    .dashboard-section h3 {
        font-size: 0.85rem;
    }

    .dash-pnl {
        padding: 10px;
        min-height: 80px;
    }

    .dash-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }

    .dash-pnl-info {
        font-size: 10px;
    }

        .dash-pnl-info span {
            font-size: 20px;
        }

    .claim-card .action-buttons,
    .reward-card .action-buttons {
        gap: 5px;
    }

    .claim-card .btn-action span,
    .reward-card .btn-action span {
        display: none !important;
    }

    .claim-card .btn-action,
    .reward-card .btn-action {
        padding: 8px;
        min-width: 36px;
        border-radius: 6px;
    }

    .claim-card .serial-number,
    .reward-card .reference-number {
        padding-right: 50px;
    }

    .claim-card .claim-info,
    .reward-card .reward-info {
        margin-top: 40px;
    }

    .modal-header .modal-title {
        font-size: 1rem;
    }

    #history_tbl thead th {
        font-size: 0.688rem;
        padding: 8px 4px;
    }

    #history_tbl tbody td {
        font-size: 0.75rem;
        padding: 6px 4px;
    }
}

/* LANDSCAPE MODE (max-height: 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .dashboard-section .row.text-start.g-4 > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .dash-pnl {
        min-height: 75px;
        padding: 10px;
    }

    .dash-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }

    .dash-pnl-info span {
        font-size: 18px;
    }

    .contnr-footer {
        padding: 8px 0;
    }

        .contnr-footer p {
            font-size: 0.688rem;
            margin-bottom: 0.25rem;
        }
}

/* TABLETS HEIGHT ADJUSTMENTS (max-height: 912px) */
@media (max-height: 912px) and (min-width: 768px) {
    .dashboard-section .row.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .dashboard-section h2 {
        font-size: 1.75rem;
        padding-bottom: 1rem !important;
    }

    .dashboard-section h3 {
        font-size: 1.25rem;
    }

    .dashboard-section .row.text-start.g-4 {
        gap: 15px !important;
    }

/*        .dashboard-section .row.text-start.g-4 > [class*="col-"] {
            flex: 0 0 calc(50% - 7.5px) !important;
            max-width: calc(50% - 7.5px) !important;
        }*/

    .dash-pnl {
        min-height: 110px;
        margin-bottom: 0 !important;
    }

    .dash-icon {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 26px;
    }

    .dash-pnl-info {
        font-size: 11px;
    }

        .dash-pnl-info span {
            font-size: 26px;
        }

    .contnr-footer {
        padding: 12px 0;
    }

        .contnr-footer p {
            font-size: 0.813rem;
        }
}

/* TABLETS HEIGHT (max-height: 800px) */
@media (max-height: 800px) and (min-width: 768px) {
    .dashboard-section .row.py-5 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .dashboard-section h2 {
        font-size: 1.5rem;
    }

    .dashboard-section h3 {
        font-size: 1.1rem;
    }

    .separator {
        margin: 0.75rem 0;
    }

    .dash-pnl {
        min-height: 100px;
        padding: 15px;
    }

    .dash-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
    }

    .dash-pnl-info span {
        font-size: 24px;
    }
}

/* TABLETS HEIGHT (max-height: 700px) */
@media (max-height: 700px) and (min-width: 768px) {
    .dashboard-section .row.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .dashboard-section h2 {
        font-size: 1.35rem;
        padding-bottom: 0.75rem !important;
    }

    .dashboard-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .dash-pnl {
        min-height: 90px;
        padding: 12px;
    }

    .dash-icon {
        width: 48px;
        height: 48px;
        line-height: 48px;
        font-size: 22px;
    }

    .dash-pnl-info {
        font-size: 10px;
    }

        .dash-pnl-info span {
            font-size: 22px;
        }

    .contnr-footer {
        padding: 10px 0;
    }

        .contnr-footer footer {
            padding: 6px 0;
        }

        .contnr-footer p {
            font-size: 0.75rem;
            margin-bottom: 0.25rem;
        }
}

/* DESKTOP ONLY (1200px and above) */
@media (min-width: 1200px) {
    .btn-sub {
        width: auto !important;
        padding: 10px 20px;
        font-size: 16px;
        border-radius: 8px;
    }

    .dashboard-section .row.text-start.g-4 {
        justify-content: center;
        gap: 16px !important;
    }

        .dashboard-section .row.text-start.g-4 > [class*="col-"] {
            flex: 0 0 auto !important;
            width: 23% !important;
            max-width: 260px !important;
        }

    .dash-pnl {
        padding: 15px;
        min-height: 100px;
    }

    .dash-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
        margin-right: 12px;
    }

    .dash-pnl-info {
        font-size: 11px;
    }

        .dash-pnl-info span {
            font-size: 24px;
        }
}

/* TABLETS & SMALL DESKTOPS (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .btn-sub {
        width: auto !important;
        padding: 10px 20px;
        font-size: 16px;
        border-radius: 8px;
    }

    .dashboard-section .row.text-start.g-4 {
        justify-content: center;
        gap: 20px !important;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

        .dashboard-section .row.text-start.g-4 > [class*="col-"] {
            flex: 0 0 calc(50% - 10px) !important;
            max-width: calc(50% - 10px) !important;
            width: auto !important;
        }

    .dash-pnl {
        width: 100%;
        min-width: 280px;
    }
}


/* ===== ORDER PAGE SPECIFIC STYLES ===== */
/* Wrap all order page styles in .banner-img-order parent selector */

/* About Section */
.banner-img-order ~ .container .m-about-info {
    margin-top: 2rem;
}

    .banner-img-order ~ .container .m-about-info h2 {
        font-weight: 700;
        border-bottom: 3px solid #78bc27;
        padding-bottom: 10px;
        display: inline-block;
    }

    .banner-img-order ~ .container .m-about-info p {
        color: #495057;
        font-size: 1rem;
    }

/* Panel Improvements - Order Page Only */
.banner-img-order ~ .container .panel {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    background: #fff;
}

.banner-img-order ~ .container .panel-default {
    border-color: #e9ecef;
}

.banner-img-order ~ .container .panel-heading {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #78bc27;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.125rem;
    color: #2c3e50;
}

.banner-img-order ~ .container .panel-body {
    padding: 24px;
}

/* Form Enhancements - Order Page Only */
.banner-img-order ~ .container .form-select,
.banner-img-order ~ .container .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

    .banner-img-order ~ .container .form-select:focus,
    .banner-img-order ~ .container .form-control:focus {
        border-color: #78bc27;
        box-shadow: 0 0 0 0.2rem rgba(120, 188, 39, 0.15);
        outline: none;
    }

    .banner-img-order ~ .container .form-select:hover,
    .banner-img-order ~ .container .form-control:hover {
        border-color: #a8d978;
    }

.banner-img-order ~ .container .form-label {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.938rem;
}

    .banner-img-order ~ .container .form-label i {
        color: #78bc27;
    }

.banner-img-order ~ .container .form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.813rem;
    line-height: 1.4;
}

/* Button Enhancements - Order Page Only */
.banner-img-order ~ .container .btn-sub {
    background: linear-gradient(135deg, #dc3545, #8b0000);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .banner-img-order ~ .container .btn-sub:hover {
        background: linear-gradient(135deg, #c82333, #660000);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        color: white;
    }

    .banner-img-order ~ .container .btn-sub:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }

    .banner-img-order ~ .container .btn-sub:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.banner-img-order ~ .container .btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    transition: all 0.3s ease;
}

    .banner-img-order ~ .container .btn-primary:hover {
        background: linear-gradient(135deg, #0a58ca, #084298);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

/* Card Improvements - Order Page Only */
.banner-img-order ~ .container .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .banner-img-order ~ .container .card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }

.banner-img-order ~ .container .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #dee2e6;
    padding: 16px 20px;
    font-weight: 600;
}

    .banner-img-order ~ .container .card-header h5 {
        margin: 0;
        font-size: 1.125rem;
    }

.banner-img-order ~ .container .card-body {
    padding: 20px;
}

.banner-img-order ~ .container .card.border-start {
    border-left-width: 5px !important;
}

/* Alert Improvements - Order Page Only */
.banner-img-order ~ .container .alert {
    border: none;
    border-radius: 10px;
    padding: 20px;
}

.banner-img-order ~ .container .alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left: 5px solid #28a745;
    color: #155724;
}

/* Modal Improvements - Order Page Modals */
#modal_success .modal-header,
#addrs_modal .modal-header {
    background: linear-gradient(135deg, #78bc27, #2d5016);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

    #modal_success .modal-header .modal-title,
    #addrs_modal .modal-header .modal-title {
        font-size: 1.5rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 12px;
        color: white;
    }

        #modal_success .modal-header .modal-title i,
        #addrs_modal .modal-header .modal-title i {
            font-size: 1.75rem;
        }

    #modal_success .modal-header .btn-close,
    #addrs_modal .modal-header .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

        #modal_success .modal-header .btn-close:hover,
        #addrs_modal .modal-header .btn-close:hover {
            opacity: 1;
        }

#modal_success .modal-content,
#addrs_modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#modal_success .modal-body,
#addrs_modal .modal-body {
    padding: 24px;
}

#modal_success .modal-footer,
#addrs_modal .modal-footer {
    padding: 20px 24px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

    #modal_success .modal-footer .btn,
    #addrs_modal .modal-footer .btn {
        padding: 10px 24px;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    #addrs_modal .modal-footer .btn-secondary {
        background: linear-gradient(135deg, #6c757d, #5a6268);
        border: none;
    }

        #addrs_modal .modal-footer .btn-secondary:hover {
            background: linear-gradient(135deg, #5a6268, #4e555b);
            transform: translateY(-2px);
        }

/* Spinner - Order Page Only */
.banner-img-order ~ .container .spinner-border {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.banner-img-order ~ .container .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Breadcrumb - Order Page Only */
.banner-img-order ~ .container .breadcrumb {
    margin-bottom: 0;
    background: linear-gradient(to right, #DFF0D8, #f8f9fa);
    border-radius: 0.375rem;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .banner-img-order ~ .container .breadcrumb .breadcrumb-item {
        font-size: 0.938rem;
    }

        .banner-img-order ~ .container .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
            content: "›";
            color: #6c757d;
            padding: 0 8px;
        }

        .banner-img-order ~ .container .breadcrumb .breadcrumb-item a {
            text-decoration: none;
            color: #78bc27;
            transition: all 0.2s ease;
        }

            .banner-img-order ~ .container .breadcrumb .breadcrumb-item a:hover {
                color: #5a9e1a;
                text-decoration: underline;
            }

        .banner-img-order ~ .container .breadcrumb .breadcrumb-item.active {
            color: #6c757d;
        }

/* Location Search Bar in Modal */
#addrs_modal .modal-search-bar {
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

    #addrs_modal .modal-search-bar .input-group {
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        border-radius: 8px;
        overflow: hidden;
    }

    #addrs_modal .modal-search-bar .input-group-text {
        border: none;
        padding: 12px 16px;
    }

    #addrs_modal .modal-search-bar #location-search {
        border: none;
        padding: 12px 16px;
        font-size: 0.938rem;
    }

        #addrs_modal .modal-search-bar #location-search:focus {
            box-shadow: none;
            border-color: transparent;
        }

    #addrs_modal .modal-search-bar #clear-search {
        border: none;
        border-left: 1px solid #dee2e6;
        background: white;
        color: #6c757d;
        transition: all 0.2s ease;
    }

        #addrs_modal .modal-search-bar #clear-search:hover {
            background: #f8f9fa;
            color: #dc3545;
        }

/* No Results Message */
#addrs_modal .no-results {
    padding: 40px 20px;
}

    #addrs_modal .no-results i {
        color: #dee2e6;
    }

    #addrs_modal .no-results h5 {
        font-weight: 600;
        margin-bottom: 8px;
    }

/* Location Badge on Button */
.banner-img-order ~ .container .badge {
    font-size: 0.813rem;
    padding: 4px 10px;
    font-weight: 600;
}

/* Smooth transitions for location items */
#addrs_modal .location-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    #addrs_modal .location-item:not([style*="display: none"]) {
        animation: fadeInLocation 0.3s ease;
    }

@keyframes fadeInLocation {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments - Order Page Only */
@media (max-width: 768px) {
    #modal_success .modal-dialog,
    #addrs_modal .modal-dialog {
        margin: 1rem;
    }

    .banner-img-order ~ .container .panel-body {
        padding: 16px;
    }

    .banner-img-order ~ .container .m-about-info {
        margin-top: 1.5rem;
    }

        .banner-img-order ~ .container .m-about-info h2 {
            font-size: 1.5rem;
        }

    .banner-img-order ~ .container .bs-callout {
        padding: 16px;
        margin: 16px 0;
    }

    .banner-img-order ~ .container .form-label {
        font-size: 0.875rem;
    }

    .banner-img-order ~ .container .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #modal_success .modal-header .modal-title,
    #addrs_modal .modal-header .modal-title {
        font-size: 1.125rem;
    }

    .banner-img-order ~ .container .card-header h5 {
        font-size: 1rem;
    }

    .banner-img-order ~ .container .panel-heading {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .banner-img-order ~ .container .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.938rem;
    }

    .banner-img-order ~ .container .breadcrumb {
        padding: 10px 12px;
    }

        .banner-img-order ~ .container .breadcrumb .breadcrumb-item {
            font-size: 0.875rem;
        }
}


/* ===== REPORT PAGE STYLES - ORGANIZED & OPTIMIZED ===== */

/* ========== TAB NAVIGATION ========== */
.banner-img-reward2 ~ .container .report-tabs {
    display: flex;
    border-bottom: 3px solid #78bc27;
    margin-bottom: 30px;
    gap: 10px;
}

.banner-img-reward2 ~ .container .report-tab {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

    .banner-img-reward2 ~ .container .report-tab:hover {
        background: #e9ecef;
    }

    .banner-img-reward2 ~ .container .report-tab.active {
        background: #78bc27;
        color: white;
        border-color: #78bc27;
    }

    .banner-img-reward2 ~ .container .report-tab i {
        font-size: 24px;
        display: block;
        margin-bottom: 10px;
    }

    .banner-img-reward2 ~ .container .report-tab h5 {
        margin: 0;
        font-weight: bold;
    }

    .banner-img-reward2 ~ .container .report-tab p {
        margin: 5px 0 0 0;
        font-size: 13px;
        opacity: 0.9;
    }

.banner-img-reward2 ~ .container .tab-content-section {
    display: none;
}

    .banner-img-reward2 ~ .container .tab-content-section.active {
        display: block;
    }

/* ========== ADMIN FILTER PANEL ========== */
.admin-filter-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border: 2px solid #2196F3;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    transition: all 0.3s ease;
}

    .admin-filter-card:hover {
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
        transform: translateY(-2px);
    }

.admin-filter-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-filter-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.admin-filter-title h6 {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    color: #1565C0;
}

.admin-filter-title small {
    color: #546E7A;
    font-size: 13px;
}

.admin-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-filter-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: 2px solid #2196F3;
    border-radius: 10px;
    background: white;
    color: #1976D2;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

    .admin-filter-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .admin-filter-btn:hover::before {
        left: 100%;
    }

    .admin-filter-btn:hover {
        background: #E3F2FD;
        border-color: #1976D2;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
    }

    .admin-filter-btn.active {
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
        border-color: #1565C0;
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
        transform: scale(1.02);
    }

    .admin-filter-btn i {
        font-size: 18px;
    }

/* ========== STEP CARDS & FORM ELEMENTS ========== */
.banner-img-reward2 ~ .container .step-card {
    border-left: 4px solid #78bc27;
}

.banner-img-reward2 ~ .container .step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #78bc27, #5a9620);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(120, 188, 39, 0.3);
}

.banner-img-reward2 ~ .container .year-btn {
    min-width: 80px;
    margin: 5px;
}

    .banner-img-reward2 ~ .container .year-btn.active {
        background-color: #78bc27 !important;
        border-color: #78bc27 !important;
        color: white !important;
    }

.banner-img-reward2 ~ .container .status-radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.banner-img-reward2 ~ .container .status-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
    background: white;
}

    .banner-img-reward2 ~ .container .status-radio-label:hover {
        border-color: #78bc27;
        background-color: #f8f9fa;
    }

    .banner-img-reward2 ~ .container .status-radio-label input[type="radio"] {
        margin-right: 8px;
        cursor: pointer;
        width: 18px;
        height: 18px;
    }

    .banner-img-reward2 ~ .container .status-radio-label.active {
        border-color: #78bc27;
        background-color: #DFF0D8;
    }

.banner-img-reward2 ~ .container .date-input-group {
    position: relative;
}

    .banner-img-reward2 ~ .container .date-input-group input[type="date"] {
        padding-left: 40px;
    }

    .banner-img-reward2 ~ .container .date-input-group .input-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #78bc27;
        pointer-events: none;
    }

/* ========== BUTTONS ========== */
.banner-img-reward2 ~ .container .generate-btn {
    background: linear-gradient(135deg, #78bc27, #5a9620);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(120, 188, 39, 0.3);
    transition: all 0.3s;
}

    .banner-img-reward2 ~ .container .generate-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 8px rgba(120, 188, 39, 0.4);
    }

    .banner-img-reward2 ~ .container .generate-btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
    }

/* ========== SELECT2 DROPDOWN STYLING ========== */
.select2-container--bootstrap4 .select2-selection {
    height: calc(2.5rem + 2px) !important;
    font-size: 1.125rem;
    border-radius: 8px;
    border: 2px solid #ced4da;
    transition: all 0.3s ease;
}

    .select2-container--bootstrap4 .select2-selection:focus,
    .select2-container--bootstrap4.select2-container--focus .select2-selection,
    .select2-container--bootstrap4.select2-container--open .select2-selection {
        border-color: #78bc27;
        box-shadow: 0 0 0 0.2rem rgba(120, 188, 39, 0.25);
    }

.select2-container--bootstrap4 .select2-selection__rendered {
    line-height: calc(2.5rem + 2px) !important;
    padding-left: 12px;
    padding-right: 60px !important;
}

.select2-container--bootstrap4 .select2-selection__arrow {
    height: calc(2.5rem + 2px) !important;
}

.select2-container--bootstrap4 .select2-selection__clear {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #dc3545;
    cursor: pointer;
    z-index: 10;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

    .select2-container--bootstrap4 .select2-selection__clear:hover {
        color: #c82333;
        background: #f8d7da;
    }

.select2-search__field {
    height: 38px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    border: 2px solid #ced4da !important;
    padding: 8px 12px !important;
}

    .select2-search__field:focus {
        border-color: #78bc27 !important;
        outline: none !important;
        box-shadow: 0 0 0 0.2rem rgba(120, 188, 39, 0.25) !important;
    }

.select2-container--bootstrap4 .select2-dropdown {
    border: 2px solid #78bc27;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 4px;
}

.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
    background-color: #78bc27;
    color: white;
}

/* ========== LOADING OVERLAYS ========== */
/* Filter Loading Overlay */
.filter-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

    .filter-loading-overlay.active {
        display: flex !important;
    }

.filter-loading-content {
    background: white;
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.filter-loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e3f2fd;
    border-top-color: #2196F3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.filter-loading-text {
    color: #1565C0;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.filter-loading-subtext {
    color: #546E7A;
    font-size: 16px;
    margin: 0;
}

/* Excel Export Overlay */
.export-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

    .export-loading-overlay.active {
        display: flex !important;
    }

.export-loading-content {
    background: white;
    padding: 40px 60px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.3s ease-out;
}

.export-loading-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #78bc27;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.export-loading-text {
    font-size: 20px;
    font-weight: bold;
    color: #2d5016;
    margin-bottom: 10px;
}

.export-loading-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* ========== LOADING STATES ========== */
#claimsCampaignDropdown:disabled {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.loading-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

    .loading-dots span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .loading-dots span:nth-child(3) {
        animation-delay: 0.4s;
    }

.progress-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

    .progress-dots span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .progress-dots span:nth-child(3) {
        animation-delay: 0.4s;
    }

/* ========== NOTIFICATIONS ========== */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 350px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

    .custom-notification.hiding {
        animation: slideOutRight 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045);
    }

    .custom-notification.notification-success {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        border-color: #28a745;
        color: #155724;
    }

    .custom-notification.notification-error {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
        border-color: #dc3545;
        color: #721c24;
    }

    .custom-notification.notification-info {
        background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
        border-color: #17a2b8;
        color: #0c5460;
    }

    .custom-notification.notification-warning {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        border-color: #ffc107;
        color: #856404;
    }

.notification-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

    .notification-close:hover {
        opacity: 1;
        background: rgba(0,0,0,0.1);
        transform: rotate(90deg);
    }

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: currentColor;
    border-radius: 0 0 12px 12px;
    animation: progressBar 5s linear;
    opacity: 0.5;
}

/* Stack notifications */
.custom-notification:nth-child(2) {
    top: 100px;
}

.custom-notification:nth-child(3) {
    top: 180px;
}

.custom-notification:nth-child(4) {
    top: 260px;
}

/* ========== REPORT CONTENT ========== */
.banner-img-reward2 ~ .container .info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.banner-img-reward2 ~ .container #reportChart {
    max-height: 400px;
}

.banner-img-reward2 ~ .container #reportPreviewSection .card-header {
    background-color: #f8f9fa;
}

.banner-img-reward2 ~ .container #reportLoadingIndicator {
    padding: 40px;
}

.banner-img-reward2 ~ .container #reportContent {
    min-height: 200px;
}

    .banner-img-reward2 ~ .container #reportContent table {
        width: 100%;
        margin-bottom: 1rem;
    }

        .banner-img-reward2 ~ .container #reportContent table th {
            background-color: #f8f9fa;
            font-weight: 600;
            border-bottom: 2px solid #dee2e6;
            padding: 12px;
        }

        .banner-img-reward2 ~ .container #reportContent table td {
            padding: 10px 12px;
            border-bottom: 1px solid #dee2e6;
        }

        .banner-img-reward2 ~ .container #reportContent table tr:hover {
            background-color: #f8f9fa;
        }

/* ========== ALERTS ========== */
.banner-img-reward2 ~ .container .alert {
    border-radius: 8px;
    border: none;
}

.banner-img-reward2 ~ .container .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.banner-img-reward2 ~ .container .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.banner-img-reward2 ~ .container .alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.banner-img-reward2 ~ .container .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ========== 12. RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    /* Admin Filter */
    .admin-filter-card .card-body {
        padding: 20px;
    }

    .admin-filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-filter-buttons {
        width: 100%;
    }

    .admin-filter-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }

    /* Tabs */
    .banner-img-reward2 ~ .container .report-tabs {
        flex-direction: column;
        gap: 0;
    }

    .banner-img-reward2 ~ .container .report-tab {
        border-radius: 0;
        border-bottom: 1px solid #e0e0e0;
    }

        .banner-img-reward2 ~ .container .report-tab:first-child {
            border-radius: 10px 10px 0 0;
        }

        .banner-img-reward2 ~ .container .report-tab:last-child {
            border-bottom: none;
        }

    /* Step Elements */
    .banner-img-reward2 ~ .container .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .banner-img-reward2 ~ .container .generate-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .banner-img-reward2 ~ .container .status-radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .banner-img-reward2 ~ .container .status-radio-label {
        width: 100%;
        justify-content: center;
    }

    .banner-img-reward2 ~ .container .year-btn {
        min-width: 70px;
        font-size: 14px;
        padding: 8px 12px;
    }

    /* Loading Overlays */
    .export-loading-content,
    .filter-loading-content {
        padding: 30px 40px;
        margin: 0 20px;
    }

    .export-loading-spinner,
    .filter-loading-spinner {
        width: 60px;
        height: 60px;
        border-width: 6px;
    }

    .export-loading-text,
    .filter-loading-text {
        font-size: 18px;
    }

    .export-loading-subtext,
    .filter-loading-subtext {
        font-size: 13px;
    }

    /* Notifications */
    .custom-notification {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .admin-filter-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
    }

        .admin-filter-btn:first-child {
            flex: 1 1 100%;
        }
}

@media (max-width: 576px) {
    .banner-img-reward2 ~ .container .report-tab {
        padding: 15px;
    }

        .banner-img-reward2 ~ .container .report-tab i {
            font-size: 20px;
            margin-bottom: 8px;
        }

        .banner-img-reward2 ~ .container .report-tab h5 {
            font-size: 16px;
        }

        .banner-img-reward2 ~ .container .report-tab p {
            font-size: 12px;
        }

    .banner-img-reward2 ~ .container .step-card .card-body {
        padding: 15px;
    }

    .banner-img-reward2 ~ .container .step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .banner-img-reward2 ~ .container .generate-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner-img-reward2 ~ .container .info-box {
        padding: 12px;
        font-size: 14px;
    }

    .banner-img-reward2 ~ .container .year-btn {
        min-width: 60px;
        font-size: 13px;
        padding: 6px 10px;
        margin: 3px;
    }

    .export-loading-content,
    .filter-loading-content {
        padding: 25px 30px;
        margin: 0 15px;
    }

    .export-loading-spinner,
    .filter-loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 5px;
    }

    .export-loading-text,
    .filter-loading-text {
        font-size: 16px;
    }

    .export-loading-subtext,
    .filter-loading-subtext {
        font-size: 12px;
    }
}

/*Legacy Section CSS*/
.banner-img-reward2 ~ .container #legacyReportsSection {
    padding: 0;
}
    .banner-img-reward2 ~ .container .card.mb-4[style*="border-left: 4px solid #78bc27"] {
        border: 1px solid #e3e8ed;
        border-left: 5px solid #78bc27 !important;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .banner-img-reward2 ~ .container .card.mb-4[style*="border-left: 4px solid #78bc27"]:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .banner-img-reward2 ~ .container .card.mb-4[style*="border-left: 4px solid #78bc27"] .card-header {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-bottom: 2px solid #e9ecef;
        padding: 20px 24px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .banner-img-reward2 ~ .container .card.mb-4[style*="border-left: 4px solid #78bc27"] .card-header:hover {
            background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
        }

        .banner-img-reward2 ~ .container .card.mb-4[style*="border-left: 4px solid #78bc27"] .card-header h6 {
            color: #2d5016;
            font-weight: 700;
            font-size: 18px;
            margin: 0;
        }

            .banner-img-reward2 ~ .container .card.mb-4[style*="border-left: 4px solid #78bc27"] .card-header h6 .fa-archive {
                color: #28a745;
                margin-right: 10px;
                font-size: 20px;
            }

            .banner-img-reward2 ~ .container .card.mb-4[style*="border-left: 4px solid #78bc27"] .card-header h6 small {
                color: #6c757d;
                font-weight: 400;
                font-size: 14px;
            }

        .banner-img-reward2 ~ .container .card.mb-4[style*="border-left: 4px solid #78bc27"] .card-header #legacyCollapseIcon {
            color: #78bc27;
            font-size: 18px;
            transition: transform 0.3s ease, color 0.3s ease;
        }

            .banner-img-reward2 ~ .container .card.mb-4[style*="border-left: 4px solid #78bc27"] .card-header #legacyCollapseIcon.fa-chevron-up {
                transform: rotate(180deg);
            }

    .banner-img-reward2 ~ .container #legacyReportsSection .card-body {
        padding: 32px;
        background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    }

    .banner-img-reward2 ~ .container #legacyReportsSection .alert-info {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border: none;
        border-left: 5px solid #2196F3;
        border-radius: 12px;
        padding: 20px 24px;
        box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
        animation: fadeIn 0.6s ease;
    }

        .banner-img-reward2 ~ .container #legacyReportsSection .alert-info strong {
            color: #1565C0;
            font-weight: 700;
            font-size: 16px;
        }

        .banner-img-reward2 ~ .container #legacyReportsSection .alert-info .fa-info-circle {
            color: #1976D2;
            font-size: 24px;
            animation: pulse 2s ease-in-out infinite;
        }

    .banner-img-reward2 ~ .container #legacyReportsSection .step-card {
        border: none;
        border-left: 5px solid #78bc27;
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

        .banner-img-reward2 ~ .container #legacyReportsSection .step-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
            border-left-width: 6px;
        }

        .banner-img-reward2 ~ .container #legacyReportsSection .step-card .card-body {
            padding: 28px;
            background: white;
            position: relative;
            overflow: hidden;
        }

            .banner-img-reward2 ~ .container #legacyReportsSection .step-card .card-body::before {
                content: '';
                position: absolute;
                top: -50%;
                right: -50%;
                width: 200%;
                height: 200%;
                background: radial-gradient(circle, rgba(120, 188, 39, 0.03) 0%, transparent 70%);
                pointer-events: none;
            }

    .banner-img-reward2 ~ .container #legacyReportsSection .step-number {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #78bc27 0%, #5a9e1a 100%);
        color: white;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: 800;
        box-shadow: 0 6px 16px rgba(120, 188, 39, 0.35), inset 0 -2px 8px rgba(0, 0, 0, 0.15);
        position: relative;
        transition: all 0.3s ease;
    }

        .banner-img-reward2 ~ .container #legacyReportsSection .step-number::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
            border-radius: 16px;
        }

    .banner-img-reward2 ~ .container #legacyReportsSection .step-card:hover .step-number {
        transform: rotate(5deg) scale(1.05);
        box-shadow: 0 8px 20px rgba(120, 188, 39, 0.45), inset 0 -2px 8px rgba(0, 0, 0, 0.15);
    }

    .banner-img-reward2 ~ .container #legacyReportsSection .card-title {
        font-size: 18px;
        font-weight: 700;
        color: #2d5016;
        margin-bottom: 0;
        letter-spacing: -0.3px;
    }

        .banner-img-reward2 ~ .container #legacyReportsSection .card-title i {
            margin-right: 8px;
            font-size: 20px;
        }

    .banner-img-reward2 ~ .container #legacyReportsSection .text-muted.small {
        font-size: 14px;
        color: #6c757d;
        line-height: 1.6;
    }

.banner-img-reward2 ~ .container #legacyYearButtonsContainer {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 12px;
    min-height: 80px;
}

.banner-img-reward2 ~ .container .legacy-year-btn {
    border: 2px solid #e3e8ed;
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    color: #495057;
    padding: 14px 28px;
    margin: 6px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

    .banner-img-reward2 ~ .container .legacy-year-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(120, 188, 39, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .banner-img-reward2 ~ .container .legacy-year-btn:hover {
        border-color: #78bc27;
        background: linear-gradient(135deg, #f0f9e8 0%, #e8f5e0 100%);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(120, 188, 39, 0.25);
    }

        .banner-img-reward2 ~ .container .legacy-year-btn:hover::before {
            left: 100%;
        }

    .banner-img-reward2 ~ .container .legacy-year-btn.active {
        background: linear-gradient(135deg, #78bc27 0%, #5a9e1a 100%);
        color: white;
        border-color: #4a8515;
        box-shadow: 0 6px 20px rgba(120, 188, 39, 0.4), inset 0 -2px 8px rgba(0, 0, 0, 0.2);
        transform: scale(1.05);
    }

        .banner-img-reward2 ~ .container .legacy-year-btn.active i {
            animation: bounce 0.6s ease;
        }

.banner-img-reward2 ~ .container #legacyReportsSection .date-input-group {
    position: relative;
}

    .banner-img-reward2 ~ .container #legacyReportsSection .date-input-group .input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #78bc27;
        font-size: 18px;
        pointer-events: none;
        z-index: 2;
        transition: all 0.3s ease;
    }

    .banner-img-reward2 ~ .container #legacyReportsSection .date-input-group input[type="date"] {
        padding-left: 48px;
        border: 2px solid #e3e8ed;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        background: white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

        .banner-img-reward2 ~ .container #legacyReportsSection .date-input-group input[type="date"]:hover:not(:disabled) {
            border-color: #78bc27;
            box-shadow: 0 4px 12px rgba(120, 188, 39, 0.15);
        }

        .banner-img-reward2 ~ .container #legacyReportsSection .date-input-group input[type="date"]:focus {
            border-color: #78bc27;
            box-shadow: 0 0 0 4px rgba(120, 188, 39, 0.15);
            outline: none;
        }

            .banner-img-reward2 ~ .container #legacyReportsSection .date-input-group input[type="date"]:focus ~ .input-icon {
                color: #5a9e1a;
                transform: translateY(-50%) scale(1.1);
            }

        .banner-img-reward2 ~ .container #legacyReportsSection .date-input-group input[type="date"]:disabled {
            background: #f8f9fa;
            cursor: not-allowed;
            opacity: 0.7;
        }

.banner-img-reward2 ~ .container .legacy-campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border-radius: 16px;
    border: 2px solid #e3e8ed;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.banner-img-reward2 ~ .container .legacy-campaign-item {
    background: white;
    border: 2px solid #e3e8ed;
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    user-select: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

    .banner-img-reward2 ~ .container .legacy-campaign-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(120, 188, 39, 0.05), transparent);
        transition: left 0.5s ease;
    }

    .banner-img-reward2 ~ .container .legacy-campaign-item:hover {
        border-color: #78bc27;
        box-shadow: 0 6px 20px rgba(120, 188, 39, 0.2);
        transform: translateY(-4px) scale(1.01);
    }

        .banner-img-reward2 ~ .container .legacy-campaign-item:hover::before {
            left: 100%;
        }

    .banner-img-reward2 ~ .container .legacy-campaign-item.selected {
        background: linear-gradient(135deg, #f0f9e8 0%, #e3f4d7 100%);
        border-color: #78bc27;
        border-width: 3px;
        box-shadow: 0 6px 24px rgba(120, 188, 39, 0.25), inset 0 1px 3px rgba(120, 188, 39, 0.1);
        animation: selectPulse 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .banner-img-reward2 ~ .container .legacy-campaign-item.inactive {
        opacity: 0.75;
    }

        .banner-img-reward2 ~ .container .legacy-campaign-item.inactive .legacy-campaign-name::after {
            content: " (INACTIVE)";
            color: #dc3545;
            font-size: 0.8em;
            font-weight: 700;
            padding: 2px 8px;
            background: #f8d7da;
            border-radius: 6px;
            margin-left: 8px;
        }

.banner-img-reward2 ~ .container .legacy-campaign-checkbox {
    font-size: 26px;
    color: #adb5bd;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.banner-img-reward2 ~ .container .legacy-campaign-item:hover .legacy-campaign-checkbox {
    color: #78bc27;
    transform: scale(1.15);
}

.banner-img-reward2 ~ .container .legacy-campaign-item.selected .legacy-campaign-checkbox {
    color: #78bc27;
    font-size: 28px;
    animation: checkBounce 0.4s ease;
}

.banner-img-reward2 ~ .container .legacy-campaign-info {
    flex: 1;
    min-width: 0;
}

.banner-img-reward2 ~ .container .legacy-campaign-name {
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-img-reward2 ~ .container .legacy-campaign-item.selected .legacy-campaign-name {
    color: #1a3009;
}

.banner-img-reward2 ~ .container .legacy-campaign-dates {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .banner-img-reward2 ~ .container .legacy-campaign-dates i {
        color: #78bc27;
        font-size: 14px;
    }

.banner-img-reward2 ~ .container #legacyReportsSection .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-left: 5px solid #28a745;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

    .banner-img-reward2 ~ .container #legacyReportsSection .alert-success .fa-file-excel-o {
        color: #28a745;
        font-size: 32px;
    }

    .banner-img-reward2 ~ .container #legacyReportsSection .alert-success .badge {
        padding: 8px 14px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

        .banner-img-reward2 ~ .container #legacyReportsSection .alert-success .badge.bg-primary {
            background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
        }

        .banner-img-reward2 ~ .container #legacyReportsSection .alert-success .badge.bg-info {
            background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
        }

.banner-img-reward2 ~ .container #legacySelectAllCampaigns {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .banner-img-reward2 ~ .container #legacySelectAllCampaigns::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.5s, height 0.5s;
    }

    .banner-img-reward2 ~ .container #legacySelectAllCampaigns:hover::before {
        width: 300px;
        height: 300px;
    }

    .banner-img-reward2 ~ .container #legacySelectAllCampaigns:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .banner-img-reward2 ~ .container #legacySelectAllCampaigns i {
        margin-right: 8px;
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .banner-img-reward2 ~ .container #legacySelectAllCampaigns:hover i {
        transform: scale(1.2);
    }

.banner-img-reward2 ~ .container #legacyGenerateReportBtn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35), inset 0 -2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .banner-img-reward2 ~ .container #legacyGenerateReportBtn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .banner-img-reward2 ~ .container #legacyGenerateReportBtn:hover:not(:disabled) {
        background: linear-gradient(135deg, #218838 0%, #155724 100%);
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 10px 28px rgba(40, 167, 69, 0.45), inset 0 -2px 8px rgba(0, 0, 0, 0.2);
    }

        .banner-img-reward2 ~ .container #legacyGenerateReportBtn:hover:not(:disabled)::before {
            left: 100%;
        }

    .banner-img-reward2 ~ .container #legacyGenerateReportBtn:active:not(:disabled) {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    }

    .banner-img-reward2 ~ .container #legacyGenerateReportBtn:disabled {
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
        cursor: not-allowed;
        transform: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .banner-img-reward2 ~ .container #legacyGenerateReportBtn i {
        margin-right: 10px;
        font-size: 20px;
        animation: pulse 2s ease-in-out infinite;
    }

.banner-img-reward2 ~ .container .legacy-campaign-grid::-webkit-scrollbar {
    width: 10px;
}

.banner-img-reward2 ~ .container .legacy-campaign-grid::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
    margin: 10px 0;
}

.banner-img-reward2 ~ .container .legacy-campaign-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #78bc27 0%, #5a9e1a 100%);
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: background 0.3s ease;
}

    .banner-img-reward2 ~ .container .legacy-campaign-grid::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #5a9e1a 0%, #4a8515 100%);
    }

.banner-img-reward2 ~ .container #legacyCollapseIcon {
    transition: transform 0.3s ease;
}

.banner-img-reward2 ~ .container .legacy-campaign-grid .text-center.text-muted {
    padding: 60px 20px;
}

    .banner-img-reward2 ~ .container .legacy-campaign-grid .text-center.text-muted i {
        font-size: 64px;
        color: #dee2e6;
        margin-bottom: 20px;
        opacity: 0.5;
        animation: float 3s ease-in-out infinite;
    }

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .banner-img-reward2 ~ .container #legacyReportsSection .card-body {
        padding: 20px;
    }

    .banner-img-reward2 ~ .container .legacy-campaign-grid {
        grid-template-columns: 1fr;
        max-height: 350px;
        padding: 16px;
        gap: 12px;
    }

    .banner-img-reward2 ~ .container .legacy-year-btn {
        padding: 12px 20px;
        font-size: 14px;
        margin: 4px;
    }

    .banner-img-reward2 ~ .container #legacyReportsSection .step-number {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .banner-img-reward2 ~ .container #legacyGenerateReportBtn {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
    }

    .banner-img-reward2 ~ .container .legacy-campaign-item {
        padding: 14px 16px;
    }
}

@media (max-width: 576px) {
    .banner-img-reward2 ~ .container #legacyReportsSection .card-body {
        padding: 16px;
    }

    .banner-img-reward2 ~ .container .legacy-year-btn {
        padding: 10px 16px;
        font-size: 13px;
        margin: 3px;
    }

    .banner-img-reward2 ~ .container #legacyReportsSection .step-card .card-body {
        padding: 20px;
    }

    .banner-img-reward2 ~ .container #legacyReportsSection .step-number {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .banner-img-reward2 ~ .container .legacy-campaign-name {
        font-size: 14px;
    }

    .banner-img-reward2 ~ .container .legacy-campaign-dates {
        font-size: 12px;
    }

    .banner-img-reward2 ~ .container #legacySelectAllCampaigns {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    .banner-img-reward2 ~ .container #legacyGenerateReportBtn {
        padding: 12px 24px;
        font-size: 15px;
    }
}



