/* Nạp thẻ CSS */
.recharge-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.page-title {
    text-align: center;
    font-size: 2.5em;
    font-family: 'Bangers', cursive;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-balance {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.balance-item {
    text-align: center;
}

.balance-item .label {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
}

.balance-item .value {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
}

.balance-item .value.cash {
    color: #ffd700;
    font-size: 1.4em;
}

.tabs-container {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: rgba(0,0,0,0.2);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.tab-btn.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-bottom-color: #ffd700;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.form-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffd700;
}

.note {
    background: rgba(255,193,7,0.2);
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
}

.recharge-form {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-group select option {
    background: #333;
    color: white;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.6);
}

.transfer-info {
    margin-top: 30px;
    background: rgba(40,167,69,0.2);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
}

.transfer-info h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.transfer-details p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.copy-text {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.copy-text:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.transfer-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.warning {
    background: rgba(220,53,69,0.2);
    border-left: 4px solid #dc3545;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    margin-bottom: 10px;
}

.transactions-table {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.transactions-table th {
    background: rgba(0,0,0,0.3);
    font-weight: bold;
    color: #ffd700;
}

.transactions-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-card {
    background: #17a2b8;
    color: white;
}

.badge-bank {
    background: #28a745;
    color: white;
}

.status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-success {
    background: #28a745;
    color: white;
}

.status-pending {
    background: #ffc107;
    color: #333;
}

.status-failed {
    background: #dc3545;
    color: white;
}

.no-transactions {
    text-align: center;
    padding: 50px;
    opacity: 0.7;
}

/* Alert styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

.alert-success {
    background: rgba(40,167,69,0.2);
    border: 2px solid #28a745;
    color: #d4edda;
}

.alert-error {
    background: rgba(220,53,69,0.2);
    border: 2px solid #dc3545;
    color: #f8d7da;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .recharge-container {
        margin: 10px;
        padding: 15px;
    }
    
    .user-balance {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .transactions-table {
        overflow-x: auto;
    }
    
    .transactions-table table {
        min-width: 600px;
    }
    
    .page-title {
        font-size: 2em;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: pulse 0.6s ease-in-out;
}

.main-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 2.5em;
    color: #222;
    text-shadow: 2px 2px 0 #fff;
    text-align: center;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #fff;
    border: 3px solid #222;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.1em;
    text-align: center;
    border: 3px solid #222;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: #fff;
    border: 3px solid #222;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border: none;
    border-right: 2px solid #222;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: #fff;
    text-shadow: 2px 2px 0 #222;
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Tab Content */
.tab-content {
    display: none;
    background: #d597fa;
    border: 3px solid #222;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tab-content.active {
    display: block;
}

/* Recharge Form */
.recharge-form {
    background: #fff;
    border: 2px solid #222;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.form-header h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.6em;
    color: #ff6b35;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.form-header p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #222;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1em;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    transform: scale(1.02);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: #fff;
    border: 3px solid #222;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #222;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* QR Section */
.qr-section {
    background: #fff;
    border: 2px solid #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.qr-section h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.4em;
    color: #ff6b35;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.qr-container {
    margin: 20px 0;
}

.qr-code {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 3px solid #222;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.qr-info {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.qr-info p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1em;
    margin: 5px 0;
    color: #333;
}

/* History Section */
.history-section {
    background: #90cdf4;
    border: 3px solid #222;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.history-section h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.6em;
    color: #1a202c;
    text-align: center;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.history-table {
    background: #fff;
    border: 2px solid #222;
    border-radius: 8px;
    overflow: hidden;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-family: 'Roboto', sans-serif;
}

.history-table th {
    background: #f8f9fa;
    font-size: 1.1em;
    color: #333;
    text-transform: uppercase;
    border-bottom: 2px solid #222;
}

.history-table td {
    font-size: 1em;
    color: #555;
}

.history-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Styles */
.status-pending {
    color: #ffc107;
    font-weight: bold;
}

.status-success {
    color: #28a745;
    font-weight: bold;
}

.status-failed {
    color: #dc3545;
    font-weight: bold;
}

.status-waiting_payment {
    color: #17a2b8;
    font-weight: bold;
}

.no-history {
    text-align: center;
    padding: 40px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.2em;
    color: #666;
    background: #fff;
    border: 2px solid #222;
    border-radius: 8px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #333;
}

/* Breadcrumb Navigation (Old Style - Keep for Compatibility) */
.breadcrumb-nav {
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    font-family: 'Roboto', sans-serif;
}

.breadcrumb-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #ff8c42;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #666;
    font-weight: 500;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .napthe-container {
        margin: 15px auto;
        padding: 0 10px;
    }
    
    .main-title {
        font-size: 2em;
        padding: 15px;
    }
    
    .tab-btn {
        font-size: 1.1em;
        padding: 12px;
    }
    
    .form-header h3 {
        font-size: 1.5em;
    }
    
    .submit-btn {
        font-size: 1.2em;
        padding: 12px;
    }
    
    .history-table {
        overflow-x: auto;
    }
    
    .history-table table {
        min-width: 600px;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px;
        font-size: 0.9em;
    }
    
    .qr-code {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        border-right: none;
        border-bottom: 2px solid #222;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .form-group input,
    .form-group select {
        font-size: 1em;
        padding: 10px;
    }
    
    .qr-info p {
        font-size: 1em;
    }
}
