:root {
    --primary-color: #a50000;
    --border-color: #e5e7eb;
    --background-grey: #f6f6f7;
    --text-dark: #1a1a1a;
    --text-muted: #637381;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, #a50000 0%, #cc0000 100%);
}

/* Global Typography */
* {
    font-family: 'Tajawal', sans-serif !important;
}

body {
    font-family: 'Tajawal', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-grey);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Form elements */
.form-label {
    font-weight: 500;
}

.btn {
    font-weight: 500;
}

.card-title {
    font-weight: 600;
}

/* Text styles */
.text-muted {
    font-weight: 300;
}

.nav-link {
    font-weight: 500;
}

/* Specific element overrides */
.btn,
.form-control,
.form-select,
.nav-link,
.dropdown-item,
.card-title,
h1, h2, h3, h4, h5, h6,
p,
span,
div {
    font-family: 'Tajawal', sans-serif !important;
}

.sidebar {
    background-color: #fff;
    border-left: 1px solid var(--border-color);
    min-height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-sticky {
    padding: 1.5rem;
    height: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    text-align: center;
}

.sidebar-header .logo {
    max-width: 120px;
    height: auto;
}

.nav-section {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.nav-link i {
    width: 20px;
    margin-left: 0.75rem;
    font-size: 1.1rem;
}

.nav-link:hover {
    background-color: var(--background-grey);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        bottom: 0;
        top: auto;
        min-height: auto;
    }

    .sidebar-sticky {
        height: auto;
        padding: 1rem;
    }

    .sidebar-header,
    .nav-section-title {
        display: none;
    }

    .nav {
        flex-direction: row;
        justify-content: space-around;
    }

    .nav-link {
        flex-direction: column;
        padding: 0.5rem;
        font-size: 0.75rem;
        text-align: center;
    }

    .nav-link i {
        margin: 0 0 0.25rem 0;
        font-size: 1.25rem;
    }

    .sidebar-footer {
        display: none;
    }
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card {
    border: none;
    background: white;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(165, 0, 0, 0.2);
}

.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table tr {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.table tr:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.table td, .table th {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(165, 0, 0, 0.1);
}

.drop-zone {
    min-height: 200px;
    border: 2px dashed var(--border-color) !important;
    border-radius: 16px;
    background: #fcfcfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    border-color: var(--primary-color) !important;
    background-color: rgba(165, 0, 0, 0.02);
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.badge-fbm {
    background-color: #e8f5ff;
    color: #0077e6;
}

.badge-seller {
    background-color: #fff4e5;
    color: #ff8b00;
}

.status-active {
    background-color: #e6f7e6;
    color: #1f7a1f;
}

.status-inactive {
    background-color: #ffe5e5;
    color: #cc0000;
}

.product-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.search-bar {
    position: relative;
}

.search-bar .form-control {
    padding-right: 40px;
    background-color: white;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filters-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .table tr {
    animation: fadeIn 0.3s ease forwards;
}

/* Storage Options */
.storage-card, .warehouse-card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.storage-option, .warehouse-option {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.storage-option:hover, .warehouse-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(165, 0, 0, 0.02);
}

.storage-option .storage-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.storage-option input:checked + label,
.warehouse-option input:checked + label {
    border-color: var(--primary-color);
    background-color: rgba(165, 0, 0, 0.05);
}

/* Variations */
.variation-group {
    background-color: var(--background-grey);
    border-radius: 12px;
    padding: 1.5rem;
}

.variation-option {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.delete-variation-btn,
.delete-option-btn {
    padding: 0;
    color: var(--danger);
}

.delete-variation-btn:hover,
.delete-option-btn:hover {
    color: darkred;
}

/* SEO Character Count */
.char-count {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Status Switch */
.form-switch .form-check-input {
    width: 3em;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Category and Brand Styles */
.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem;
}

.btn-link:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

.btn-link i {
    font-size: 1.2rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Font Awesome Icon Fixes */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free" !important;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
}

.far {
    font-family: "Font Awesome 6 Regular" !important;
}

/* Order Status Badges */
.status-new {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.status-processing {
    background-color: #fff3e0;
    color: #e65100;
}

.status-shipping {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-delivered {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.status-cancelled {
    background-color: #ffebee;
    color: #c62828;
}

/* Order Products */
.product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.order-products {
    display: flex;
    align-items: center;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.table td {
    vertical-align: middle;
    padding: 1rem;
}

/* Search Bar */
.search-bar {
    position: relative;
}

.search-bar .fas {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    padding-left: 2.5rem;
}

/* Date Inputs */
input[type="date"] {
    min-width: 140px;
}

/* FBM Product Specific Styles */
.warehouse-badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.stock-status-in {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stock-status-low {
    background-color: #fff3e0;
    color: #e65100;
}

.stock-status-out {
    background-color: #ffebee;
    color: #c62828;
}

.barcode {
    font-family: monospace;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Progress bar styles */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Hover effects */
.table tr:hover {
    background-color: rgba(0,0,0,0.01);
}

.btn-group .btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* FBM Widget Styles */
.fbm-widget {
    border: none;
    box-shadow: var(--shadow-sm);
}

.fbm-widget .badge-fbm {
    background-color: #e8f5ff;
    color: #0077e6;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.fbm-stat-item {
    padding: 1rem;
    background-color: var(--background-grey);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fbm-stat-item:hover {
    background-color: #e8f5ff;
}

.fbm-stat-item i {
    font-size: 1.5rem;
}

.fbm-stats .progress {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 6px;
}

.fbm-stats .progress-bar {
    border-radius: 10px;
    background-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fbm-stat-item {
        margin-bottom: 1rem;
    }
    
    .fbm-stats {
        margin-bottom: 2rem;
    }
}

/* Update the filters section to highlight FBM filter */
select[name="fulfillment_type"] option[value="fbm"] {
    font-weight: 500;
    color: #0077e6;
}

/* Analytics Page Styles */
.stat-card {
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.25rem;
}

.stat-trend {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.stat-trend.up {
    background-color: var(--success-color);
    color: white;
}

.stat-trend.down {
    background-color: var(--danger-color);
    color: white;
}

.chart-legend {
    font-size: 0.875rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.chart-container {
    position: relative;
    min-height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
}

/* Customer Initial Styles */
.customer-initial {
    width: 32px;
    height: 32px;
    background-color: var(--background-grey);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.recent-customers .table td {
    padding: 0.75rem 0;
    vertical-align: middle;
}

.recent-customers .table tr:last-child td {
    border-bottom: none;
}

/* Product Performance Styles */
.performance-item .progress {
    border-radius: 10px;
    background-color: var(--background-grey);
}

.performance-item .progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

.performance-item span {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Settings Page Styles */
.settings-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--background-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.form-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.settings-card .form-control,
.settings-card .form-select {
    border-color: var(--border-color);
}

.settings-card .form-control:focus,
.settings-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.settings-card .form-check {
    margin-bottom: 0.5rem;
}

.settings-card .form-check:last-child {
    margin-bottom: 0;
}

.store-logo-wrapper {
    position: relative;
    cursor: pointer;
}

.store-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.store-logo-wrapper:hover .logo-overlay {
    opacity: 1;
}

.notification-item {
    padding: 1rem;
    border-radius: 10px;
    background-color: var(--background-grey);
    margin-bottom: 1rem;
}

.notification-item:last-child {
    margin-bottom: 0;
}

.form-check-input {
    cursor: pointer;
}

/* Form Styles Update */
.form-label {
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.form-control, .form-select {
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(165, 0, 0, 0.1);
}

/* Button Updates */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Switch Updates */
.form-switch .form-check-input {
    width: 3em;
    margin-left: 0;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Multiple Select Height */
select[multiple] {
    height: 120px;
}

/* Update icon spacing */
.form-label i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.card-title i {
    margin-left: 12px;
}

.notification-item h6 i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* Alert styling */
.alert-info {
    background-color: #e8f5ff;
    border: 1px solid rgba(13, 110, 253, 0.1);
    color: #0a58ca;
}

.alert-info i {
    font-size: 1.2rem;
}

/* Adjust settings icon margin */
.settings-icon {
    margin-left: 15px;
}

/* Legal Information Styles */
.settings-icon.legal {
    background-color: #6f42c1;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid rgba(255, 193, 7, 0.1);
    color: #997404;
}

#accountType {
    font-weight: 500;
}

/* Add transition for form fields */
#individualFields, #companyFields {
    transition: all 0.3s ease;
}

/* Support Center Styles */
.help-card {
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.help-card:hover {
    transform: translateY(-2px);
}

.help-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--background-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Ticket Status Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.status-open {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background-color: #fff3e0;
    color: #e65100;
}

.status-closed {
    background-color: #eceff1;
    color: #546e7a;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Table Styles */
.table th {
    font-weight: 500;
    color: var(--text-muted);
}

.table td {
    vertical-align: middle;
}

.btn-light {
    background-color: var(--background-grey);
    border: none;
}

.btn-light:hover {
    background-color: var(--border-color);
}

/* File Upload */
.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Customer Tickets Styles */
.conversation-item {
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--background-grey);
    margin-bottom: 1rem;
}

.conversation-item.customer {
    background-color: #f8f9fa;
}

.conversation-item.seller {
    background-color: #e8f5e9;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-header .name {
    font-weight: 500;
}

.message-header .time {
    font-size: 0.875rem;
}

.ticket-details label,
.ticket-content label,
.ticket-conversation label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: block;
}

/* Modal size adjustment */
.modal-lg {
    max-width: 800px;
}

/* Dashboard Enhancements */
.stat-card {
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.chart-container {
    position: relative;
    height: 300px;
}

.low-stock-items .alert {
    margin-bottom: 0.5rem;
}

.low-stock-items .alert:last-child {
    margin-bottom: 0;
}

.rating {
    letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
}

/* Add these to your existing settings styles */
.seller-id-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.seller-id-badge h4 {
    font-family: monospace;
    letter-spacing: 1px;
}

.form-control[readonly] {
    background-color: var(--background-grey);
    opacity: 0.8;
}

/* Support Page Styles */
.support-card {
    transition: transform 0.2s ease;
}

.support-card:hover {
    transform: translateY(-5px);
}

.support-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

.accordion-button:not(.collapsed) {
    background-color: var(--background-grey);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.support-card .btn-light:hover {
    background-color: var(--background-grey);
    color: var(--primary-color);
}

/* Profile Page Styles */
.profile-header-card {
    border: none;
    background-color: var(--background-grey);
}

.profile-avatar {
    text-align: center;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-avatar .btn {
    font-size: 0.875rem;
}

.form-switch .form-check-input {
    height: 1.5rem;
    width: 3rem;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Legal Information Styles */
.upload-box {
    background-color: var(--background-grey);
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: var(--primary-color) !important;
}

.upload-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.upload-box p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Document Upload Styles */
.required-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.conditional-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--warning-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.upload-box {
    position: relative;
    background-color: var(--background-grey);
    transition: all 0.3s ease;
}

/* Reports Page Styles */
.report-card {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-5px);
}

.report-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.report-card .btn-primary {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.report-card:hover .btn-primary {
    opacity: 1;
}

/* Inventory Page Styles */
.product-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.quantity-input {
    width: 80px;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.75rem;
}

.stat-card {
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.badge {
    padding: 0.5em 0.8em;
}

/* Contract Section Styles */
.contract-preview, .contract-signature {
    background-color: var(--background-grey);
}

.signature-pad {
    border: 2px dashed var(--border-color);
    cursor: crosshair;
}

.contract-thumbnail {
    transition: all 0.3s ease;
}

.contract-thumbnail:hover {
    background-color: var(--border-color) !important;
}

.contract-preview .btn-group .btn {
    border-radius: 4px;
    margin: 0 2px;
}

.contract-signature {
    background-color: white;
}

.badge {
    padding: 8px 12px;
    font-weight: normal;
}

/* Analytics Page Styles */
.stat-trend {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.stat-trend.up {
    background-color: var(--success-color);
    color: white;
}

.stat-trend.down {
    background-color: var(--danger-color);
    color: white;
}

.chart-container {
    min-height: 300px;
}

.product-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.progress {
    background-color: var(--background-grey);
}

.metric-item {
    font-size: 0.875rem;
}

.demographics-chart,
.category-chart {
    min-height: 250px;
}

.categories-list {
    font-size: 0.875rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chart Styles */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.demographics-chart,
.category-chart {
    position: relative;
    height: 250px;
    width: 100%;
}

/* Ensure Arabic text renders properly in charts */
canvas {
    direction: ltr;
}

/* Warehouse Styles */
.warehouse-card {
    transition: transform 0.2s ease;
    border: 1px solid var(--border-color);
}

.warehouse-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.warehouse-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Country Flag */
.country-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: -2px;
}

/* Stats and Metrics */
.warehouse-stats .bg-light,
.warehouse-operations .bg-light,
.warehouse-metrics .bg-light {
    transition: all 0.2s ease;
    padding: 12px;
    border-radius: 6px;
    background-color: var(--background-grey) !important;
}

.warehouse-stats .bg-light:hover,
.warehouse-operations .bg-light:hover,
.warehouse-metrics .bg-light:hover {
    background-color: var(--border-color) !important;
    transform: translateY(-2px);
}

/* Progress Bars */
.warehouse-capacity .progress {
    background-color: var(--background-grey);
    border-radius: 4px;
}

.warehouse-capacity .progress-bar {
    transition: width 0.3s ease;
}

/* Contact Section */
.warehouse-contact .list-group-item {
    border-color: var(--border-color);
    padding: 12px 0;
}

.warehouse-contact small {
    color: var(--text-muted);
}

/* Operations Icons */
.warehouse-operations i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Metrics */
.warehouse-metrics strong {
    font-size: 1.1rem;
    display: block;
    margin-top: 4px;
}

/* Location Map */
.location-map {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.location-map img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Section Headers */
.warehouse-capacity h6,
.warehouse-operations h6,
.warehouse-contact h6,
.warehouse-metrics h6,
.warehouse-location h6 {
    color: var(--text-dark);
    font-weight: 600;
}

/* Badges */
.warehouse-card .badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .warehouse-stats .col-6,
    .warehouse-operations .col-6 {
        width: 100%;
    }
}

/* Shipping Page Styles */
.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.status-card:hover {
    transform: translateY(-2px);
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-icon.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-icon.in-transit {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.status-icon.delivered {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.status-icon.total {
    background: rgba(102, 16, 242, 0.1);
    color: #6610f2;
}

.status-info h3 {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    margin-bottom: 0.25rem;
}

.status-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Table Styles */
.product-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-info img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.table th {
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.card-header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
}

.card-title {
    font-size: 1.25rem;
    margin: 0;
    color: #2c3e50;
}

.card-body {
    padding: 1.5rem;
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
} 