/* تنسيقات أساسية */
.mmc-dashboard-wrapper {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mmc-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.mmc-dashboard-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 28px;
}

.mmc-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mmc-user-info span {
    font-weight: 600;
    color: #495057;
}

.button-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* التبويبات */
.mmc-dashboard-tabs {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.mmc-tabs-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0 20px;
}

.mmc-tabs-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.mmc-tabs-navigation li {
    margin: 0;
}

.mmc-tabs-navigation a {
    display: block;
    padding: 18px 25px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.mmc-tabs-navigation a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.mmc-tabs-navigation a.active {
    color: white;
    border-bottom-color: #ffd700;
    background: rgba(255,255,255,0.05);
}

.mmc-tabs-navigation a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.mmc-tabs-navigation li:last-child a::after {
    display: none;
}

.mmc-tabs-content {
    padding: 30px;
}

.mmc-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.mmc-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* الإحصائيات */
.mmc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mmc-stat-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mmc-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mmc-stat-icon {
    font-size: 2.5em;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mmc-stat-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.mmc-stat-content p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.mmc-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    display: block;
    margin-top: 5px;
}

/* الإجراءات السريعة */
.mmc-quick-actions {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.mmc-quick-actions h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
}

.mmc-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mmc-tab-link {
    text-decoration: none;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* المحفظة */
.mmc-wallet-dashboard {
    padding: 20px 0;
}

.mmc-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mmc-wallet-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmc-wallet-actions {
    display: flex;
    gap: 10px;
}

.mmc-balance-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.mmc-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.mmc-balance-icon {
    font-size: 3em;
    opacity: 0.9;
}

.mmc-balance-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    opacity: 0.9;
}

.mmc-balance-amount {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
}

.mmc-currency {
    font-size: 0.5em;
    font-weight: normal;
    opacity: 0.8;
}

.mmc-balance-updated {
    margin: 10px 0 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.mmc-balance-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.mmc-stat-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.mmc-stat-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
}

.mmc-stat-icon.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
}

.mmc-stat-details {
    flex: 1;
}

.mmc-stat-label {
    display: block;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.mmc-stat-value {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
}

/* نموذج الشحن */
.mmc-add-funds-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.mmc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.mmc-section-header h3 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmc-close-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
}

.mmc-close-section:hover {
    background: #e9ecef;
    color: #495057;
}

.mmc-wallet-form {
    margin-top: 20px;
}

.mmc-form-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mmc-instruction-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.mmc-instruction-box i {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 10px;
    display: block;
}

.mmc-instruction-box p {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

/* الجداول */
.mmc-transactions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.mmc-transactions-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: right;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.mmc-transactions-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    text-align: right;
}

.mmc-transactions-table tr:hover {
    background: #f8f9fa;
}

.mmc-positive {
    color: #28a745;
    font-weight: 600;
}

.mmc-negative {
    color: #dc3545;
    font-weight: 600;
}

/* الأحوالة */
.mmc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.mmc-status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.mmc-status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mmc-status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* التجاوب */
@media (max-width: 768px) {
    .mmc-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .mmc-tabs-navigation ul {
        flex-direction: column;
    }
    
    .mmc-tabs-navigation a {
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .mmc-tabs-navigation a.active {
        border-right-color: #ffd700;
        border-bottom: none;
    }
    
    .mmc-tabs-navigation a::after {
        display: none;
    }
    
    .mmc-balance-section {
        grid-template-columns: 1fr;
    }
    
    .mmc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mmc-form-instructions {
        grid-template-columns: 1fr;
    }
    
    .mmc-action-buttons {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        text-align: center;
    }
}