body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: 250px;
    padding: 20px;
    box-sizing: border-box;
}


h1,
h2 {
    text-align: center;
}

.uid-list {
    background: #fff;
    padding: 20px;
    margin-left: 10px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table,
th,
td {
    border: 1px solid #e50202;
}

th,
td {
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.2);
}

tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

button {
    padding: 5px 10px;
    margin: 5px;
    background: #3801dd;
    color: #dddddd;
    border: 1px solid #0029f7;
    border-radius: 3px;
    cursor: pointer;
    font-size: 15px;
}

button:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 600px) {

    table,
    th,
    td {
        font-size: 18px;
        margin-left: -14px;

    }

   
    th,
    td {
        display: block;
        width: 375px;
    }

    tr {
        margin-bottom: 20px;
        display: block;
        border: 1px solid #fb0000;
        border-radius: 5px;
        padding-left: 18px;
        background: #ffffff;
    }

    th {
        background: none;
        font-weight: bold;
    }

    td {
        border: none;
        padding: 5px 0;
    }

    td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 100px;
    }

    thead {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin-left: auto
    }
}

/* Modal Styles */

/* Add these styles for body when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}



/* Add this to your existing CSS */
.modal {
    display: none;
    position: fixed; /* Changed from absolute to fixed */
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh; /* Changed to viewport height */
    overflow: hidden; /* Added vertical scrolling */
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 1% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}



.close {
    color: #ff8758;
    float: right;
    font-size: 36px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: rgb(255, 0, 0);
    text-decoration: none;
    cursor: pointer;
}

/* Fun Input Fields */
.modal input,
.modal textarea {
    width: 90%;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    outline: none;
    margin-top: 10px;
    background: #000000;
    /* Dark input background */
    color: #fff;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.modal input:focus,
.modal textarea:focus {
    background: #363636;
    /* Slightly lighter background when focused */
    border: 2px solid #3aff0e;
    box-shadow: 0px 0px 10px rgba(255, 99, 71, 0.5);
}

/* Button Styling with Hover Effect */
.modal button {
    width: 97%;
    padding: 15px;
    background: #0b8600;
    /* Warm color button */
    color: white;
    margin-left: 1px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.modal button:hover {
    background: #0b8600;
    /* Darker red on hover */
    transform: translateY(5px);
    color: black;
}

/* Add an overlay blur effect */
.modal.show {
    backdrop-filter: blur(10px);
}


/* Withdrawal Details Styles */

.withdrawal-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    overflow: auto;
    font-size: 18px;
}


#withdrawalDetails p {
    font-size: 18px;
    margin: 10px 0;
    color: #000000;
    line-height: 2;
}

#withdrawalDetails strong {
    color: #3f00b5;
}

#withdrawalDetails select {
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    border: 2px solid rgb(27, 7, 255);
    padding: 3px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.83s ease;
    font-size: 17px;
}

#withdrawalDetails select:hover {
    background: rgba(255, 255, 255, 0.2);
}

#withdrawalDetails select:focus {
    outline: none;
    border: 1px solid #00adb5;
}

hr {
    border: none;
    height: 3px;
    background: rgb(229, 10, 10);
    margin: 20px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #withdrawalDetails p {
        font-size: 18px;
    }

    #withdrawalDetails select {
        width: 55%;
        padding: 10px;
    }
}

@media screen and (max-width: 768px) {
    .modal-content {
        margin: 1% auto;
        width: 91%;
        padding: 15px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .transaction-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .transaction-actions {
        width: 70%;
        display: flex;
        justify-content: space-between;
    }
}

/* Toast Styles */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 20px;
    font-size: 20px;
    font-weight: bold;
}

.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.toast.success {
    background-color: #00a005;
}

.toast.error {
    background-color: #ff1100;
}

.toast.info {
    background-color: #0263b3;
}

@keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }

    to {
        top: 20px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        top: 30px;
        opacity: 1;
    }

    to {
        top: 0;
        opacity: 0;
    }
}


@media (max-width: 768px) {
    .toast {
        width: 70%;
        margin: auto;
        left: 45px;
    }
}

#uidSearch {
    width: 93%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    /* Ensure font size is 16px or larger to prevent zooming */
}


/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    /* Initially hidden */
    width: 250px;
    height: 100vh;
    background: #343a40;
    color: white;
    transition: left 0.3s ease-in-out;
    padding-top: 4rem;
    box-shadow: 2px 0 10px rgba(131, 131, 131, 0);
}

/* Sidebar Visible */
.sidebar.active {
    left: 0;
}

/* Sidebar Links */
.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li {
    padding: 15px;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.sidebar nav ul li a:hover {
    color: #55ff07;
    border-radius: 5px;


}


/* Toggle Button */
.toggle-btn {
    position: fixed;
    top: 10px;
    left: 15px;
    color: rgb(255, 255, 255);
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1000;
    transition: background 0.5s ease-in-out;
}

.toggle-btn:hover {
    background: #0056b3;
}

/* Responsive for Desktop */
@media (min-width: 768px) {
    .sidebar {
        left: 0;
        /* Always visible on larger screens */
    }

    .toggle-btn {
        display: none;
        /* Hide toggle button on desktop */
    }

    .sidebar nav ul {
        list-style: none;
        padding: 0;
        margin-top: 1rem;
    }


}

/* Style for the trading code container */
#tradingCodeContainer {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Style for the container of each trading code */
.trading-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trading-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Style for the delete button */
.trading-code button {
    background: linear-gradient(135deg, #ff6b6b, #ff4d4d);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 77, 77, 0.2);
}

.trading-code button:hover {
    background: linear-gradient(135deg, #ff4d4d, #ff1a1a);
    box-shadow: 0 4px 8px rgba(255, 77, 77, 0.3);
    transform: scale(1.05);
}

.trading-code button:active {
    transform: scale(0.95);
}

/* Style for the code text */
.trading-code span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-left: 15px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.broadcast-button {
    background-color: #3455db;
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right; 
    margin: 10px 20px; 
    position: relative;
    right: 0; 
}

.broadcast-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px); /* Add hover animation */
    transition: all 0.3s ease; /* Add smooth transition */
}

/* Add responsive styling for mobile */
@media (max-width: 768px) {
    .broadcast-button {
        float: none; /* Remove float on mobile */
        width: 40%; /* Full width on mobile */
        margin: 10px 3.2rem; /* Adjust margins */
        text-align: center; /* Center text */
    }
}


/* User Details Modal Styles */
.detail-group {
    margin-bottom: 15px;
}

.detail-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.detail-group input {
    width: 90%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.save-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.button-group .delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
}

.save-btn:hover {
    background-color: #2980b9;
}

.button-group .delete-btn:hover {
    background-color: #c0392b;
}

/* Add hover effect to UID cells */
td[data-label="UID"] {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}

td[data-label="UID"]:hover {
    color: #2980b9;
}

/* Add withdrawal style to the page */


.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
}

.page-title {
    color: #002962;
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
}

.search-box {
    margin-bottom: 25px;
    width: 90%;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

.data-table {
    width: 100%;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-collapse: separate;
    border-spacing: 0;
}

.table-header {
    background: #6db1ff;
    color: rgb(0, 0, 0);
}

.table-header th {
    padding: 15px;
    font-weight: 600;
    text-align: left;
    font-size: 15px;
}

.table-row {
    transition: background-color 0.2s ease;
}

.table-row:nth-child(even) {
    background: #ffffff;
}

.table-row:hover {
    background: #edf2f7;
}

.table-cell {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.status-select {
    padding: 4px 5px;
    border: 2px solid #001aff;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    width: 100%;
    max-width: 160px;
    cursor: pointer;
}


@media screen and (max-width: 768px) {
    .main-content {
        width: 97%;
        padding: 10px;
    }

    .data-table, .table-header, .table-row, .table-cell {
        display: block;
    }

    .table-header {
        display: none;
    }

    .table-row {
        margin-bottom: 15px;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .table-cell {
        display: flex;
        justify-content: left;
        align-items: center;
        padding: 12px 10px;
        text-align: left;
    }

    .table-cell:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2d3748;
        margin-right: 3rem;
    }

    .status-select {
        max-width: 50%;
    }
}


.date-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-group .edit-btn {
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100px;
    margin-left: 1.4rem;
    
}

.detail-group .edit-btn:hover {
    background-color: #acacac;
    transform: translateY(-1px);
}

.edit-btn i {
    margin-right: 4px;
}

.detail-group #displayDate {
    font-size: 18px;
    color: #000000;
    padding: 8px;
    background: #f7fafc;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid #1203ba;
}
 #userCreationDate {
    flex: 1;
    padding: 8px;
    border: 1px solid #dc3001;
    border-radius: 4px;
    font-size: 16px;
}

/* Account Status Container */
.status-container {
    display: flex;
    align-items: center;
    gap:5px;
    margin: 5px;
    
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.status-badge.locked {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-badge.active {
    background-color: #006f27;
    color: #a3ffa9;
    border: 1px solid #bbf7d0;
    font-weight: 600;

}

.status-badge .attempts {
    margin-left: 8px;
    font-size: 0.85em;
    opacity: 0.8;
    font-weight: normal;
}

/* Lock/Unlock Button Styles */
.lock-toggle-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lock-toggle-btn.lock {
    background-color: #dc2626;
    color: white;
    padding: 8px 8px;
    margin-top: 3px;
}

.lock-toggle-btn.unlock {
    background-color: #016a28;
    color: white;
}

.lock-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lock-toggle-btn.lock:hover {
    background-color: #b91c1c;
    color: #000000;
}

.lock-toggle-btn.unlock:hover {
    background-color: #15803d;
    color: #000000;
}

.lock-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .status-container {
        flex-direction: row;
        align-items: space-between;
        gap: 10px;
    }

    .lock-toggle-btn {
        width: 20%;
        justify-content: center;
    }

    .status-badge {
        width: 50%;
        justify-content: center;
    }
}



/* Deposit Section Styles */
.deposit-container {
    max-width: 700px;
    margin: 0 0;
    padding: 0;
    width: 98%;
}

.form-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.form-wrapper h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c2d3c;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label i {
    color: #2c3e50;
}

.form-group #status {
    width: 98.9%;
    border: 1px solid #0055c3;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;;
}



.form-group input,
.form-group select {
    width: 95%;
    padding: 12px;
    border: 1px solid #0055c3;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00229e;
    box-shadow: 0 0 0 2px rgb(52, 152, 219);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #34495e;
    transform: translateY(-1px);
}

.success-message {
    display: none;
    background-color: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.success-message.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-message i {
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .form-group #status {
        width: 345px;
        border: 1px solid #0055c3;
        border-radius: 6px;
        font-size: 16px;
        transition: all 0.3s ease;;
    }
}

/* Add this CSS to your stylesheet */
[data-label="Actions"] button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 75px;
    white-space: nowrap;
    

    
}

/* Notify button styling */
[data-label="Actions"] button:nth-child(2) {
    background-color: #059669;
    color: white;
}

[data-label="Actions"] button:nth-child(2):hover {
    background-color: #047857;
}

/* Transactions button styling */
.transactions-btn {
    background-color: #7C3AED;
    color: white;
    
}

.transactions-btn:hover {
    background-color: #6D28D9;
}


/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    [data-label="Actions"] {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }

    [data-label="Actions"] button {
        width: 10%;
        padding: 10px;
    }
}

/* Active/Pressed state */
[data-label="Actions"] button:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Disabled state */
[data-label="Actions"] button:disabled {
    background-color: #dbdbd1;
    cursor: not-allowed;
    opacity: 0.7;
}


/* Add to your CSS file */
.locked-badge {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.force-logout-warning {
    background-color: #ffc107;
    color: #000;
    padding: 8px;
    margin-bottom: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}


#deleteCodeBtn {
    margin-top: 15px;
    padding: 8px 6px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#deleteCodeBtn:hover {
    background-color: #c82333;
}





