.transaction-subcategory-header {
    text-align: center;
    color: var(--text-color); /* Use theme variable for text color */
    margin-bottom: 15px; /* Add some space below the header */
}

/* Container for the table with glowing effect */
.budget_transaction_details_wrapper {
    /*background: linear-gradient(135deg, #1e2a44 0%, #2a3b5a 100%);   */
    /* Removed background to avoid duplicate container appearance */
    /* Removed padding to avoid duplicate container appearance */
    border-radius: 16px;
    margin: 10px 0;
    position: relative;
}


/* Default styles for desktop - Enhanced version with new colors */
.budget-transaction-table {
}

.budget-transaction-table thead {
}

.budget-transaction-table th {
}

.budget-transaction-table th::after {
}


.budget-transaction-table tbody {
}

.budget-transaction-table tr {
}

.budget-transaction-table tr:hover {
}

.budget-transaction-table td {
}


.budget-transaction-table .reCategorizeButton {
    background: linear-gradient(90deg, #ff6f61, #ff8a65);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.budget-transaction-table .reCategorizeButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4);
}

.budget-transaction-table .updateSubcategoryButton {
    background: linear-gradient(90deg, #4dd0e1, #81d4fa);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.budget-transaction-table .updateSubcategoryButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 182, 172, 0.4);
}

.budget-transaction-table .subcategoryLabel {
    color: #e0e7ff;
    margin-right: 10px;
    font-weight: 500;
}

.budget-transaction-table .select2-container .select2-selection--single {
    background: #3e4b6a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e7ff;
    border-radius: 6px;
    height: 36px;
}

.budget-transaction-table .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e0e7ff;
    line-height: 36px;
}

.budget-transaction-table .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Hide mobile view on desktop */
.budget-transaction-mobile-container {
    display: none;
}

/* Mobile styles (unchanged as requested) */
@media (max-width: 768px) {
    /* Hide table on mobile */
    .budget-transaction-container {
        display: none;
    }

    /* Show mobile view */
    .budget-transaction-mobile-container {
        display: block;
    }

    /* Card styling */
    .budget_transaction_details_card {
        background-color: #1a1a1a;
        border-radius: 8px;
        margin: 10px 0;
        padding: 15px;
        color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .budget_transaction_details_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .budget_transaction_details_info {
        flex-grow: 1;
    }

    .budget_transaction_details_payee {
        font-size: 16px;
        font-weight: bold;
        display: block;
    }

    .budget_transaction_details_date {
        font-size: 12px;
        color: #aaa;
    }

    .budget_transaction_details_amount {
        font-size: 16px;
        font-weight: bold;
        display: block;
    }

    .budget_transaction_details_status {
        font-size: 12px;
        color: #00cc00;
        cursor: pointer;
    }

    .budget_transaction_details_toggle {
        background: none;
        border: none;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        padding: 0;
    }

    .budget_transaction_details_body {
        margin-top: 10px;
    }

    .budget_transaction_details_field {
        margin: 5px 0;
    }

    .budget_transaction_details_label {
        font-weight: bold;
        color: #aaa;
    }

    .budget_transaction_details_reCategorizeButton {
        background-color: #333;
        color: #fff;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
    }

    .budget_transaction_details_subcategoryLabel,
    .budget_transaction_details_select2,
    .budget_transaction_details_updateSubcategoryButton {
        margin-top: 5px;
    }
}

/* Styles for the popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    display: flex; /* Hide by default */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
}

/* Styles for the popup content */
.popup-content {
    background-color: #1e1e2f; /* Light blue color */
    color: #1e1e2f; /* Dark text color for contrast */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 500px; /* Limit the width of the popup */
    width: 90%; /* Make it responsive */
    position: relative;
}

.popup-header {
    display: flex;
    justify-content: flex-start; /* Align items to the start (left) */
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--table-border-color); /* Use theme variable */
}

.popup-header h2 {
    margin: 0;
    font-size: 1.5em;
    align-items: center;
}

.popup-header p {
    margin: 5px 0 0;
    color: #aaa; /* Lighter text for description */
}

.popup-header .close-button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--text-color); /* Use theme variable */
}

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

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

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--table-border-color); /* Use theme variable */
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    background-color: var(--input-background); /* Use theme variable */
    color: var(--text-color); /* Use theme variable */
}

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

.form-actions button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.form-actions .btn-primary {
    background-color: #007bff; /* Primary button color */
    color: white;
}

.form-actions .btn-secondary {
    background-color: #6c757d; /* Secondary button color */
    color: white;
}

/* Select2 adjustments for popup */
.select2-container--default .select2-selection--single {
    background-color: var(--input-background); /* Use theme variable */
    color: var(--text-color); /* Use theme variable */
    border: 1px solid var(--table-border-color); /* Use theme variable */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-color); /* Use theme variable */
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #555 !important;
    color: #fff !important;
}

.select2-container--default .select2-results>.select2-results__options {
    background-color: var(--container-background); /* Use theme variable */
    color: var(--text-color); /* Use theme variable */
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--input-background); /* Use theme variable */
    color: var(--text-color); /* Use theme variable */
    border-color: var(--table-border-color); /* Use theme variable */
}

/* Styles for the split button */
.split-button {
    background: linear-gradient(90deg, #4dd0e1, #81d4fa);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.split-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 182, 172, 0.4);
}
