/* Sidebar Styles for Customer and Merchant Panels */

.mc-customer-panel-with-sidebar,
.mc-merchant-panel-with-sidebar {
    display: flex;
    min-height: calc(100vh - 200px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Sidebar */
.mc-sidebar {
    width: 280px;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 100vh;
    overflow-y: auto;
}

.rtl .mc-sidebar {
    border-left: none;
    border-right: 1px solid #e5e7eb;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.06);
}

.mc-sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
}

.mc-sidebar-header h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.3px;
}

.mc-user-role {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.mc-sidebar-credit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.mc-sidebar-credit .mc-credit-label {
    display: block;
    font-size: 12px;
    opacity: 0.95;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.mc-sidebar-credit .mc-credit-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mc-sidebar-credit .mc-credit-value.active {
    color: #34d399;
}

.mc-sidebar-credit .mc-currency {
    font-size: 14px;
    margin-right: 5px;
}

.mc-sidebar-credit .mc-credit-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #e5e7eb;
}

.mc-sidebar-nav {
    padding: 20px 0;
}

.mc-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s;
    border-right: 3px solid transparent;
}

.rtl .mc-nav-item {
    border-right: none;
    border-left: 3px solid transparent;
}

.mc-nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.mc-nav-item.active {
    background: #f3f4f6;
    color: #111827;
    border-right-color: #111827;
    font-weight: 600;
}

.rtl .mc-nav-item.active {
    border-right-color: transparent;
    border-left-color: #111827;
    background: #f3f4f6;
}

.mc-nav-item .dashicons {
    margin-left: 15px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.rtl .mc-nav-item .dashicons {
    margin-left: 0;
    margin-right: 15px;
}

.mc-nav-item span:last-child {
    flex: 1;
}

.mc-info-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-info-status-badge.mc-status-empty {
    background: #fee2e2;
    color: #991b1b;
}

.mc-info-status-badge.mc-status-partial {
    background: #fef3c7;
    color: #92400e;
}

.mc-info-status-badge.mc-status-complete {
    background: #d1fae5;
    color: #065f46;
}

/* Main Content */
.mc-main-content {
    flex: 1;
    padding: 40px;
    background: #f9fafb;
    min-height: calc(100vh - 200px);
}

.mc-main-content h1 {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #1f2937;
    font-weight: 700;
}

.mc-tab-content {
    display: none;
}

.mc-tab-content.active {
    display: block;
}

/* Profile Form */
.mc-profile-form {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    max-width: 800px;
}

/* Approved Cards List */
.mc-approved-cards-list,
.mc-customers-installments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mc-approved-card-item,
.mc-customer-installments-item {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.mc-approved-card-item:hover,
.mc-customer-installments-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mc-card-header,
.mc-customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.mc-card-header h3,
.mc-customer-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #1f2937;
    font-weight: 700;
}

.mc-customer-header p {
    margin: 5px 0;
    color: #4b5563;
    font-weight: 500;
}

.mc-customer-header small {
    color: #6b7280;
    font-size: 14px;
}

.mc-installments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.mc-installments-table thead {
    background: #f8f9fa;
}

.mc-installments-table th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.mc-installments-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.mc-installments-table tbody tr:hover {
    background: #f8f9fa;
}

/* Requests List */
.mc-requests-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mc-request-item {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.mc-request-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mc-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mc-request-header strong {
    display: block;
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 5px;
}

.mc-request-date {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.mc-request-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.mc-request-details div {
    color: #4b5563;
}

.mc-request-details strong {
    color: #111827;
    font-weight: 700;
    margin-left: 8px;
}

/* Status Badges */
.mc-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.mc-status-badge.mc-status-pending {
    background: #fef3c7;
    color: #78350f;
    border: 1px solid #fbbf24;
    font-weight: 700;
}

.mc-status-badge.mc-status-pending_documents {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #60a5fa;
    font-weight: 700;
}

.mc-status-badge.mc-status-approved {
    background: #d1fae5;
    color: #064e3b;
    border: 1px solid #34d399;
    font-weight: 700;
}

.mc-status-badge.mc-status-overdue {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #f87171;
    font-weight: 700;
}

.mc-status-badge.mc-status-paid {
    background: #d1fae5;
    color: #064e3b;
    border: 1px solid #34d399;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .mc-customer-panel-with-sidebar,
    .mc-merchant-panel-with-sidebar {
        flex-direction: column;
    }
    
    .mc-sidebar {
        width: 100%;
        position: relative;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .mc-sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .mc-nav-item {
        flex-shrink: 0;
        border-right: none;
        border-bottom: 3px solid transparent;
        padding: 15px 20px;
    }
    
    .rtl .mc-nav-item {
        border-left: none;
    }
    
    .mc-nav-item.active {
        border-right: none;
        border-bottom-color: #667eea;
    }
    
    .rtl .mc-nav-item.active {
        border-left: none;
    }
    
    .mc-main-content {
        padding: 20px 15px;
    }
    
    .mc-installments-table {
        font-size: 12px;
    }
    
    .mc-installments-table th,
    .mc-installments-table td {
        padding: 10px 5px;
    }
}

