body {
    background: #fff;
    min-height: 100vh;
    margin: 0;
}

/* Apply padding only to pages with fixed navbar (authenticated pages) */
body[data-authenticated="true"] {
    padding-top: 80px; /* Compensate for fixed navbar */
}
.glass-navbar {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    background-size: 400% 400% !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    /* border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
}
.upload-documents-holder h6{
    color: #000;
}
.badge-light-danger {
    color: #e7515a;
    background-color: #fbeced;
    border: 1px solid #fbeced;
    padding: 5px 10px;
    border-radius: 6px;
    position: relative;
    top: 4px;
}
.accordion .card-header section > div .icons {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 9px;
}
.btn-primary {
    background: #00aeef;
    box-shadow: none;
    border: 1px solid #00aeef;
    color: #fff;
}
.btn{
    border-radius: 4px;
    padding: 10px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-outline-primary {
    background: none;
    box-shadow: none;
    border: 1px solid #00aeef !important;
    color: #00aeef !important;
    background: #fff !important;
}
.btn-outline-primary:hover {
    background: #00aeef !important;
    color: #fff !important;
}
.sidebar {
    overflow-y: auto;
    z-index: 1020;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    border-right: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.custom-nav .nav-link {
    color: #fff;
    font-weight: normal;
    padding: 10px 15px;
    border-radius: 0;
    transition: all 0.3s ease;
}
.custom-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
}
.navbar-collapse{
    flex-grow: inherit !important;
}
.btn-sm.download-report-btn.btn-success{
    background: #fff;
    color: #00aeef;
    border: 1px solid #00aeef;
}
.custom-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
}
.custom-nav .nav-link.active:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.custom-nav .nav-link i {
    width: 20px;
    text-align: center;
}
.custom-nav .nav-link span {
    margin-left: 10px;
}
.custom-nav .nav-link.active span {
    color: #00aeef;
}
.custom-nav .nav-link.active i {
    color: #00aeef;
}
.custom-nav .nav-link.active:hover span {
    color: #00aeef;
}
.custom-nav .nav-link.active:hover i {
    color: #00aeef;
}
.custom-nav .nav-link:hover i {
    color: #00aeef;
}
.custom-nav .nav-link:hover span {
    color: #00aeef;
}
.custom-nav .nav-link:hover i {
    color: #00aeef;
}
.custom-nav .nav-link.active span {
    color: #00aeef;
}
.custom-nav .nav-link.active i {
    color: #00aeef;
}
.custom-nav .nav-link.active:hover span {
    color: #00aeef;
}
.custom-nav .nav-link.active:hover i {
    color: #00aeef;
}
.custom-nav .nav-link:hover span {
    color: #00aeef;
}
.custom-nav .nav-link:hover i {
    color: #00aeef;
}
.nav-link:hover {
    border-left-color: rgba(255, 255, 255, 0.5);
}
.nav-link:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
 /* Enhanced Table Styling */
 .deals_custom_table .table > tbody tr:first-child td:last-child .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) a + .dropdown-menu.show {
    top: -64px !important;
}
.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
}
.btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}
.bg-success{
    border-radius: 4px;
}
/* Modern Card Design */
.card {
        border: none;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
        overflow: hidden;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.04);
    
}
.content-wrapper {
    flex: 1;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 90vh;
    overflow-y: auto;
}
.card:hover {
    /* transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); */
}

.card-body {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Enhanced Search Form */
.mb-3 {
    /* background: linear-gradient(45deg, #00aeef, #00aeef); */
    /* padding: 2rem; */
    border-radius: 0px;
    margin-bottom: 2rem !important;
    /* box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); */
}

.form-label {
    color: #000;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: none;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.form-control:focus {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: white;
}

/* Enhanced Buttons */
.btn {
    border-radius: 4px;
    padding: 10px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-success {
    background: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    border: 1px solid #28a745;
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    background-color: #218838 !important;
    color: #fff !important;
    border: 1px solid #218838 !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.6);
}

/* Enhanced Table */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.table {
    margin: 0;
    background: white;
}

.table thead th {
    /* background: linear-gradient(45deg, #00aeef, #00aeef);
    color: white;
    border: none;
    font-size: 0.9rem; */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.table thead th::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.table thead th:hover::before {
    left: 100%;
}

.table tbody td {
    border: none;
    border-bottom: 1px solid #f1f3f4;
    text-align: center;
    vertical-align: middle;
    transition: all 0.3s ease;
    background: white;
}

/* .table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
} */

.table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.nav-link svg {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-link:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.nav-link.active svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}
.btn-primary.dropdown-toggle{
    background: none;
    border: 1px solid;
    background: #fff;
    color: #000 !important;
    border-radius: 8px;
    height: auto;
    padding: 6px 15px;
}
ul.nav.custom-nav{
    padding: 0 !important;
}
.nav-link {
    color: #fff;
    padding: 1rem 0.5rem;
    margin: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    border: none;
}
.nav {
    padding: 0.5rem 1rem;
}
/* Action Buttons */
.btn-sm {
    margin: 0 4px;
    border-radius: 4px;
    padding:5px 10px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);        
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
    background: #00aeef !important;
    color: #fff !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    color: #fff;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, #00aeef 0%, #00aeef 100%);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.6);
}

/* Enhanced Pagination */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.page-link {
    border: none;
    margin: 0 5px;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: #00aeef;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-link:hover {
    background: linear-gradient(45deg, #00aeef, #00aeef) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.text-primary{
    color: #00aeef !important;
}
.page-item.active .page-link {
    background: none;
    border: 1px solid #00aeef;
    color: #00aeef;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.page-item.disabled .page-link {
    background: #f8f9fa;
    color: #6c757d;
    box-shadow: none;
}

/* Enhanced Modal */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(45deg, #00aeef, #00aeef);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.modal-footer {
    border: none;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
}

/* Enhanced Spinner */
.spinner-border {
    color: #00aeef;
    width: 3rem;
    height: 3rem;
}

/* Enhanced Alerts */
.alert {
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.alert-warning {
    background: #00aeef8a;
    color: #fff;
}
.alert-warning h4{
    color: #fff;
}
.alert-warning p{
    color: #fff;
    margin-bottom: 0;
}
.alert-info {
    background: linear-gradient(135deg, #00aeef 0%, #00aeef 100%);
    color: white;
}

/* Enhanced Tables in Modal */
.table-bordered {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.table-bordered th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    padding: 1rem;
    font-weight: 600;
    color: #495057;
}

.table-bordered td {
    border: 1px solid #dee2e6;
    padding: 1rem;
    vertical-align: middle;
}

/* Enhanced Cards in Modal */
.card.mb-4 {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card.mb-4:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border: none;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Enhanced Headings */
h3, h4 {
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Enhanced HR */
hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, #00aeef, #00aeef);
    border-radius: 2px;
    margin: 2rem 0;
}

/* Enhanced Container */
.bank-statements-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .mb-3 {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Enhanced Mobile Table Scrolling */
    .table-responsive {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 #f1f1f1;
    }
    
    .table-responsive .table {
        width: 100% !important;
        min-width: 800px; /* Ensure table has minimum width for scrolling */
        margin-bottom: 0;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        white-space: nowrap;
        min-width: 120px;
        vertical-align: middle;
    }
    
    /* Custom scrollbar for webkit browsers */
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    /* Touch-friendly scrolling indicators */
    .table-responsive::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .table-responsive:hover::after {
        opacity: 1;
    }
    
    /* Mobile-specific table optimizations */
    .table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: white;
        border-bottom: 2px solid #dee2e6;
    }
    
    /* Ensure action buttons don't wrap */
    .table tbody td:last-child {
        min-width: 200px;
    }
    
    .table tbody td .btn-sm {
        margin: 2px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

/* Extra small mobile devices */
@media (max-width: 575px) {
    .table-responsive {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .table-responsive .table {
        min-width: 700px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    .content-wrapper{
        padding: 20px !important;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 {
        display: block !important;
    }
}
.bg-success {
    background-color: #4caf509c !important;
}
span.badge.bg-warning, span.badge.bg-primary{
   background-color: #2c3e50 !important; 
}
/* Animation for page load */
.card {
    animation: slideInUp 0.6s ease-out;
}

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

/* Enhanced focus states */
.form-control:focus,
.btn:focus,
.page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Custom scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.watermark {
    position: absolute;
    font-size: clamp(24px, 4vw, 60px);
    color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Responsive watermark sizing based on modal size */
@media (max-width: 768px) {
    .watermark {
        font-size: clamp(18px, 3vw, 40px);
    }
}

@media (min-width: 1200px) {
    .watermark {
        font-size: clamp(40px, 3vw, 70px);
    }
}
#report_modal .modal-content {
    position: relative;
}

#assignDocuments input[type="checkbox"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 20px !important;
    height: 20px !important;
}

.check-doc-field {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    position:absolute;
}

/* make this table row text blurry */
.bg-blur {
    filter: blur(3px);
}
.bg-blur::before{
    content: "$";
}

/* Enhanced Screenshot Prevention */
.sensitive-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Prevent text selection on sensitive areas */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbars to prevent screenshot artifacts */
.modal-body::-webkit-scrollbar {
    display: none;
}
.modal-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Dynamic watermark */
.modal-content::before {
    content: "IntegriTech.AI - " attr(data-timestamp);
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    pointer-events: none;
}
.main-wrapper{
    padding-top: 0;
}