     :root {
            --primary-red: #c1272d;
            --dark-red: #8a1c1c;
            --light-red: #e74c3c;
            --gold: #d4af37;
            --light-gold: #f1d592;
            --cream: #f5f0e6;
            --dark-text: #333;
            --light-text: #f8f8f8;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--cream);
            color: var(--dark-text);
        }

        .container {
            display: flex;
            min-height: 100vh;
        }

        /* Sidebar Styles - Desktop */
        .sidebar {
            width: 250px;
            background-color: var(--primary-red);
            color: var(--light-text);
            padding: 20px 0;
            position: relative;
            overflow: hidden;
        }

        .sidebar::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23d4af37" fill-opacity="0.1" d="M30,10 Q50,0 70,10 Q100,30 90,50 Q100,70 70,90 Q50,100 30,90 Q0,70 10,50 Q0,30 30,10 Z"/></svg>');
            background-size: 200px;
            opacity: 0.2;
            z-index: 0;
        }

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

        .sidebar-header h2 {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .sidebar-header p {
            font-size: 0.8rem;
            opacity: 0.8;
        }

        .nav-menu {
            margin-top: 20px;
            position: relative;
            z-index: 1;
        }

        .nav-item {
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }

        .nav-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .nav-item.active {
            background-color: var(--gold);
            color: var(--dark-text);
            font-weight: 500;
        }

        .nav-item i {
            font-size: 1.1rem;
        }

        /* Main Content Styles */
        .main-content {
            flex: 1;
            padding: 20px;
            background-color: white;
            padding-bottom: 60px; /* Space for mobile nav */
        }

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

        .header h1 {
            color: var(--primary-red);
            font-size: 1.8rem;
        }

        .search-bar {
            display: flex;
            align-items: center;
            background-color: var(--cream);
            border-radius: 30px;
            padding: 8px 15px;
            width: 300px;
        }

        .search-bar input {
            border: none;
            background: transparent;
            padding: 5px 10px;
            width: 100%;
            outline: none;
        }

        .search-bar i {
            color: var(--dark-text);
            opacity: 0.6;
        }

        .stats-cards {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border-top: 4px solid var(--primary-red);
        }

        .stat-card h3 {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 10px;
        }

        .stat-card .value {
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--primary-red);
        }

        .stat-card .secondary-value {
            font-size: 0.9rem;
            color: #666;
            margin-top: 5px;
        }

        /* Customers Table */
        .customers-table {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background-color: var(--primary-red);
            color: white;
        }

        .table-header h2 {
            font-size: 1.2rem;
        }

        .table-actions {
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background-color: var(--gold);
            color: var(--dark-text);
        }

        .btn-primary:hover {
            background-color: var(--light-gold);
        }

        .btn-outline {
            background-color: transparent;
            border: 1px solid white;
            color: white;
        }

        .btn-outline:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th {
            text-align: left;
            padding: 15px 20px;
            background-color: var(--cream);
            color: var(--dark-text);
            font-weight: 500;
        }

        td {
            padding: 12px 20px;
            border-bottom: 1px solid #eee;
        }

        .customer-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

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

        .customer-name {
            font-weight: 500;
        }

        .customer-phone {
            font-size: 0.8rem;
            color: #666;
            margin-top: 3px;
        }

        .status-badge {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .status-overdue {
            background-color: #ffebee;
            color: #c62828;
        }

        .status-due {
            background-color: #fff8e1;
            color: #ff8f00;
        }

        .status-paid {
            background-color: #e8f5e9;
            color: #2e7d32;
        }

        .action-btn {
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            margin-right: 5px;
        }

        .action-btn.sms {
            background-color: #e3f2fd;
            color: #1565c0;
        }

        .action-btn.sms:hover {
            background-color: #bbdefb;
        }

        .action-btn.payment {
            background-color: #e8f5e9;
            color: #2e7d32;
        }

        .action-btn.payment:hover {
            background-color: #c8e6c9;
        }

        /* Modals */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: white;
            border-radius: 8px;
            width: 800px;
            max-width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .modal-header {
            padding: 15px 20px;
            background-color: var(--primary-red);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            font-size: 1.2rem;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .modal-body {
            padding: 20px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }

        .form-group textarea {
            min-height: 100px;
        }

        .form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }

        .btn-cancel {
            background-color: #f5f5f5;
            color: #333;
        }

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

        .transaction-item {
            display: flex;
            justify-content: space-between;
            padding: 15px 0;
            border-bottom: 1px solid #eee;
        }

        .transaction-item:last-child {
            border-bottom: none;
        }

        .transaction-date {
            font-size: 0.9rem;
            color: #666;
        }

        .transaction-amount {
            font-weight: 500;
        }

        .transaction-amount.credit {
            color: #2e7d32;
        }

        .transaction-amount.debit {
            color: #c62828;
        }

        /* SMS Modal */
        .sms-template {
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 15px;
            margin-bottom: 15px;
        }

        .sms-template h4 {
            margin-bottom: 10px;
        }

        .sms-template p {
            white-space: pre-wrap;
            background-color: white;
            padding: 10px;
            border-radius: 4px;
            border: 1px solid #eee;
        }

        /* Bengali Cultural Elements */
        .bengali-pattern {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23d4af37" fill-opacity="0.2" d="M20,50 Q30,20 50,20 Q70,20 80,50 Q70,80 50,80 Q30,80 20,50 Z M30,50 Q40,30 50,30 Q60,30 70,50 Q60,70 50,70 Q40,70 30,50 Z"/></svg>');
            background-size: 100px;
            opacity: 0.3;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
        }

        .logo {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-weight: 700;
            letter-spacing: 1px;
            position: relative;
        }

        .logo::after {
            content: "এম/এস বাবর ট্রেডার্স";
            position: absolute;
            top: 100%;
            left: 0;
            font-size: 0.6rem;
            font-weight: normal;
            letter-spacing: normal;
            color: var(--light-gold);
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #333;
            color: white;
            padding: 15px 20px;
            border-radius: 4px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 1100;
            display: flex;
            align-items: center;
            gap: 10px;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .toast.success {
            background-color: #2e7d32;
        }

        .toast.error {
            background-color: #c62828;
        }

        .toast i {
            font-size: 1.2rem;
        }

        /* Mobile Navigation - Hidden on Desktop */
        .mobile-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: var(--primary-red);
            z-index: 100;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        }

        .mobile-nav-items {
            display: flex;
            justify-content: space-around;
        }

        .mobile-nav-item {
            padding: 12px 0;
            text-align: center;
            color: white;
            flex: 1;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .mobile-nav-item i {
            font-size: 1.2rem;
            margin-bottom: 5px;
        }

        .mobile-nav-item span {
            display: block;
            font-size: 0.7rem;
        }

        .mobile-nav-item.active {
            background-color: var(--gold);
            color: var(--dark-text);
        }

        /* Mobile Responsive Styles */
        @media (max-width: 992px) {
            .sidebar {
                display: none;
            }

            .main-content {
                padding: 15px;
                padding-bottom: 70px; /* Extra space for mobile nav */
            }

            .header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .search-bar {
                width: 100%;
            }

            .stats-cards {
                grid-template-columns: repeat(2, 1fr);
            }

            .mobile-nav {
                display: block;
            }
        }

        @media (max-width: 576px) {
            .stats-cards {
                grid-template-columns: 1fr;
            }

            .table-actions {
                flex-direction: column;
                gap: 10px;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            .modal-content {
                width: 95%;
            }
        }
 