/* Dark theme background for the entire page */
body {
    background: #282c35;
    color: #e0e7ff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}


.sb-table-container {
    margin: 20px auto;
    width: 40%; /* Increased width to prevent overflow */
}
/* Styles for the delete button */
.delete-column {
    text-align: center;
    width: 50px;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.delete-btn:hover {
    color: #ff4c4c;
    transform: scale(1.2);
}

.delete-btn:focus {
    outline: none;
}

.select2-container--default .select2-results__option {
    background-color: #3c444f !important; /* Set the background color to match the category page */
    /* Set the text color to white for better visibility */
    color: white;
}

/* Limit the width of the select2 dropdown to 40% */

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    /* Adjust the table styles */
    table {
        width: 100%;
        font-size: 14px;
        border-collapse: collapse;
    }

    table thead {
        display: none; /* Already hidden, which is good */
    }

    table tbody tr {
        display: flex;
        flex-direction: row; /* Use row to align items horizontally */
        align-items: center; /* Center items vertically */
        justify-content: space-between; /* Space out the content */
        margin-bottom: 10px;
        margin-top: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 8px;
        background: #2E3440;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        margin-left: 5px;
        margin-right: 5px;
        width: calc(100% - 10px);
        box-sizing: border-box;
    }

    table tbody tr td {
        padding: 5px 8px;
        border: none !important; /* This forces the override */
        box-sizing: border-box;
    }

    /* Subcategory and amount in a single container */
    table tbody tr .subcategory-amount {
        display: flex;
        flex-direction: column; /* Stack subcategory and amount vertically */
        flex-grow: 1; /* Allow this section to take available space */
        margin-left: 10px;
    }

    table tbody tr .subcategory {
        font-weight: bold;
        color: #61dafb;
        margin-bottom: 3px; /* Small space between subcategory and amount */
    }

    table tbody tr .amount {
        font-size: 16px;
        color: #e0e7ff;
    }

    /* Delete button styling */
    table tbody tr .delete-column {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px; /* Fixed width for the delete button column */
        margin-left: 10px;
    }

    table tbody tr .delete-btn {
        background: none;
        border: none;
        color: #ff6b6b;
        cursor: pointer;
        font-size: 18px;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    table tbody tr .delete-btn:hover {
        color: #ff4c4c;
        transform: scale(1.2);
    }

    table tbody tr .delete-btn:focus {
        outline: none;
    }
    .sb-table-container {
        
        width: 85%; /* Increased width to prevent overflow */
    }
}


@media (max-width: 768px) {
    
    .mobile-header-logo .nav-icon
    {     
      display: none;
    }
  }



