:root {
    --primary-blue: #1761ac;
    --primary-orange: #de692c;
    --dark-blue: #004466;
    --light-gray: #f5f5f5;
    --medium-gray: #666;
    --white: #ffffff;
    --success: #1761ac;
    --danger: #de692c;
    --warning: #de692c;
    --info: #1761ac;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--light-gray);
    font-size: 14px;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: var(--dark-blue);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s;
}

.sidebar-header {
    padding: 20px;
    background: rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.nav-links {
    padding: 20px 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--primary-orange);
}

.nav-links a.active {
    background: var(--primary-orange);
    color: white;
    border-left-color: white;
}

.nav-links a i {
    width: 20px;
    text-align: center;
}

.nav-links .logout-btn {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    transition: margin-left 0.3s;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title h1 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Content Wrapper */
.content-wrapper {
    padding: 30px;
    min-height: calc(100vh - 70px);
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #eaeaea;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.card-header h2 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    font-weight: 600;
}

.card-header h3 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Form Styles (from forms.css) */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(23, 97, 172, 0.1);
}

.form-group input[type="file"] {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Form Validation */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--primary-orange);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(222, 105, 44, 0.1);
}

.error-message {
    color: var(--primary-orange);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Required field indicator */
.form-group label.required::after {
    content: " *";
    color: var(--primary-orange);
}

/* File upload preview */
.file-upload-preview {
    margin-top: 10px;
    display: none;
}

.file-upload-preview.show {
    display: block;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 5px;
}

.file-preview i {
    color: var(--primary-blue);
    font-size: 20px;
}

.file-preview span {
    flex: 1;
    font-size: 13px;
    color: #333;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Checkboxes and Radio Buttons */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: auto;
    margin: 0;
}

.form-check label {
    margin: 0;
    font-weight: normal;
}

/* Beautiful Buttons */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

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

.btn-primary:hover {
    background: #c55a25;
    box-shadow: 0 4px 8px rgba(222, 105, 44, 0.3);
}

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

.btn-success:hover {
    background: #004466;
    box-shadow: 0 4px 8px rgba(23, 97, 172, 0.3);
}

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

.btn-danger:hover {
    background: #c55a25;
    box-shadow: 0 4px 8px rgba(222, 105, 44, 0.3);
}

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

.btn-info:hover {
    background: #004466;
    box-shadow: 0 4px 8px rgba(23, 97, 172, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    gap: 5px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    gap: 10px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Transaction header buttons */
.transaction-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.transaction-header-buttons .btn {
    min-width: 140px;
    justify-content: center;
}

/* Empty state buttons */
.empty-state-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.empty-state-buttons .btn {
    min-width: 140px;
    justify-content: center;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-blue);
}

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

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

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(23, 97, 172, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 14px;
    font-weight: 500;
}

/* Balance Indicators */
.balance-positive {
    color: var(--success);
    font-weight: 600;
}

.balance-negative {
    color: var(--danger);
    font-weight: 600;
}

/* Table Styles (from tables.css) */
.table-responsive {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #eaeaea;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.table th {
    background: #f8f9fa;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eaeaea;
}

.table tr:hover {
    background: #f8f9fa;
}

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

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.status-active {
    background: #e7f7e7;
    color: var(--success);
    border: 1px solid #c1e6c1;
}

.status-inactive {
    background: #ffe6e6;
    color: var(--danger);
    border: 1px solid #ffcccc;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-completed {
    background: #d1ecf1;
    color: var(--info);
    border: 1px solid #bee5eb;
}

/* Transaction Types */
.transaction-debit {
    color: var(--danger);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.transaction-credit {
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty State */
.table-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.table-empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.table-empty-state h3 {
    color: #444;
    margin-bottom: 10px;
}

/* Sort Indicators */
.sort-indicator {
    margin-left: 5px;
    font-size: 12px;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 15px 0;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination li a {
    color: #666;
    border: 1px solid #e0e0e0;
    background: white;
}

.pagination li a:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 97, 172, 0.1);
}

.pagination .active span {
    color: white;
    background: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    box-shadow: 0 2px 6px rgba(23, 97, 172, 0.2);
}

.pagination .disabled span {
    color: #ccc;
    border-color: #f0f0f0;
    background: #f9f9f9;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Alert Styles (from alerts.css) */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}

.alert i {
    font-size: 18px;
}

.alert-success {
    background: #e7f7e7;
    color: #2d7d2d;
    border-color: #c1e6c1;
}

.alert-error {
    background: #ffe6e6;
    color: #cc0000;
    border-color: #ffcccc;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert .close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.alert .close:hover {
    opacity: 1;
}

/* Login Page Styles (from login.css) */
.login-page {
    background: linear-gradient(135deg, #004466 0%, var(--primary-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.login-header p {
    color: #666;
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.login-tab.active {
    color: var(--primary-blue);
    border-bottom: 3px solid var(--primary-blue);
    margin-bottom: -2px;
}

.login-tab:hover:not(.active) {
    color: #333;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #c55a25;
}

.btn-otp {
    width: 100%;
    padding: 10px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-otp:hover {
    background: #004466;
}

.btn-otp:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.otp-info {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

/* OTP Notification */
.otp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    display: none;
}

.otp-notification.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Currency icons */
.fa-yen-sign, .fa-dollar-sign, .fa-euro-sign, .fa-austral-sign {
    font-size: 24px;
}

/* Avatar Logo Styles */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.avatar-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Last transaction date */
.last-transaction-date {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
}

/* Merchant balance display */
.merchant-balance-display {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.balance-positive-color {
    color: var(--primary-blue);
}

.balance-negative-color {
    color: var(--primary-orange);
}

.notes-container {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.form-row-spaced {
    margin-bottom: 30px;
}

/* Transaction details styles */
.transaction-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Search Container Styles */
.search-container {
    margin-bottom: 20px;
    max-width: 500px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 14px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(23, 97, 172, 0.1);
}

.search-input::placeholder {
    color: #999;
    font-size: 13px;
}

.clear-search-btn {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 13px;
}

/* Search results styling */
.no-results-row .table-empty-state {
    padding: 30px 20px;
}

.no-results-row .table-empty-state i {
    color: #ccc;
    margin-bottom: 15px;
}

.no-results-row .table-empty-state h3 {
    color: #666;
    font-size: 1.1rem;
}

.no-results-row .table-empty-state p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Improved Search Container */
.search-container {
    margin-top: 10px;
    max-width: 500px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    overflow: hidden;
}

.search-input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(23, 97, 172, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 14px;
    z-index: 1;
}

.search-input {
    flex: 1;
    padding: 12px 45px 12px 40px;
    border: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: #333;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #999;
    font-size: 13.5px;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    background: #f0f0f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    z-index: 1;
}

.search-clear-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.clear-search-btn {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 13px;
}

/* Search loader */
.search-loader {
    position: absolute;
    right: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 14px;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* Search results count */
.search-results-count {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-results-count i {
    color: var(--primary-blue);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

/* Table Filters */
.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.table-filter-group {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 120px;
}

.table-filter-group label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.filter-select,
.filter-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: all 0.3s;
    min-height: 42px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(23, 97, 172, 0.1);
}

/* Make date inputs consistent */
.filter-input[type="date"] {
    min-width: 150px;
}

/* Search input specific styling */
.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 180px;
}

.search-input-group .filter-input {
    padding-right: 35px;
    width: 100%;
    min-width: 180px;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear-btn:hover {
    color: #333;
}

/* Select filter styling */
.filter-select {
    min-width: 120px;
}

/* Button styling in filter row */
.filter-row .btn {
    min-height: 42px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .filter-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .table-filter-group {
        flex: 1 1 calc(50% - 10px);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 15px;
        overflow-x: visible;
    }
    
    .table-filter-group {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .search-input-group {
        min-width: 100%;
    }
    
    .filter-select,
    .filter-input[type="date"] {
        min-width: 100%;
    }
    
    .filter-row .btn {
        width: 100%;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header h2,
    .sidebar-header p,
    .nav-links a span {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .nav-links a {
        justify-content: center;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }

    
    .pagination li a,
    .pagination li span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 10px;
    }
    
    /* Mobile search adjustments */
    .search-container {
        max-width: 100%;
    }
    
    .search-input {
        padding: 10px 40px 10px 35px;
        font-size: 13px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 13px;
    }
    
    .search-clear-btn {
        right: 8px;
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .login-page {
        padding: 15px;
    }
}

/* Table Filters - Fixed Design */
.filter-form {
    width: 100%;
    margin: 0;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: nowrap;
    width: 100%;
    padding: 10px 0;
}

.table-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    flex-shrink: 0;
}

.table-filter-group label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Filter Inputs and Selects */
.filter-select,
.filter-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: all 0.3s;
    height: 42px;
    width: 100%;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(23, 97, 172, 0.1);
}

/* Search input specific styling */
.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-group .filter-input {
    padding-right: 35px;
    width: 100%;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.search-clear-btn:hover {
    color: #333;
}

/* Adjust widths for specific elements */
.table-filter-group:nth-child(1) { /* Type */
    min-width: 140px;
}

.table-filter-group:nth-child(2) { /* Search */
    min-width: 200px;
    flex-grow: 1;
    max-width: 300px;
}

.table-filter-group:nth-child(3), /* Date From */
.table-filter-group:nth-child(4) { /* Date To */
    min-width: 150px;
}

.table-filter-group:nth-child(5), /* PDF Button */
.table-filter-group:nth-child(6) { /* Close Period Button */
    min-width: auto;
    flex-shrink: 0;
}

/* Button styling in filter row */
.filter-row .btn {
    height: 42px;
    min-height: 42px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
}

/* Make sure buttons have consistent height */
.filter-row .btn i {
    margin-right: 5px;
}

/* Add some spacing between filter groups */
.filter-row > .table-filter-group:not(:last-child) {
    margin-right: 0;
}

/* Ensure all filter elements are aligned at bottom */
.filter-row .table-filter-group {
    justify-content: flex-end;
}

/* Date input styling */
.filter-input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 150px;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Responsive adjustments for medium screens */
@media (max-width: 1200px) {
    .filter-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .table-filter-group:nth-child(1),
    .table-filter-group:nth-child(2),
    .table-filter-group:nth-child(3),
    .table-filter-group:nth-child(4) {
        flex: 1 1 calc(50% - 12px);
        min-width: 180px;
    }
    
    .table-filter-group:nth-child(5),
    .table-filter-group:nth-child(6) {
        flex: 1 1 calc(50% - 12px);
        min-width: 150px;
    }
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        flex-wrap: nowrap;
    }
    
    .table-filter-group {
        width: 100%;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    .search-input-group {
        width: 100%;
    }
    
    .filter-select,
    .filter-input,
    .filter-input[type="date"] {
        width: 100%;
    }
    
    .filter-row .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .filter-row {
        gap: 12px;
    }
    
    .table-filter-group label {
        font-size: 12px;
    }
    
    .filter-select,
    .filter-input {
        font-size: 13px;
        padding: 8px 10px;
        height: 38px;
    }
    
    .filter-row .btn {
        height: 38px;
        padding: 8px 12px;
        font-size: 13px;
    }
}


