:root {
    --primary-color: #003366;
    --secondary-color: #005a9e;
    --accent-color: #f0ad4e;
    --light-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --hover-color: #dc3545;
}

/* --- Base & Background --- */
/* body {
    font-family: 'Poppins', sans-serif;
    background-image: linear-gradient(rgba(0, 10, 30, 0.7), rgba(0, 20, 40, 0.85)), url('https://images.unsplash.com/photo-1600985163348-5389b7a48d13?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #f0f4f8;
    padding: 2rem 0;
    min-height: 100vh;
} */

/* --- Animation Keyframes --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- General Styling --- */
.main-title {
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}


/* --- Form Card (Glassmorphism) --- */
#pdfForm {
    background: var(--light-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: slideInUp 0.8s ease-out;
}

.form-label {
    font-weight: 500;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ced4da;
    color: #333;
}

.form-control:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(240, 173, 78, 0.4);
    border-color: var(--accent-color);
}

/* --- Button Styling --- */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d8932e;
    border-color: #d8932e;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Results & Tables --- */
.results-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    visibility: hidden;
}

.results-container.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.count-summary {
    background: var(--light-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.count-summary h5 {
    margin-bottom: 0;
    font-size: 1rem;
}

.count-summary .badge {
    font-size: 1rem;
    font-weight: 600;
}

.card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-align: center;
}

.card-header {
    background-color: rgb(8, 8, 134);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* --- Table Styling with Borders --- */
.table {
    color: #fff;
    border-collapse: collapse;
}

.table thead {
    color: #f0ad4e;
}

/* Add borders to table cells */
.table th,
.table td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem;
    vertical-align: middle;
}

/* Table header borders */
.table thead th {
    border-bottom: 2px solid rgba(240, 173, 78, 0.5);
    background-color: rgb(155, 102, 81);
    font-weight: 600;
}

/* Hover effect with red color */
.table-hover>tbody>tr:hover>* {
    color: #1671c7 !important;
    transition: color 0.3s ease;
}

.table-hover>tbody>tr:hover {
    background-color: inherit !important;
    transform: none;
    box-shadow: none;
}

.export-btn {
    color: #fff;
    border-color: #fff;
}

.export-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* --- Toggle Button Styling --- */
#showMatchedBtn,
#showUnmatchedBtn {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 0.5rem;
}

#showMatchedBtn:hover,
#showUnmatchedBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#showMatchedBtn.active {
    background-color: #198754;
    border-color: #198754;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
    background: linear-gradient(135deg, #157347, #1ea085);
}

#showUnmatchedBtn.active {
    background-color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #fa0303, #df5050);
}

/* --- Table Card Visibility --- */
#matchedCard,
#unmatchedCard {
    transition: all 0.3s ease;
}

/* --- Mark Button Styling --- */
.btn-success.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #198754, #20c997);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
    min-width: 100px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-success.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
    background: linear-gradient(135deg, #157347, #1ea085);
}

.btn-success.btn-sm:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}

.badge.bg-verified {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    background: #063385 !important;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgb(6 20 61);
    min-width: 100px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    transition: all 0.3s ease;
}

.badge.bg-verified:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Icon styling for both button types */
.btn-success.btn-sm i,
.badge.bg-success i {
    font-size: 1rem;
    margin-right: 0.25rem;
}

#goTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    padding: 10px 15px; /* For round look */
    font-size: 20px; /* Icon size */
}

#goTopBtn:hover {
    background-color: #f6de58;
    transform: scale(1.05);
}

.login-container {
    background: var(--light-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-container h2 {
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    color: var(--accent-color);
}

/* --- Form --- */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    display: block;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 149, 2, 0.4);
    outline: none;
}

/* --- Password Field with Eye Icon --- */
.password-container {
    display: flex;
    align-items: center;
    position: relative;
}

.password-container input {
    flex: 1;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 22px;
    height: 22px;
    fill: var(--secondary-color);
}

/* --- Forgot Password --- */
.forgot-password {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #d8932e;
    text-decoration: underline;
}

/* --- Captcha --- */
.captcha-wrapper {
    margin-top: 1rem;
}

.captcha-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
}

.captcha {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    user-select: none;
}

.refresh-btn {
    background: var(--accent-color);
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.refresh-btn:hover {
    background: #d8932e;
}

/* --- Submit Button --- */
button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--accent-color);
    border: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    background-color: #d8932e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Custom badge styles for user types --- */
.badge-admin {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-user {
    padding: 0.45rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.2px;
    background-color: rgba(25, 109, 8, 0.918) !important;
}
        :root {
            --primary-color: #003366;
            --secondary-color: #005a9e;
            --accent-color: #f0ad4e;
            --light-bg: rgba(255, 255, 255, 0.1);
            --border-color: rgba(255, 255, 255, 0.2);
            --hover-color: #dc3545;
        }

        /* --- Base & Background --- */
        body {
            font-family: 'Poppins', sans-serif;
            background-image: linear-gradient(rgba(0, 10, 30, 0.7), rgba(0, 20, 40, 0.85)), url('https://images.unsplash.com/photo-1600985163348-5389b7a48d13?auto=format&fit=crop&q=80&w=2070');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: #f0f4f8;
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* --- Animation Keyframes --- */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- Reset Container --- */
        .reset-container {
            background: var(--light-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border-color);
            padding: 2.5rem;
            border-radius: 1rem;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
            width: 100%;
            max-width: 450px;
            text-align: center;
            animation: slideInUp 0.8s ease-out;
        }

        .reset-container h2 {
            font-weight: 600;
            letter-spacing: 1px;
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
            color: var(--accent-color);
            animation: fadeIn 1s ease-out;
        }

        .reset-container p {
            margin-bottom: 1.5rem;
            color: #f0f4f8;
            line-height: 1.6;
        }

        /* --- Form Styling --- */
        .form-group {
            margin-bottom: 1.2rem;
            text-align: left;
        }

        .form-group label {
            font-weight: 500;
            margin-bottom: 0.3rem;
            display: block;
            color: #f0f4f8;
        }

        .form-group input[type="text"],
        .form-group input[type="password"] {
            width: 100%;
            padding: 0.75rem;
            border-radius: 0.5rem;
            border: 1px solid #ced4da;
            background-color: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 1rem;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .form-group input:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.25rem rgba(240, 173, 78, 0.4);
            outline: none;
            background-color: #fff;
        }

        /* --- Password Container --- */
        .password-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .password-container input {
            padding-right: 3rem;
        }

        .password-toggle {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #666;
            transition: color 0.3s ease;
        }

        .password-toggle:hover {
            color: var(--accent-color);
        }

        .eye-icon {
            display: inline-block;
            width: 20px;
            height: 20px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }

        .eye-closed {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
        }

        .eye-open {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E");
        }

        /* --- Button Styling --- */
        button[type="submit"] {
            width: 100%;
            padding: 0.75rem;
            background-color: var(--accent-color);
            border: none;
            border-radius: 0.5rem;
            color: #fff;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        button[type="submit"]:hover {
            background-color: #d8932e;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        /* --- Back Link --- */
        .back-link {
            display: inline-block;
            margin-top: 1.5rem;
            color: var(--accent-color);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .back-link:hover {
            color: #d8932e;
            text-decoration: underline;
        }

        /* --- Modal Styling --- */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: var(--light-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border-color);
            margin: 15% auto;
            padding: 2rem;
            border-radius: 1rem;
            width: 90%;
            max-width: 400px;
            text-align: center;
            position: relative;
            animation: slideInUp 0.3s ease-out;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            position: absolute;
            right: 1rem;
            top: 0.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close:hover,
        .close:focus {
            color: var(--accent-color);
        }

        #modalMessage {
            margin: 1rem 0;
            color: #f0f4f8;
            line-height: 1.6;
        }

        /* --- Responsive Design --- */
        @media (max-width: 768px) {
            .reset-container {
                margin: 1rem;
                padding: 2rem;
            }
            
            .modal-content {
                margin: 20% auto;
                width: 95%;
            }
        }
        .btn-back {
        position: fixed;
        top: 70px;
        left: 40px;
        width: 40px;
        height: 40px;
        background: #f0ad4e;       /* black background */
        color: #fff;            /* white arrow */
        border-radius: 50%;     /* round */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;      /* arrow size */
        text-decoration: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        transition: all 0.2s ease-in-out;
        z-index: 9999;
        }

        .btn-back:hover {
        background: #d5db9da9;       /* lighter hover */
        transform: scale(1.1);  /* slight zoom on hover */
        }
           /* --- Responsive Table for Matched & Unmatched Transactions --- */
        #matchedCard,
        #unmatchedCard {
            overflow-x: auto;
            width: 100%;
        }
        
        #matchedCard .table,
        #unmatchedCard .table {
            min-width: 900px; /* Adjust as needed for your columns */
            table-layout: auto;
            word-break: break-word;
        }
        
        #matchedCard .table th,
        #matchedCard .table td,
        #unmatchedCard .table th,
        #unmatchedCard .table td {
            max-width: 180px;   /* Adjust as needed */
            white-space: normal;
            word-break: break-word;
            overflow-wrap: break-word;
        }
                 /* --- Warning (Revert) Button Styling (same look as verify/verified) --- */
        .btn-warning.btn-sm {
            padding: 0.375rem 0.75rem;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.3s ease;
            background: linear-gradient(135deg, #f7c72a, #ff7675); /* red gradient */
            border: none;
            border-radius: 0.5rem;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
            min-width: 100px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: #fff;
        }
        
        .btn-warning.btn-sm:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
            background: linear-gradient(135deg, #b52a37, #ff7675);
        }
        
        .btn-warning.btn-sm:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
        }
        
        /* Optional: icon styling for warning button */
        .btn-warning.btn-sm i {
            font-size: 1rem;
            margin-right: 0.25rem;
        }
        .mb-4 {
             margin-bottom: 4.5rem !important;
        }
        .h2 {
            margin-top: 10px !important;
        }
                /* Overlay */
        #confirm-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        /* Confirm Box */
        .confirm-box {
            background: #fff;
            padding: 25px 30px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            max-width: 400px;
            width: 90%;
            font-family: 'Poppins', sans-serif;
        }

        .confirm-box p {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: #333;
            font-weight: 500;
        }
        