/**
 * LedgerXpert - Main Stylesheet
 */

:root {
    --primary-color: #4f46e5;  /* Indigo-600 similar to repotic.in */
    --secondary-color: #111827; /* Dark color for text */
    --accent-color: #7c3aed;    /* Purple like repotic */
    --success-color: #10b981;   /* Emerald */
    --warning-color: #f59e0b;   /* Amber */
    --danger-color: #ef4444;    /* Red */
    --light-color: #f9fafb;     /* Gray-50 */
    --text-color: #111827;      /* Gray-900 */
    --text-muted: #6b7280;      /* Gray-500 */
    --border-color: #e5e7eb;    /* Gray-200 */
    --body-bg: #ffffff;         /* White background */
    --card-bg: #ffffff;         /* White */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); /* Indigo to purple */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;      /* 6px */
    --radius-md: 0.5rem;        /* 8px */
    --radius-lg: 0.75rem;       /* 12px */
}

/* Basic Styling */
body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    font-size: 16px;
}

/* Header and Navbar */
.navbar {
    background-color: white;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    max-height: 32px;
    margin-right: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
}

.navbar-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    margin: 0 0.1rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.navbar-light .navbar-nav .nav-link i {
    font-size: 0.85rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Main Content */
main {
    flex: 1;
    padding: 0rem 0;
}

.page-title {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--card-bg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    background: white;
    font-weight: 600;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
}

.card-body {
    padding: 1.75rem;
}

.card.primary-card .card-header {
    background: var(--gradient-primary);
    color: white;
    border-left: none;
}

.card.highlight-card {
    border-top: 4px solid var(--primary-color);
}

.card.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.card.border-card {
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.card.border-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    padding: 0.6rem 1.2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: none;
    font-size: 0.95rem;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover, 
.btn-secondary:focus {
    background-color: #353b57;
    box-shadow: 0 4px 12px rgba(42, 45, 67, 0.3);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #29B6F6 0%, #039BE5 100%);
    color: white;
}

.btn-accent:hover, 
.btn-accent:focus {
    background: linear-gradient(135deg, #03A9F4 0%, #0288D1 100%);
    box-shadow: 0 4px 12px rgba(3, 169, 244, 0.3);
    transform: translateY(-2px);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: rgba(108, 99, 255, 0.05);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.15);
    transform: translateY(-2px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    margin-right: 0.5rem;
}

.btn-floating {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 30px;
    bottom: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

/* Forms */
.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    background-color: white;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-floating > .form-control {
    padding: 1.2rem 1rem 0.5rem;
}

.form-floating > label {
    padding: 0.75rem 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    transform: scale(0.8) translateY(-0.5rem) translateX(0.15rem);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%236C63FF'/%3e%3c/svg%3e");
}

.input-group-text {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: var(--border-color);
}

.input-group .btn {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.form-select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    background-color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    color: white;
    padding: 5rem 0 3rem;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.5px;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.35rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-image {
    max-width: 100%;
    max-height: 400px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    margin-top: 1rem;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
    transform: scale(1.1);
}

@keyframes float {
    0% { transform: translateY(0px) scale(1.1); }
    50% { transform: translateY(-15px) scale(1.1); }
    100% { transform: translateY(0px) scale(1.1); }
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    margin: 0 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1s ease;
}

.hero-shape {
    position: relative;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-shape svg {
    display: block;
}

.hero-stats {
    margin-top: 2.5rem;
}

.hero-stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hero-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Cards */
.feature-card {
    text-align: left;
    padding: 2rem;
    height: 100%;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.3);
}

.feature-card:hover .feature-icon {
    color: var(--primary-color);
}

.feature-card:hover .feature-title {
    color: var(--primary-color);
}

.feature-card:hover .feature-text {
    color: var(--text-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
    background-color: rgba(79, 70, 229, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px);
    background-color: rgba(79, 70, 229, 0.15);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-color);
}

.feature-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-title::after {
    width: 60px;
}

.feature-text {
    color: var(--text-muted);
    transition: all 0.4s ease;
    line-height: 1.7;
}

.feature-card.shadow-card {
    box-shadow: var(--shadow-md);
}

.feature-card.border-card {
    border: 1px solid var(--border-color);
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.05;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-number {
    opacity: 0.2;
    transform: scale(1.2);
}

/* File Upload */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.drop-zone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(108, 99, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.drop-zone:hover::after {
    opacity: 1;
}

.drag-highlight {
    border-color: var(--primary-color);
    background-color: rgba(108, 99, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.file-input {
    display: none;
}

.file-upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.drop-zone:hover .file-upload-icon {
    transform: scale(1.1);
    opacity: 1;
}

.file-upload-text {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.file-upload-hint {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.file-types-allowed {
    display: inline-block;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 30px;
}

.file-preview {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    background-color: white;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.file-preview:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.file-icon {
    margin-right: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(108, 99, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.file-details {
    flex: 1;
}

.file-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.file-size {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.file-actions {
    margin-left: 1rem;
}

.file-actions .btn {
    margin-left: 0.5rem;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(108, 99, 255, 0.1);
    border-top-color: var(--primary-color);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator .loader-text {
    margin-top: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.loading-progress {
    width: 200px;
    height: 6px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: progress 2s ease-in-out infinite;
    background-size: 200% 100%;
}

@keyframes progress {
    0% { width: 0%; background-position: 0% 50%; }
    50% { width: 70%; background-position: 100% 50%; }
    100% { width: 100%; background-position: 0% 50%; }
}

/* Tables */
.table {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 1.5rem;
}

.table th, .table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.table thead th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
    border: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table thead th:first-child {
    border-top-left-radius: var(--radius-md);
}

.table thead th:last-child {
    border-top-right-radius: var(--radius-md);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(108, 99, 255, 0.05);
}

.table-border-bottom tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table-border-bottom tbody tr:last-child {
    border-bottom: none;
}

/* Transactions Table */
.transactions-table-container {
    max-height: 600px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.transaction-row {
    transition: all 0.3s ease;
    position: relative;
}

.transaction-row:hover {
    transform: translateX(5px);
}

.transaction-date {
    font-weight: 500;
    color: var(--text-color);
}

.transaction-description {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-amount-debit {
    color: var(--danger-color);
    font-weight: 600;
}

.transaction-amount-credit {
    color: var(--success-color);
    font-weight: 600;
}

.transaction-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.transaction-badge-debit {
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--danger-color);
}

.transaction-badge-credit {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

/* Dashboard Stats */
.stat-card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.stat-card-primary {
    border-color: var(--primary-color);
}

.stat-card-success {
    border-color: var(--success-color);
}

.stat-card-warning {
    border-color: var(--warning-color);
}

.stat-card-danger {
    border-color: var(--danger-color);
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card-title {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-card-icon {
    color: var(--text-muted);
    font-size: 2rem;
    opacity: 0.3;
}

/* Footer */
footer {
    margin-top: auto;
    position: relative;
}

.footer-main {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-menu a i {
    font-size: 0.7rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-menu a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-menu a:hover i {
    transform: translateX(2px);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-payment {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.payment-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.payment-icon:hover {
    transform: translateY(-2px);
}

/* Universal Prompt System (Fallback) */
.fallback-container {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.column-field {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .navbar-brand-text {
        font-size: 1.25rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Animation for Flash Messages */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    animation: fadeInDown 0.5s ease forwards;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

/* Process Section */
.process-section {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.process-timeline {
    padding: 2rem 0;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.process-icon-container {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.process-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step:hover .process-icon {
    transform: scale(1.1) rotate(5deg);
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.process-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.process-text {
    color: var(--text-muted);
    margin-bottom: 0;
}

.process-arrow {
    position: absolute;
    top: 40%;
    right: -30px;
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.5;
    z-index: 0;
}

/* Bank Cards */
.bank-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.bank-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.bank-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.05), transparent);
    transition: left 0.6s ease;
}

.bank-card:hover::after {
    left: 100%;
}

.bank-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.bank-card:hover::before {
    transform: scaleX(1);
}

.bank-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bank-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.bank-card:hover .bank-logo::before {
    width: 200%;
    height: 200%;
}

.bank-card:hover .bank-logo {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    background-color: rgba(79, 70, 229, 0.1);
}

.bank-logo img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) saturate(1);
    max-height: 40px;
    max-width: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bank-card:hover .bank-logo img {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.3) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.bank-logo-placeholder {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.bank-card:hover .bank-logo-placeholder {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.bank-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bank-card:hover .bank-icon {
    transform: scale(1.25) rotate(5deg);
    color: var(--accent-color);
    text-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.bank-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.bank-card:hover .bank-name {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* Bank Logo Floating Animation */
@keyframes floatBankLogo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.bank-card:hover .bank-logo {
    animation: floatBankLogo 2s ease-in-out infinite;
}

/* Staggered Animation for Bank Cards */
.bank-card:nth-child(1) { animation-delay: 0.1s; }
.bank-card:nth-child(2) { animation-delay: 0.2s; }
.bank-card:nth-child(3) { animation-delay: 0.3s; }
.bank-card:nth-child(4) { animation-delay: 0.4s; }
.bank-card:nth-child(5) { animation-delay: 0.5s; }
.bank-card:nth-child(6) { animation-delay: 0.6s; }

/* Pulse effect for production ready banks */
@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.production-ready:hover {
    animation: pulseGreen 1.5s infinite;
}

/* Shine effect for bank logos */
@keyframes shine {
    0% {
        transform: translateX(-100%) rotateZ(45deg);
    }
    100% {
        transform: translateX(200%) rotateZ(45deg);
    }
}

.bank-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: none;
    animation: none;
}

.bank-card:hover .bank-logo::before {
    animation: shine 1s ease-in-out;
}

/* Badge styles */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%23ffffff\" fill-opacity=\"0.05\"%3E%3Cpath d=\"M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\"%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cta-highlight {
    display: inline-block;
    position: relative;
}

.cta-highlight::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
}

/* CTA Stats */
.cta-stat {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-stat:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.cta-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Enhanced Parsing Results Page Styling */
.parsing-results-container {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.parsing-results .card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.parsing-results .card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.parsing-results .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.parsing-results .card-body {
    padding: 1.5rem;
}

/* File Information Grid */
.file-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.file-info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.file-info-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-right: 0.5rem;
    min-width: 80px;
}

.file-info-value {
    font-weight: 600;
    color: #212529;
}

/* Transaction Controls */
.transaction-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
}

.transaction-controls .form-control,
.transaction-controls .form-select {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.transaction-controls .form-control:focus,
.transaction-controls .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

/* Enhanced Transaction Table */
.table-responsive {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.transactions-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.transactions-table thead th {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    border: none;
    padding: 1rem 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.transactions-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #dee2e6;
}

.transactions-table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.05);
    transform: translateX(2px);
}

.transactions-table tbody tr:last-child {
    border-bottom: none;
}

.transactions-table tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border: none;
    font-size: 0.9rem;
}

/* Enhanced Amount Styling */
.amount-debit {
    color: #dc3545;
    font-weight: 700;
    position: relative;
}

.amount-debit::before {
    content: "−";
    margin-right: 0.25rem;
}

.amount-credit {
    color: #28a745;
    font-weight: 700;
    position: relative;
}

.amount-credit::before {
    content: "+";
    margin-right: 0.25rem;
}

.amount-balance {
    color: #495057;
    font-weight: 600;
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Status Badge Improvements */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Export Button Styling */
.export-dropdown {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.export-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.export-dropdown .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.export-dropdown .dropdown-item i {
    transition: transform 0.3s ease;
}

.export-dropdown .dropdown-item:hover i {
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .parsing-results .card-body {
        padding: 1rem;
    }
    
    .transaction-controls {
        padding: 1rem;
    }
    
    .file-info-grid {
        grid-template-columns: 1fr;
    }
    
    .transactions-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .transactions-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .amount-debit::before,
    .amount-credit::before {
        display: none;
    }
}

/* Beautiful Mobile Navigation Improvements */
@media (max-width: 991px) {
    /* Mobile navbar styling */
    .navbar {
        padding: 0.75rem 1rem;
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
    
    /* Mobile navbar brand */
    .navbar-brand .logo {
        max-height: 32px;
        transition: all 0.3s ease;
    }
    
    .navbar-brand:hover .logo {
        transform: scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.3));
    }
    
    /* Beautiful mobile toggler */
    .navbar-toggler {
        border: none;
        padding: 0.4rem 0.6rem;
        background: var(--gradient-primary);
        border-radius: var(--radius-md);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-sm);
        position: relative;
        overflow: hidden;
    }
    
    .navbar-toggler::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.6s ease;
    }
    
    .navbar-toggler:hover::before {
        left: 100%;
    }
    
    .navbar-toggler:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px) scale(1.05);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
        outline: none;
    }
    
    .navbar-toggler:active {
        transform: translateY(0) scale(0.98);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.4rem;
        height: 1.4rem;
        transition: all 0.3s ease;
    }
    
    /* Mobile navigation menu with right-to-left slide entrance */
    .navbar-collapse {
        margin-top: 1rem;
        background: var(--card-bg);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: 1.5rem;
        border: 1px solid var(--border-color);
        backdrop-filter: blur(20px);
        position: relative;
        overflow: hidden;
        animation: slideFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideFromRight {
        from {
            opacity: 0;
            transform: translateX(100%) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
    }
    
    .navbar-collapse::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: var(--gradient-primary);
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        animation: slideBar 0.4s ease-out 0.2s both;
    }
    
    @keyframes slideBar {
        from {
            height: 0;
        }
        to {
            height: 100%;
        }
    }
    
    /* Mobile navigation links with right-to-left hover effects */
    .navbar-nav .nav-link {
        padding: 1rem 1.25rem;
        margin: 0.375rem 0;
        border-radius: var(--radius-md);
        background: transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 4px solid transparent;
        position: relative;
        overflow: hidden;
        font-weight: 500;
        opacity: 0;
        animation: fadeInFromRight 0.3s ease-out forwards;
    }
    
    /* Staggered animation for nav links */
    .navbar-nav .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .navbar-nav .nav-link:nth-child(2) { animation-delay: 0.15s; }
    .navbar-nav .nav-link:nth-child(3) { animation-delay: 0.2s; }
    .navbar-nav .nav-link:nth-child(4) { animation-delay: 0.25s; }
    .navbar-nav .nav-link:nth-child(5) { animation-delay: 0.3s; }
    .navbar-nav .nav-link:nth-child(6) { animation-delay: 0.35s; }
    
    @keyframes fadeInFromRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .navbar-nav .nav-link:hover::before {
        left: 100%;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(79, 70, 229, 0.1);
        border-right-color: var(--primary-color);
        transform: translateX(-8px);
        box-shadow: var(--shadow-sm);
    }
    
    .navbar-nav .nav-link:active {
        transform: translateX(-4px) scale(0.98);
    }
    
    .navbar-nav .nav-link.active {
        background: rgba(79, 70, 229, 0.15);
        border-right-color: var(--primary-color);
        color: var(--primary-color);
        font-weight: 600;
        box-shadow: inset 0 0 20px rgba(79, 70, 229, 0.1);
    }
    
    .navbar-nav .nav-link i {
        width: 1.5rem;
        text-align: center;
        color: var(--primary-color);
        margin-right: 0.75rem;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover i {
        transform: scale(1.1) rotate(5deg);
        color: var(--accent-color);
    }
    
    /* Mobile dropdown menu styling */
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        border: none;
        box-shadow: none;
        background: rgba(79, 70, 229, 0.05);
        border-radius: var(--radius-md);
        margin-top: 0.5rem;
        padding: 0.75rem;
        animation: fadeIn 0.3s ease-out;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar-nav .dropdown-item {
        border-radius: var(--radius-sm);
        padding: 0.75rem 1rem;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .navbar-nav .dropdown-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
        transition: left 0.4s ease;
    }
    
    .navbar-nav .dropdown-item:hover::before {
        left: 100%;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: rgba(79, 70, 229, 0.1);
        transform: translateX(-4px);
        color: var(--primary-color);
    }
    
    /* Mobile theme toggle with beautiful styling and animation */
    .navbar-nav li:has(#theme-toggle) {
        margin: 1rem 0 0.5rem 0;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        opacity: 0;
        animation: fadeInFromRight 0.3s ease-out forwards;
        animation-delay: 0.45s;
    }
    
    #theme-toggle {
        background: rgba(79, 70, 229, 0.1);
        border: 2px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 0.75rem;
        margin: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 500;
        position: relative;
        overflow: hidden;
    }
    
    #theme-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }
    
    #theme-toggle:hover::before {
        width: 200%;
        height: 200%;
    }
    
    #theme-toggle:hover {
        background: rgba(79, 70, 229, 0.2);
        border-color: var(--primary-color);
        transform: scale(1.02);
        box-shadow: var(--shadow-md);
    }
    
    #theme-toggle:active {
        transform: scale(0.98);
    }
    
    #theme-toggle i {
        font-size: 1.25rem;
        transition: all 0.3s ease;
    }
    
    #theme-toggle:hover i {
        transform: rotate(180deg) scale(1.1);
        color: var(--primary-color);
    }
    
    /* Mobile auth buttons with enhanced styling and right-to-left animation */
    .navbar-nav li:has(.btn) {
        margin: 0.5rem 0;
        opacity: 0;
        animation: fadeInFromRight 0.3s ease-out forwards;
        animation-delay: 0.4s;
    }
    
    .navbar-nav .btn {
        width: 100%;
        margin: 0.375rem 0;
        padding: 0.875rem 1.5rem;
        border-radius: var(--radius-md);
        font-weight: 600;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        border: 2px solid transparent;
    }
    
    .navbar-nav .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 ease;
    }
    
    .navbar-nav .btn:hover::before {
        left: 100%;
    }
    
    .navbar-nav .btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav .btn:active {
        transform: translateY(-1px);
    }
    
    .navbar-nav .btn-outline-primary {
        border-color: var(--primary-color);
        color: var(--primary-color);
        background: transparent;
    }
    
    .navbar-nav .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    }
    
    .navbar-nav .btn-primary {
        background: var(--gradient-primary);
        border: none;
        color: white;
        box-shadow: var(--shadow-sm);
    }
    
    .navbar-nav .btn-primary:hover {
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
        filter: brightness(1.05);
    }
    
    /* Mobile user dropdown styling */
    .navbar-nav .dropdown-toggle::after {
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }
    
    .navbar-nav .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    /* Dividers for better organization */
    .navbar-nav > li:nth-last-child(2) {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Extra mobile improvements for very small screens */
@media (max-width: 576px) {
    .navbar {
        padding: 0.625rem;
    }
    
    .navbar-brand .logo {
        max-height: 28px;
    }
    
    .navbar-collapse {
        padding: 1rem;
        margin-top: 0.75rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link i {
        width: 1.25rem;
        font-size: 1rem;
    }
    
    #theme-toggle {
        padding: 0.625rem;
    }
    
    .navbar-nav .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Dark theme mobile adjustments */
[data-theme="dark"] .navbar {
    background-color: rgba(31, 41, 55, 0.95) !important;
}

[data-theme="dark"] .navbar-collapse {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    background: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] #theme-toggle {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--border-color);
}

[data-theme="dark"] #theme-toggle:hover {
    background: rgba(99, 102, 241, 0.25);
}

/* Mobile-responsive statements table */
@media (max-width: 768px) {
    /* Hide the table headers on mobile */
    #statements-table thead {
        display: none;
    }
    
    /* Make table body display as block */
    #statements-table, 
    #statements-table tbody {
        display: block;
        width: 100%;
    }
    
    /* Style each row as a card */
    #statements-table tbody tr {
        display: block;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 2px 4px var(--shadow-color);
        transition: all 0.3s ease;
        width: 100%;
    }
    
    #statements-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px var(--shadow-color);
    }
    
    /* Style each cell */
    #statements-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 90px;
        word-wrap: break-word;
    }
    
    #statements-table td:last-child {
        border-bottom: none;
    }
    
    /* Add labels before each cell content - accounting for select column when present */
    #statements-table td:nth-child(2):before { content: "FILE:"; }
    #statements-table td:nth-child(3):before { content: "UPLOADED:"; }
    #statements-table td:nth-child(4):before { content: "BANK:"; }
    #statements-table td:nth-child(5):before { content: "TYPE:"; }
    #statements-table td:nth-child(6):before { content: "STATUS:"; }
    #statements-table td:nth-child(7):before { content: "ROWS:"; }
    #statements-table td:nth-child(8):before { content: "ACTIONS:"; }
    
    /* When in select mode, adjust nth-child selectors */
    body.select-mode #statements-table td:nth-child(1):before { content: "SELECT:"; }
    body.select-mode #statements-table td:nth-child(3):before { content: "FILE:"; }
    body.select-mode #statements-table td:nth-child(4):before { content: "UPLOADED:"; }
    body.select-mode #statements-table td:nth-child(5):before { content: "BANK:"; }
    body.select-mode #statements-table td:nth-child(6):before { content: "TYPE:"; }
    body.select-mode #statements-table td:nth-child(7):before { content: "STATUS:"; }
    body.select-mode #statements-table td:nth-child(8):before { content: "ROWS:"; }
    body.select-mode #statements-table td:nth-child(9):before { content: "ACTIONS:"; }
    
    #statements-table td:before {
        position: absolute;
        left: 0;
        top: 0.5rem;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        width: 80px;
        text-transform: uppercase;
    }
    
    /* Special styling for actions column */
    #statements-table td:nth-child(8),
    body.select-mode #statements-table td:nth-child(9) {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    #statements-table td:nth-child(8) .d-flex,
    body.select-mode #statements-table td:nth-child(9) .d-flex {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    #statements-table td:nth-child(8) .btn,
    body.select-mode #statements-table td:nth-child(9) .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
        margin: 0.1rem;
    }
    
    /* Hide select column on mobile initially */
    .select-column {
        display: none !important;
    }
    
    /* When select mode is active, show select column */
    body.select-mode .select-column {
        display: block !important;
    }
    
    body.select-mode #statements-table td:nth-child(1) {
        padding: 0.5rem 0;
        padding-left: 90px;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Make sure data content is visible and properly aligned */
    #statements-table td {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Reset any badge styling that might interfere */
    #statements-table td .badge {
        display: inline-block;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-top: 0.1rem;
    }
    
    /* Ensure content is visible and not stretched */
    #statements-table td:not(:nth-child(8)):not(.select-column) {
        word-break: break-word;
    }
    
    /* Adjust content padding for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile page header adjustments */
    .d-sm-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .d-sm-flex .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Hide desktop-only button on mobile */
    .d-none.d-sm-inline-block {
        display: none !important;
    }
    
    /* Mobile bulk actions styling */
    #bulk-actions .d-flex {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    #bulk-actions .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #bulk-actions .btn-group .btn {
        border-radius: 0.375rem;
    }
    
    /* DataTables mobile controls styling */
    .dataTables_length,
    .dataTables_filter {
        margin-bottom: 1rem;
    }
    
    .dataTables_length select,
    .dataTables_filter input {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .dataTables_info {
        text-align: center;
        margin: 1rem 0;
        font-size: 0.875rem;
    }
    
    .dataTables_paginate {
        text-align: center;
        margin-top: 1rem;
    }
    
    .dataTables_paginate .paginate_button {
        margin: 0 0.25rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.375rem;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
        text-decoration: none;
    }
    
    .dataTables_paginate .paginate_button.current {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    /* DataTables wrapper improvements */
    .dataTables_wrapper {
        margin-top: 1rem;
    }
}
