/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Maintenance Mode Styles */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.maintenance-popup {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: popup-animation 0.5s ease-out;
}

@keyframes popup-animation {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.maintenance-header {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    color: white;
    padding: 15px 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maintenance-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.maintenance-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.maintenance-close:hover {
    transform: scale(1.2);
}

.maintenance-content {
    padding: 25px;
    text-align: center;
}

.maintenance-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Login Page Styles */
.login-page {
    background: url('https://cdn.steemitimages.com/DQmNwAwwmY8CS3WWSfaSucFCHRrv37pcdVYZzhVGNejbYGY/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
    padding: 40px;
    color: white;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 150px;
    height: auto;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    top: 12px;
    left: 15px;
    color: #aaa;
}

.input-group input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: none;
    border-bottom: 1px solid #00FFFF;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-bottom: 1px solid #00FFFF;
    background: rgba(255, 255, 255, 0.2);
}

.input-group input::placeholder {
    color: #aaa;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #00FFFF;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #00CCCC;
}

.login-message {
    margin-top: 20px;
    text-align: center;
    color: #ff6b6b;
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #222;
    color: white;
    position: fixed;
    height: 100%;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.sidebar-header img {
    max-width: 120px;
}

.user-info {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.user-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
}

.user-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-status {
    font-size: 14px;
    color: #00FFFF;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-item i {
    margin-right: 10px;
    font-size: 18px;
}

.menu-item:hover, .menu-item.active {
    background-color: #333;
    color: #00FFFF;
    border-left: 4px solid #00FFFF;
}

.content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s ease;
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1010;
    background-color: #00FFFF;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Dashboard Content Styles */
.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 24px;
}

.stat-icon.pending {
    background-color: #ffeaa7;
    color: #fdcb6e;
}

.stat-icon.confirmed {
    background-color: #c4e6ff;
    color: #0984e3;
}

.stat-icon.rejected {
    background-color: #ffcccb;
    color: #d63031;
}

.stat-info h3 {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.recent-transactions {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    color: #333;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.filter-select:hover, .filter-select:focus {
    border-color: #00FFFF;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table th, .transaction-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.transaction-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #555;
}

.transaction-table tr:hover {
    background-color: #f5f5f5;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #ffeaa7;
    color: #b7791f;
}

.status-confirmed {
    background-color: #c4e6ff;
    color: #0984e3;
}

.status-rejected {
    background-color: #ffcccb;
    color: #d63031;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-btn {
    background-color: #00FFFF;
    color: #000;
}

.view-btn:hover {
    background-color: #00CCCC;
}

/* Transaction Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 20px;
    color: #333;
}

.transaction-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
}

.detail-label {
    width: 40%;
    font-weight: 600;
    color: #555;
}

.detail-value {
    width: 60%;
    display: flex;
    align-items: center;
}

.copy-btn {
    background-color: #eee;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #ddd;
}

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

.confirm-btn {
    background-color: #00FFFF;
    color: #000;
}

.confirm-btn:hover {
    background-color: #00CCCC;
}

.reject-btn {
    background-color: #ff6b6b;
    color: white;
}

.reject-btn:hover {
    background-color: #ee5253;
}

.trx-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #00b894;
}

.notification.error {
    background-color: #d63031;
}

.notification.info {
    background-color: #0984e3;
}

/* Commission Section */
.commission-info {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.commission-rates {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.commission-card {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.commission-card h3 {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.commission-rate {
    font-size: 24px;
    font-weight: bold;
    color: #00FFFF;
}

.commission-total-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.commission-total {
    font-size: 36px;
    font-weight: bold;
    color: #00FFFF;
    margin-bottom: 15px;
}

.commission-note {
    color: #555;
    margin-bottom: 20px;
    font-size: 14px;
}

.commission-history {
    margin-top: 20px;
}

/* Security Payment Modal Styles */
.security-payment-modal {
    max-width: 600px;
    width: 90%;
    z-index: 2000;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    overflow: hidden;
}

.security-payment-modal .modal-header {
    background-color: #222;
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    border-bottom: 3px solid #00FFFF;
    position: relative;
}

.security-payment-modal .modal-header h2 {
    color: #00FFFF;
    font-size: 24px;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.security-payment-modal .transaction-details {
    padding: 25px;
}

.security-payment-modal .detail-row {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.security-payment-modal .detail-row:last-child {
    border-bottom: none;
}

.security-payment-modal .detail-label {
    width: 35%;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.security-payment-modal .detail-value {
    width: 65%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.security-payment-modal #usdtAddress {
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    flex: 1;
}

.security-payment-modal .copy-btn {
    background-color: #00FFFF;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.security-payment-modal .copy-btn:hover {
    background-color: #00CCCC;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.security-payment-modal #usdtAddress {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
    margin-right: 10px;
}

.security-payment-modal .copy-btn {
    background-color: #00FFFF;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.security-payment-modal .copy-btn:hover {
    background-color: #00CCCC;
}

.security-payment-note {
    background-color: #f8f9fa;
    border-left: 4px solid #00FFFF;
    padding: 15px;
    margin: 20px;
    font-size: 14px;
    color: #555;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    position: relative;
}

.security-payment-note::before {
    content: 'IMPORTANT';
    position: absolute;
    top: -10px;
    left: 15px;
    background-color: #00FFFF;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.security-payment-note p {
    margin: 0;
    color: #444;
    line-height: 1.6;
}

.security-payment-modal .modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding-bottom: 20px;
}

.security-payment-modal .confirm-btn {
    background-color: #00FFFF;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 204, 204, 0.3);
    letter-spacing: 0.5px;
}

.security-payment-modal .confirm-btn:hover {
    background-color: #00CCCC;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 204, 204, 0.4);
}

.security-payment-modal .confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 204, 204, 0.3);
}

/* Animation for shake effect when trying to close */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border: 2px solid #ff6b6b !important;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3) !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1010;
    }
    
    .content {
        margin-left: 0;
        padding-top: 60px; /* Add padding to prevent content from being hidden under the toggle button */
    }
    
    .mobile-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1005;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content-header {
        margin-top: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label, .detail-value {
        width: 100%;
    }
    
    .detail-value {
        margin-top: 5px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}