/* Container with glowing effect */
.balance-details-wrapper {
    background: linear-gradient(145deg, #2E3440, #353b48);
    padding: 20px;
    border-radius: 16px;
    margin: 20px auto;
    width: 80%;
    position: relative;
}

/* Glowing animation keyframes */

/* Desktop Table Styles */
.balance-details-table {
}

.balance-details-table thead {
}

.balance-details-table th {
    border-right: 1px solid #ddd; /* Add vertical border */
}



.balance-details-table tbody {
}

.balance-details-table tr {
}

.balance-details-table tr:hover {
    box-shadow: none; /* Remove box-shadow on hover */
}

.balance-details-table td {
    border-bottom: 1px solid #ddd; /* Add horizontal border */
    border-right: 1px solid #ddd; /* Add vertical border */
}


/* Editable Cell Styles */
.editable-display-name, .editable-account-type, .editable-last-sync, .editable-balance, .editable-available-balance {
    cursor: pointer;
}

.editable-display-name:hover, .editable-account-type:hover, .editable-last-sync:hover, .editable-balance:hover, .editable-available-balance:hover {
    background-color: rgba(0, 188, 212, 0.2);
}

.display-name-input, .account-type-select, .last-sync-input, .balance-input, .available-balance-input {
    width: 100%;
    background-color: #444444;
    color: #ffffff;
    
    padding: 5px;
    border-radius: 6px;
}

/* DataTables Overrides */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-color: transparent;
    color: #ffffff !important;
}

/* Hide Mobile View on Desktop */
.balance-details-mobile-container {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .balance-details-wrapper {
        width: 95%; /* Set to 95% for mobile view */
        margin: 10px auto; /* Reduce margin to minimize extra space */
        padding: 10px; /* Reduce padding if needed */
    }
    .balance-details-container {
        display: none;
    }

    .balance-details-mobile-container {
        display: block;
        width: 100%; /* Ensure it takes the full width of the wrapper */
        max-width: none; /* Remove any max-width restrictions */
        margin: 0; /* Remove any extra margins */
        padding: 0; /* Remove padding to avoid extra space */
    }

    .bank-group {
        width: 100%; /* Ensure the bank group takes full width */
        margin-bottom: 20px;
        padding: 0; /* Remove padding if any */
    }

    .bank-title {
        color: #ffffff;
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 10px;
        padding-left: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .balance_details_card {
        background: linear-gradient(145deg, #2E3440, #353b48);
        border-radius: 8px;
        margin: 10px 0;
        padding: 15px;
        color: #fff;
        box-shadow: 0 2px 5px rgba(0, 188, 212, 0.2);
        width: 100% !important;       /* Or adjust percentage as needed */
       
        
        margin-bottom: 15px; /* Keep or adjust vertical spacing */
    }
    

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

    .balance_details_info {
        flex-grow: 1;
    }

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

    .balance_details_last_refreshed {
        font-size: 12px;
        color: #aaa;
        display: block;
    }

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

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

    .balance_details_body {
        margin-top: 10px;
    }

    .balance_details_field {
        margin: 5px 0;
    }

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




/* AddAccount Popup Overlay */
#addAccountPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup Content */
#addAccountPopup .popup-content {
    background: #1e1e2f;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    color: #e0e7ff;
}

/* Form Styles */
#addAccountForm .form-group {
    margin-bottom: 15px;
}

#addAccountForm .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ffffff;
}

#addAccountForm .form-group input,
#addAccountForm .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2a2a3d;
    color: #e0e7ff;
    font-size: 14px;
}

#addAccountForm .form-actions {
    display: flex;
    justify-content: space-between;
}

#addAccountForm .btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#addAccountForm .btn-primary {
    background: #61dafb;
    color: #1e1e2f;
}

#addAccountForm .btn-secondary {
    background: #444;
    color: #e0e7ff;
}



/* Upload Icon Styles */
.upload-icon {
    color: #61dafb;
    font-size: 16px;
    transition: color 0.3s ease;
}

.upload-icon:hover {
    color: #00bcd4;
}

/* Ensure upload column is centered */
.balance-details-table td:last-child {
    text-align: center;
}

/* Mobile Upload Icon */
.balance-details-mobile-container .upload-icon {
    margin-left: 10px;
    font-size: 14px;
}

.edit-indicator {
    margin-left: 5px;
    font-size: 0.8em; /* Make icon slightly smaller */
    color: #777;    /* Give it a subtle color */
    cursor: default; /* Indicate it's not clickable itself */
}
.upload-icon i { /* Style the upload icon if needed */
    cursor: pointer;
}