:root {
    --expense-color: #dc3545;
    --receiving-color: #28a745;
    --sidebar-bg: #2c3e50;
    --main-bg: #f8f9fa;
}

body {
    background-color: var(--main-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: none;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

.expense-card .card-header {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--expense-color);
    border-bottom: 2px solid var(--expense-color);
}

.receiving-card .card-header {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--receiving-color);
    border-bottom: 2px solid var(--receiving-color);
}

.summary-card .card-header {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

.balance-display {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.expense-balance {
    background-color: rgba(220, 53, 69, 0.05);
    color: var(--expense-color);
}

.receiving-balance {
    background-color: rgba(40, 167, 69, 0.05);
    color: var(--receiving-color);
}

.form-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-header {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    font-weight: 600;
    color: #2c3e50;
}

.entry-list {
    max-height: 500px;
    overflow-y: auto;
}

.entry-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.entry-item:hover {
    background-color: #f8f9fa;
}

.expense-item {
    border-left: 4px solid var(--expense-color);
}

.receiving-item {
    border-left: 4px solid var(--receiving-color);
}

.entry-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.entry-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.expense-amount {
    color: var(--expense-color);
}

.receiving-amount {
    color: var(--receiving-color);
}

.entry-detail {
    margin: 5px 0;
}

.balance-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
    background: #f1f1f1;
}

.expense-badge {
    background: rgba(220, 53, 69, 0.1);
    color: var(--expense-color);
}

.receiving-badge {
    background: rgba(40, 167, 69, 0.1);
    color: var(--receiving-color);
}

.tab-content {
    padding-top: 20px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 25px;
}

.nav-tabs .nav-link.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
    background: transparent;
}

.form-section {
    margin-bottom: 25px;
}

.btn-submit {
    background: #3498db;
    color: white;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.stats-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.stats-number {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 10px 0;
}

.stats-expense {
    background: rgba(220, 53, 69, 0.05);
    color: var(--expense-color);
}

.stats-receiving {
    background: rgba(40, 167, 69, 0.05);
    color: var(--receiving-color);
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    font-weight: 700;
}

.action-buttons .btn {
    padding: 5px 10px;
    margin-left: 5px;
}

.modal-content {
    border-radius: 10px;
}

.balance-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 3px solid #3498db;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.balance-label {
    font-weight: 500;
}

.balance-value {
    font-weight: 600;
}

.total-balance {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
    }
}
.search-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 40px;
}

.search-box .search-icon {
    position: absolute;
    right: 15px;
    top: 12px;
    color: #6c757d;
}

.modal-content {
    border-radius: 15px;
}

.modal-header {
    border-bottom: 2px solid #eee;
}

.modal-body .detail-row {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.modal-body .detail-label {
    font-weight: 600;
    color: #6c757d;
    width: 150px;
}

.modal-body .detail-value {
    font-weight: 500;
}

.expense-detail .detail-value {
    color: var(--expense-color);
}

.receiving-detail .detail-value {
    color: var(--receiving-color);
}

.total-row {
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #eee;
}
.stats-card.stats-cash {
    background: rgba(40, 167, 69, 0.05);
    color: Black;
}

.stats-card.stats-bank {
    background: rgba(40, 167, 69, 0.05);
    color: Black;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-primary {
    background-color: #007bff !important;
}