/* ===================================
   Wallet Page - Modern Design Styles
   =================================== */

/* بطاقة الرصيد المحسنة */
.wallet-balance-card {
    background: linear-gradient(135deg, #0b0b0b 0%, #141414 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(11, 11, 11, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallet-balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11, 11, 11, 0.35);
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.wallet-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.wallet-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-icon-wrapper svg {
    color: #ffdf00;
}

.wallet-label {
    color: rgba(255, 223, 0, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

.wallet-amount-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.amount-value {
    font-size: 3rem;
    font-weight: 700;
    color: #ffdf00;
    font-family: 'Cairo', sans-serif;
    line-height: 1;
}

.amount-currency {
    font-size: 1.5rem;
    color: rgba(255, 223, 0, 0.8);
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

.wallet-card-footer {
    position: relative;
    z-index: 1;
}

.wallet-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #ffdf00;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* أزرار العمليات المحسنة */
.wallet-actions-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.wallet-action-btn {
    background: #fff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: width 0.3s ease;
    z-index: 0;
}

.wallet-action-btn.primary::before {
    background: linear-gradient(135deg, #0b0b0b 0%, #141414 100%);
}

.wallet-action-btn.secondary::before {
    background: linear-gradient(135deg, #ffdf00 0%, #f5c400 100%);
}

.wallet-action-btn.tertiary::before {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.wallet-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.wallet-action-btn:hover::before {
    width: 100%;
}

.wallet-action-btn:hover .btn-icon,
.wallet-action-btn:hover .btn-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.btn-icon {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wallet-action-btn.primary .btn-icon {
    background: linear-gradient(135deg, #0b0b0b 0%, #141414 100%);
}

.wallet-action-btn.secondary .btn-icon {
    background: linear-gradient(135deg, #ffdf00 0%, #f5c400 100%);
}

.wallet-action-btn.tertiary .btn-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.wallet-action-btn.primary .btn-icon svg,
.wallet-action-btn.secondary .btn-icon svg,
.wallet-action-btn.tertiary .btn-icon svg {
    color: #fff;
}

.btn-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    transition: color 0.3s ease;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
    transition: color 0.3s ease;
}

.btn-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    font-family: 'Cairo', sans-serif;
    transition: color 0.3s ease;
}

.wallet-action-btn:hover .btn-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* قسم المعاملات */
.wallet-transactions {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.transactions-header {
    margin-bottom: 1.5rem;
}

.transactions-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.transactions-title svg {
    color: #ffdf00;
}

/* Tabs المحسنة */
.wallet-tabs {
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 2rem;
}

.wallet-tabs .nav-item {
    margin-bottom: -2px;
}

.wallet-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
}

.wallet-tabs .nav-link svg {
    transition: transform 0.3s ease;
}

.wallet-tabs .nav-link:hover {
    color: #0b0b0b;
    background: #fff6bf;
    border-radius: 8px 8px 0 0;
}

.wallet-tabs .nav-link:hover svg {
    transform: scale(1.1);
}

.wallet-tabs .nav-link.active {
    color: #0b0b0b;
    border-bottom-color: #ffdf00;
    background: transparent;
}

/* الجداول المحسنة */
.wallet-table-container {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
}

.wallet-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.wallet-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.wallet-table thead th {
    border: none;
    padding: 1.2rem 1rem;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    font-size: 0.95rem;
}

.th-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.th-content svg {
    color: #ffdf00;
}

.wallet-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.wallet-table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

.wallet-table tbody td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    text-align: center;
    border: none;
}

/* خلايا الجدول المحسنة */
.amount-cell {
    font-size: 1.1rem;
    font-weight: 700;
    color: #22c55e;
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.amount-cell.withdraw {
    color: #f59e0b;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.status-badge.confirmed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.notes-cell {
    color: #64748b;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
}

.date-cell {
    color: #475569;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    direction: ltr;
}

/* حالة عدم وجود بيانات */
.no_video_found {
    text-align: center;
    padding: 3rem 2rem;
}

.no_video_found img {
    max-width: 200px;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.no_video_found p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

/* تحسين المودال */
.wallet-recharge-form .form-group label {
    font-weight: 600;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 0.5rem;
    display: block;
}

.wallet-recharge-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.wallet-recharge-form .form-control:focus {
    border-color: #f5c400;
    box-shadow: 0 0 0 3px rgba(255, 223, 0, 0.2);
    outline: none;
}

.btn-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.btn-actions button {
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-actions button[type="submit"] {
    background: linear-gradient(135deg, #ffdf00 0%, #f5c400 100%);
    color: #0b0b0b;
}

.btn-actions button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 223, 0, 0.35);
}

.btn-actions button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-actions button[type="button"] {
    background: #f1f5f9;
    color: #64748b;
}

.btn-actions button[type="button"]:hover {
    background: #e2e8f0;
}

/* إدارة الحسابات البنكية */
.bank-accounts {
    margin-bottom: 1.5rem;
}

.bank-account-holder {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.bank-account-holder:hover {
    border-color: #ffdf00;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bank-account-holder p {
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
}

.bank-accounts-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-accounts-action span:first-child {
    font-weight: 700;
    color: #1e293b;
}

.del-bank-account {
    color: #ef4444;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.del-bank-account:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wallet-balance-card {
        padding: 1.5rem;
    }

    .amount-value {
        font-size: 2.5rem;
    }

    .amount-currency {
        font-size: 1.2rem;
    }

    .wallet-actions-modern {
        grid-template-columns: 1fr;
    }

    .wallet-action-btn {
        padding: 1.2rem;
    }

    .btn-title {
        font-size: 1rem;
    }

    .wallet-transactions {
        padding: 1.5rem;
    }

    .wallet-tabs .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .wallet-table {
        font-size: 0.85rem;
    }

    .wallet-table thead th,
    .wallet-table tbody td {
        padding: 0.8rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .amount-value {
        font-size: 2rem;
    }

    .wallet-action-btn {
        flex-direction: column;
        text-align: center;
    }

    .btn-content {
        align-items: center;
    }

    .transactions-title {
        font-size: 1.2rem;
    }

    .th-content {
        flex-direction: column;
        gap: 0.3rem;
    }
}
