@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=Poppins:wght@300;400;500;600&display=swap');


:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --info-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --sidebar-width: 280px;
}

[dir="rtl"] .form-label,
[dir="rtl"] .form-control,
[dir="rtl"] .form-select,
[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td {
    text-align: right !important;
}

/* Optional: adjust icon spacing */
[dir="rtl"] .btn i,
[dir="rtl"] .sidebar-item i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ✅ حل لمشكلة سهم القائمة في RTL */
[dir="rtl"] select.form-select {
    background-position: left 0.75rem center;
    padding-right: 1rem !important;
    padding-left: 2.5rem !important; /* لتوسيع المسافة من اليسار */
}

/* ✅ دعم إضافي: تأكد أن النص داخل select يظهر بمحاذاة اليمين */
[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

/* ✅ الوضع الافتراضي للـ LTR يبقى كما هو */
[dir="ltr"] select.form-select {
    background-position: right 0.75rem center;
}

[dir="rtl"] .navbar .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.dropdown-rtl {
    direction: rtl;
}

.dropdown-rtl .dropdown-item {
    text-align: right;
    padding-right: 2rem;
    padding-left: 1rem;
}

.dropdown-rtl .dropdown-item i {
    margin-left: 0.5rem;
    margin-right: 0;
}
/* General Styles */
body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    background-color: #f5f7fb;
    color: #333;
}

/* Navbar Styles */
.navbar {
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Sidebar Styles */
.sidebar-wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    height: calc(100vh - 100px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
}

.sidebar-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.avatar-lg {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-item:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.sidebar-item.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-item i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
}

.sidebar-dropdown .sidebar-item {
    justify-content: space-between;
}

.sidebar-subitem {
    display: block;
    padding: 0.6rem 1rem 0.6rem 3rem;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-subitem:hover {
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}

/* Dashboard Styles */
.dashboard-container {
    padding: 1.5rem;
}

.welcome-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.welcome-content {
    flex: 1;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.welcome-text {
    color: #666;
    margin-bottom: 0;
}

.welcome-icon {
    font-size: 3rem;
    color: rgba(67, 97, 238, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    color: white;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #FFFFFF;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.action-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.action-card span {
    font-weight: 500;
}

/* RTL Support */
[dir="rtl"] .sidebar-item i {
    margin-right: 0;
    margin-left: 12px;
}

[dir="rtl"] .stat-icon {
    margin-right: 0;
    margin-left: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar-wrapper {
        height: auto;
        position: static;
        margin-bottom: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-card {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-icon {
        margin-top: 1rem;
    }
}

/* Product Css */

/* Products Page Styles */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.btn-add {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.products-list {
    display: grid;
    gap: 1.25rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-action {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-edit {
    background: rgba(72, 149, 239, 0.1);
    color: var(--info-color);
    border: none;
}

.btn-edit:hover {
    background: rgba(72, 149, 239, 0.2);
}

.btn-delete {
    background: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
    border: none;
}

.btn-delete:hover {
    background: rgba(247, 37, 133, 0.2);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination-wrapper .page-item .page-link {
    border-radius: 8px !important;
    border: none;
    color: var(--dark-color);
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Low Stock Products Specific Styles */
.page-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0.25rem 0 0;
}

.product-card.low-stock {
    border-left: 4px solid var(--warning-color);
}

.product-warning-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(248, 150, 30, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warning-color);
    font-size: 1.1rem;
}

.product-stock {
    color: var(--warning-color);
    font-weight: 500;
}

.product-stock strong {
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.empty-state p {
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}


/* Product Form Styles */
.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.product-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.1);
}

.required {
    color: var(--danger-color);
    margin-left: 0.25rem;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.is-invalid {
    border-color: var(--danger-color);
}

.input-group-text {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Bulk & Variant Rows */
.bulk-row, .variant-row {
    align-items: center;
    background-color: #f9f9f9;
    padding: 0.75rem;
    border-radius: 8px;
}

.btn-remove {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shipping Zones */
.shipping-zones {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.country-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.country-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.zones-list {
    display: grid;
    gap: 0.5rem;
}

.form-check {
    margin-bottom: 0.25rem;
}

.form-check-input {
    margin-top: 0.2rem;
}

/* Form Footer */
.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .bulk-row, .variant-row {
        gap: 0.5rem;
    }
    
    .bulk-row .col-md-4, 
    .bulk-row .col-md-3,
    .variant-row .col-md-2 {
        margin-bottom: 0.5rem;
    }
    
    .btn-remove {
        width: auto;
    }
}

/* with balance */ 
/* Withdrawal Styles */
.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.balance-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-info {
    flex: 1;
}

.balance-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.balance-amount {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

.balance-amount small {
    font-size: 1rem;
    font-weight: 500;
}

.balance-icon {
    font-size: 2.5rem;
    opacity: 0.2;
}

.btn-withdraw {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

/* Withdraw Cards */
.withdraw-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.withdraw-card.pending {
    border-left-color: var(--warning-color);
}

.withdraw-card.approved {
    border-left-color: var(--success-color);
}

.withdraw-card.rejected {
    border-left-color: var(--danger-color);
}

.withdraw-card.transferred {
    border-left-color: var(--info-color);
}

.withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.withdraw-amount {
    display: flex;
    align-items: baseline;
}

.withdraw-amount .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.withdraw-amount .currency {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    margin-left: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.withdraw-card.pending .status-badge {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.withdraw-card.approved .status-badge {
    background-color: var(--success-color);
}

.withdraw-card.rejected .status-badge {
    background-color: var(--danger-color);
}

.withdraw-card.transferred .status-badge {
    background-color: var(--info-color);
}

.withdraw-details {
    display: grid;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.empty-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Withdraw Form */
.balance-alert {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--info-color);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-content i {
    font-size: 2rem;
    color: var(--info-color);
}

.alert-content h5 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.alert-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0;
}

.withdraw-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.gateways-list {
    display: grid;
    gap: 0.75rem;
}

.gateway-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.gateway-card:hover {
    background: #e9ecef;
}

.gateway-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.gateway-name {
    font-weight: 500;
}

.gateway-fee {
    color: #6c757d;
    font-size: 0.9rem;
}

.gateway-fee strong {
    color: var(--dark-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .balance-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .balance-icon {
        display: none;
    }
    
    .withdraw-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .gateway-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* admin Cat */

/* Categories Styles */
.btn-add {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.categories-table {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.category-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.status-badge {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-badge.active {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.status-badge.inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.status-badge:hover {
    transform: translateY(-2px);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

.btn-edit {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.btn-delete {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.btn-action:hover {
    transform: translateY(-2px);
}

/* Category Form */
.category-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.current-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .categories-table {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}


/* Gatway */
/* Gateway Styles */
.gateway-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 2rem auto;
}

.gateway-form-header {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.gateway-form .form-group {
    margin-bottom: 1.5rem;
}

.gateway-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.gateway-form .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.gateway-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.gateway-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.gateway-form .btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.gateway-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
    background: var(--secondary-color);
}

.gateway-preview-image {
    width: 100px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

/* Gateway Table Styles */
.gateway-table-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.gateway-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.gateway-table thead th {
    background-color: #f8f9fa;
    color: var(--dark-color);
    font-weight: 600;
    padding: 1rem;
    text-align: justify;
    border-bottom: 2px solid #eee;
}

.gateway-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.gateway-table tbody tr:last-child td {
    border-bottom: none;
}

.gateway-table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.03);
}

.gateway-image {
    width: 60px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f9fa;
    padding: 0.25rem;
}

.gateway-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.gateway-status-active {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.gateway-status-inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.gateway-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-gateway-edit {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-gateway-delete {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-gateway-edit:hover, .btn-gateway-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-gateway-add {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gateway-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
    background: var(--secondary-color);
}

.btn-gateway-add i {
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gateway-actions {
        flex-direction: column;
    }
    
    .btn-gateway-edit, .btn-gateway-delete {
        width: 100%;
        text-align: center;
    }
}

/* Gateway Specific Styles */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.no-image {
    width: 60px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    background: #f8f9fa;
    color: #6c757d;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
}

.btn-cancel:hover {
    background: #e9ecef;
    color: var(--dark-color);
}

.form-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: block;
}

.current-image {
    margin-top: 1rem;
}

.current-image p {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
}

.alert i {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

.alert-dismissible .btn-close {
    padding: 0.5rem;
}


/* Product Form Styles */
.product-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.readonly-field {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #eee;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.document-item i {
    color: #e74c3c;
}

.zones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zone-badge {
    background-color: #e9ecef;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Products Table Styles */
.products-table-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.products-table thead th {
    background-color: #f8f9fa;
    color: var(--dark-color);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid #eee;
}

.products-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.products-table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.03);
}

.product-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.status-approved {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.status-rejected {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

.btn-edit {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-approve {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.btn-reject {
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.btn-delete {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Low Stock Products */
.low-stock-products {
    display: grid;
    gap: 1rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card.low-stock {
    border-left: 4px solid var(--warning-color);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stock-warning {
    color: var(--warning-color);
    font-weight: 500;
}

.product-seller {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}


/* Setting */
/* Settings Page Styles */
.settings-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.settings-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.settings-tabs .nav-link {
    border: none;
    padding: 0.75rem 1.25rem;
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    margin-inline-end: 0.5rem;
    display: flex;
    align-items: center;
}

.settings-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
    border-bottom: 2px solid var(--primary-color);
}

.settings-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.settings-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.current-image {
    margin-top: 1rem;
}

.current-image p {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .settings-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .settings-tabs .nav-link i {
        display: none;
    }
}

/* Zone Shipping */
/* Shipping Management Styles */
.shipping-management-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.country-card {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.country-info h3 {
    margin: 0;
    font-size: 1.25rem;
}

.country-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.country-actions {
    display: flex;
    gap: 0.5rem;
}

.zones-table-container {
    padding: 1rem;
}

.zones-table {
    width: 100%;
    border-collapse: collapse;
}

.zones-table th, .zones-table td {
    padding: 1rem;
    text-align: start;
    border-bottom: 1px solid #eee;
}

.zones-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.empty-zones {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid #eee;
}

.empty-zones i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Shipping Form Styles */
.shipping-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.shipping-form .form-group {
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .country-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .country-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .zones-table {
        display: block;
        overflow-x: auto;
    }
}

/* Withdrawals System Styles */
.withdrawals-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.withdrawal-tabs .nav-link {
    border: none;
    padding: 0.75rem 1.25rem;
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    margin-inline-end: 0.5rem;
    display: flex;
    align-items: center;
}

.withdrawal-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
    border-bottom: 2px solid var(--primary-color);
}

.withdrawal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.withdrawal-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
}

.withdrawal-card.status-pending {
    border-left-color: var(--warning-color);
}

.withdrawal-card.status-approved {
    border-left-color: var(--info-color);
}

.withdrawal-card.status-transferred {
    border-left-color: var(--success-color);
}

.withdrawal-card.status-rejected {
    border-left-color: var(--danger-color);
}

.withdrawal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info h5 {
    margin: 0;
    font-size: 1.1rem;
}

.gateway-badge {
    font-size: 0.8rem;
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    display: inline-block;
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.status-pending {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.status-badge.status-approved {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.status-badge.status-transferred {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.status-badge.status-rejected {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.withdrawal-details {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
}

.detail-row span:first-child {
    color: #6c757d;
}

.detail-row .note {
    color: #6c757d;
    font-size: 0.9rem;
}

.withdrawal-actions {
    margin-top: 1.5rem;
}

.finalized-badge {
    text-align: center;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Withdrawal Form */
.withdrawal-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.balance-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.balance-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.balance-info {
    flex: 1;
}

.balance-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.balance-amount {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .withdrawal-cards {
        grid-template-columns: 1fr;
    }
    
    .withdrawal-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .balance-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .balance-icon {
        display: none;
    }
}

/* user */ 
/* Main Admin Styles */
.admin-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #4361ee;
    color: white;
}

.btn-primary:hover {
    background-color: #3a56d4;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

/* Data Table */
.data-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.data-table-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: center;
    color: #4a5568;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #edf2f7;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4361ee;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}


.status-badge.active,
.status-badge.status-approved,
.status-badge.gateway-status-active {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.status-badge.inactive,
.status-badge.gateway-status-inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}


/* Pending */
.status-badge.pending,
.status-badge.status-pending {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

/* Transferred */
.status-badge.transferred,
.status-badge.status-transferred {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

/* Rejected */
.status-badge.rejected,
.status-badge.status-rejected {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .data-table-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ship stuts */
.shipping-statuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.status-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.status-card.default {
    border-color: #ffc107;
}

.status-meta {
    margin-bottom: 0.5rem;
}

.status-badge.default {
    display: inline-block;
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.status-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #555;
}

.btn-action:hover {
    color: #000;
}
