/* Main Stylesheet for Loan Management System */
/* Using Kalpurush font for Bangla text */

/* Import Fonts */
/* Custom Bengali Fonts */
@font-face {
    font-family: 'SiyamRupali';
    src: local('Siyam Rupali'), local('SiyamRupali'),
        url('https://cdn.jsdelivr.net/gh/ronniesong0211/bangla-fonts@main/Siyam%20Rupali.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/gh/ronniesong0211/bangla-fonts@main/Siyam%20Rupali.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SolaimanLipi';
    src: local('Solaiman Lipi'), local('SolaimanLipi'),
        url('https://cdn.jsdelivr.net/gh/ronniesong0211/bangla-fonts@main/SolaimanLipi_20-04-07.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/gh/ronniesong0211/bangla-fonts@main/SolaimanLipi_20-04-07.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Import Inter for English numbers/text if needed, though the stack prioritizes Bangla fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
/* CSS Variables - LIGHT THEME (Default) */
:root {
    /* Primary Colors */
    --primary: #4361ee;
    --primary-rgb: 67, 97, 238;
    --primary-dark: #3a56d4;
    --primary-light: #eef2ff;

    /* Secondary & Accents */
    --secondary: #7209b7;
    --secondary-rgb: 114, 9, 183;
    --success: #06d6a0;
    --success-rgb: 6, 214, 160;
    --warning: #ffd166;
    --danger: #ef476f;
    --info: #4895ef;

    /* Neutral Colors - Light Theme */
    --dark: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;

    /* Backgrounds - Light Theme */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);

    /* UI Elements - Light Theme */
    --border-color: #e2e8f0;
    --border-focus: rgba(67, 97, 238, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows - Light Theme */
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 14px 0 rgba(67, 97, 238, 0.39);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'SiyamRupali', 'SolaimanLipi', 'Noto Sans Bengali', 'Bangla Sangam MN', 'MuktiNarrow', 'Times New Roman', serif;
    line-height: 1.7;
    font-size: 20px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* Layout Container */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Dashboard Header */
/* Dashboard Header - New Design */
/* Dashboard Header - Light Design */
.dashboard-header {
    background: #ffffff;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.dashboard-header .page-title {
    color: var(--text-primary);
    text-shadow: none;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Header Button Overrides for Icons */
.dashboard-header .d-flex {
    gap: 0.75rem !important;
}

.dashboard-header .btn {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dashboard-header .btn i {
    font-size: 1.2rem;
    margin: 0 !important;
}

.dashboard-header .btn-light {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: none;
}

.dashboard-header .btn-light:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.dashboard-header .btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: transparent;
}

.dashboard-header .btn-outline-light:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.page-title {
    font-weight: 700;
    font-size: 1.5rem;
    /* Reduced font size significantly */
    letter-spacing: -0.2px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Navigation & Breadcrumbs */
.breadcrumb-nav {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    /* Compact breadcrumb */
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* Cards (General) */
.card,
.user-card,
.search-section,
.calculator-card,
.form-card,
.result-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover,
.user-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Search Section */
.search-section {
    padding: 1.5rem;
}

.search-form .input-group {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.search-form .form-control {
    border: none;
    box-shadow: none;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.search-form .btn {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    margin: 0.25rem;
}

/* Advanced Filters */
.advanced-filters {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

/* Stats Cards - Modern grid layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}



.stats-card:nth-child(2)::before {
    background: var(--secondary);
}

.stats-card:nth-child(3)::before {
    background: var(--success);
}

.stats-card-content {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stats-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.stats-card:nth-child(2) .stats-card-icon {
    background: rgba(114, 9, 183, 0.1);
    color: var(--secondary);
}

.stats-card:nth-child(3) .stats-card-icon {
    background: rgba(6, 214, 160, 0.1);
    color: var(--success);
}

.stats-card h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
}

.stats-card .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    letter-spacing: -0.5px;
}

/* User Card Styles */
.user-card {
    padding: 0;
    border: none;
    border-left: 5px solid var(--primary);
    /* Default fallback */
    background: white;
}

/* Cyclic colors for loan cards to differentiate records */
.user-card:nth-of-type(4n+1) {
    border-left-color: var(--primary);
}

.user-card:nth-of-type(4n+2) {
    border-left-color: var(--secondary);
}

.user-card:nth-of-type(4n+3) {
    border-left-color: var(--success);
}

.user-card:nth-of-type(4n+4) {
    border-left-color: var(--warning);
}

/* Add subtle background tint to matching cards on hover */
.user-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.user-card-header {
    padding: 1rem 1.5rem;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-card-details {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.user-detail-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.user-detail-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    border-color: currentColor;
    /* Inherits color from text if set, or just default */
    transform: translateY(-2px);
}

/* Make detail items match the card accent color on hover */
.user-card:nth-of-type(4n+1) .user-detail-item:hover {
    border-color: var(--primary);
}

.user-card:nth-of-type(4n+2) .user-detail-item:hover {
    border-color: var(--secondary);
}

.user-card:nth-of-type(4n+3) .user-detail-item:hover {
    border-color: var(--success);
}

.user-card:nth-of-type(4n+4) .user-detail-item:hover {
    border-color: var(--warning);
}

.user-detail-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.user-detail-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* User Section Header */
.user-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.user-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 8px rgba(67, 97, 238, 0.35);
    transform: translateY(-2px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-outline-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: white;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* Form Elements */
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    background-color: #fff;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    outline: none;
}

.input-group-text {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Tables */
.table-responsive {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    background: white;
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table th {
    background: #f1f5f9;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Footer Results Table */
/* Grand Totals Section */
.data-table-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: none;
}

.data-table-container .table {
    margin-bottom: 0;
    background: transparent;
}

.data-table-container .table tfoot {
    border: none;
}

.data-table-container .table tfoot tr {
    background: linear-gradient(135deg, var(--dark), #2d3748);
}

.data-table-container .table tfoot th {
    color: white;
    font-weight: 700;
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    border: none;
    vertical-align: middle;
    text-transform: none;
    letter-spacing: 0;
}

.data-table-container .table tfoot th[colspan="2"] {
    font-size: 1.3rem;
    padding-left: 2rem;
    color: var(--warning);
}

.data-table-container .table tfoot th[data-label] {
    text-align: right;
    font-family: 'SiyamRupali', monospace;
}

/* Mobile responsive adjustments for the footer table */
@media (max-width: 768px) {
    .data-table-container .table tfoot {
        display: block;
    }

    .data-table-container .table tfoot tr {
        display: flex;
        flex-direction: column;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    .data-table-container .table tfoot th {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        background: #1e293b;
    }

    .data-table-container .table tfoot th[colspan="2"] {
        background: var(--dark);
        color: white;
        justify-content: center;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        padding-left: 1rem;
    }

    .data-table-container .table tfoot th[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
    }
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.badge.bg-success {
    background-color: rgba(6, 214, 160, 0.15) !important;
    color: var(--success);
}

.badge.bg-primary {
    background-color: rgba(67, 97, 238, 0.15) !important;
    color: var(--primary);
}

.badge.bg-secondary {
    background-color: #f1f5f9 !important;
    color: var(--text-secondary);
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Calculator Specific */
.calculator-card,
.form-card {
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Ensure children don't overflow rounded corners */
}

.calculator-title,
.form-title {
    text-align: center;
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: #f8fafc;
    /* Solid light background */
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.calculator-card .card-body,
.form-card .card-body {
    padding: 2rem;
}

.result-value {
    font-family: 'SiyamRupali', 'SolaimanLipi', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-container {
        padding: 0 1rem;
    }

    .dashboard-header {
        padding: 0.75rem 0;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .page-title {
        font-size: 1.1rem;
        /* Even smaller for mobile */
        margin-bottom: 0.5rem;
    }

    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats Grid on Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* User Card Data on Mobile */
    .user-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .user-card-actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .user-card-details {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Responsive Tables */
    .table-responsive {
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tfoot,
    .table tr,
    .table td,
    .table th {
        display: block;
        width: 100%;
    }

    .table tr {
        background: white;
        margin-bottom: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
        padding: 0.5rem;
    }

    .table td,
    .table th {
        text-align: right;
        padding: 0.75rem 1rem;
        position: relative;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .table td::before,
    .table th::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.85rem;
    }

    .table td:last-child,
    .table th:last-child {
        border-bottom: none;
        justify-content: flex-end;
    }

    /* Advanced Filters Mobile */
    .advanced-filters .row {
        flex-direction: column;
    }

    /* Calculator Results on Mobile */
    .result-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card,
.user-card,
.table-responsive {
    animation: fadeIn 0.5s ease-out forwards;
}

.stats-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Grand Totals Section - New Design */
.grand-total-container {
    padding: 0 0.5rem;
}

.grand-total-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grand-total-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 250px;
}

.grand-total-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warning);
    display: flex;
    align-items: center;
}

.grand-total-body {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem;
}

.gt-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    flex: 1;
}

.gt-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gt-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'SiyamRupali', monospace;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gt-item.highlight .gt-value {
    color: var(--warning);
    font-size: 2rem;
}

.gt-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
    .grand-total-card {
        flex-direction: column;
    }

    .grand-total-header {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
        padding: 1rem;
    }

    .grand-total-body {
        padding: 1.5rem 1rem;
    }

    .gt-value {
        font-size: 1.5rem;
    }

    .gt-item.highlight .gt-value {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .grand-total-body {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gt-divider {
        width: 100%;
        height: 1px;
    }

    .gt-item {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
    }

    .grand-total-container {
        padding: 0;
    }
}