/**
 * EStore Home Page Styles
 * Mobile-first responsive design
 */


/* Search Section Styles */
.search-section {
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 📱 Facebook-Style Store Card */
.store-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

 

/* Three dots menu - Top Left */
.store-card-actions-top {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.btn-actions-top {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-actions-top:hover {
    background: white;
    color: #007bff;
    transform: scale(1.1);
}

.btn-actions-top .fas {
    font-size: 12px;
}

/* Store Card Body */
.store-card-body {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Store Avatar Container with Status Dot */
.store-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.store-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid white;
}

.store-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    z-index: -1;
}

/* Status Dot next to Avatar */
.store-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
}

.store-status-dot.status-active {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.store-status-dot.status-inactive {
    background: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.store-status-dot.status-pending {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
    animation: statusPulse 2s infinite;
}

.store-status-dot.status-pending {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
    animation: statusPulse 2s infinite;
}

/* Store Info Styling */
.store-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-activity {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-address {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.store-number {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    background-color: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid #ffeeba;
}

.store-rating .fas.fa-star {
    color: #ffc107;
    font-size: 0.75rem;
    margin-left: 2px;
}

.rating-value {
    font-weight: 600;
    color: #856404;
}

.rating-count {
    color: #856404;
    font-size: 0.75rem;
}

/* Store Card Footer */
.store-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.btn-visit-store-bottom {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
}

    .btn-visit-store-bottom:hover {
        background: linear-gradient(125deg, var(--secondary) 0%, var(--primary) 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }

.btn-visit-store-bottom:active {
    transform: translateY(0);
}

.btn-visit-store-bottom.loading {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-visit-store-bottom.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.btn-visit-store-bottom.success {
    background: #28a745;
    animation: successPulse 0.5s ease;
}

/* Dropdown Menu Styling for Top Actions */
.store-card-actions-top .dropdown-menu {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
    position: absolute;
    background-color: white;
    display: none;
    top: 32px;
    left: 0;
}

.store-card-actions-top .dropdown-menu.show {
    display: block;
}

.store-card-actions-top .dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.store-card-actions-top .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    transform: translateX(-2px);
}

.store-card-actions-top .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.store-card-actions-top .dropdown-menu .dropdown-item i {
    margin-left: 8px;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #e9ecef;
}

/* Additional Store Card Enhancements */
.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
 
/* Text overflow handling */
.store-name,
.store-activity,
.store-address {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .store-card {
        margin-bottom: 12px;
    }
    
    .store-card-body {
        padding: 16px;
        gap: 12px;
    }
    
    .store-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .store-status-dot {
        width: 14px;
        height: 14px;
    }
    
    .store-name {
        font-size: 1rem;
    }
    
    .store-activity,
    .store-address {
        font-size: 0.8rem;
    }
    
    .store-meta {
        gap: 2px;
    }
    
    .store-card-footer {
        padding: 12px 16px;
    }
    
    .btn-visit-store-bottom {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-height: 38px;
    }
    
    .btn-actions-top {
        width: 26px;
        height: 26px;
    }
    
    .btn-actions-top .fas {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .store-card-body {
        padding: 12px;
        gap: 10px;
    }
    
    .store-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .store-status-dot {
        width: 12px;
        height: 12px;
    }
    
    .store-name {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }
    
    .store-activity,
    .store-address {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .store-rating,
    .store-number {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    
    .store-card-footer {
        padding: 10px 12px;
    }
    
    .btn-visit-store-bottom {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-height: 36px;
    }
}

/* Animation for status dot */
.store-status-dot.status-active {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.1); }
    100% { box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .store-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .store-name {
        color: #e2e8f0;
    }
    
    .store-activity {
        color: #a0aec0;
    }
    
    .store-address {
        color: #718096;
    }

    .search-section {
        background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
        border-color: #4a5568;
    }
}

/* Print Styles */
@media print {
    .mobile-header,
    .search-section,
    .modal {
        display: none !important;
    }
    
    .store-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 10px;
    }
    
    .stores-container {
        padding: 0;
    }
}

/* Accessibility Improvements */
.store-card:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.store-status[role="status"] {
    position: relative;
}

.store-status[role="status"]::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Custom Scrollbar */
.stores-container::-webkit-scrollbar {
    width: 6px;
}

.stores-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.stores-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.stores-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Country Flags Slider Styling */
.country-slider-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    position: relative;
    overflow: hidden;
}

.country-nav-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
}

    .country-nav-btn:hover {
        background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }

.country-nav-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.country-nav-btn i {
    font-size: 14px;
}

.country-flags-slider {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 12px;
    position: relative;
    height: 50px;
}

.country-flags-track {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    gap: 5px;
    will-change: transform;
}

.country-flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    max-width: 50px;
    width: auto;
    height: 45px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 3px;
    position: relative;
    background: transparent;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.country-flag-item:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

    .country-flag-item.selected {
        background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
        color: white;
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }

.country-flag-emoji {
    font-size: 20px;
    margin-bottom: 2px;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla", "Segoe UI Symbol", sans-serif;
    font-variant-emoji: emoji;
    text-rendering: optimizeSpeed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flag-image {
    border-radius: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.flag-emoji-fallback {
    font-size: 20px;
    line-height: 1;
}

.flag-text-fallback {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #007bff !important;
    background: rgba(0, 123, 255, 0.1) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    border: 1px solid rgba(0, 123, 255, 0.3) !important;
}

.country-flag-name {
    font-size: 8px;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50px;
}

.country-flag-item.selected .country-flag-name {
    color: white;
}

/* All Countries Button */
.country-flag-item.all-countries {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.country-flag-item.all-countries:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

.country-flag-item.all-countries .country-flag-emoji {
    font-size: 16px;
}

.country-flag-item.all-countries .country-flag-name {
    color: white;
}

/* Smooth transitions for slider */
.country-flags-track {
    will-change: transform;
}

/* Prevent text selection on flags */
.country-flag-item {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Loading state for country slider */
.country-slider-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    color: #6c757d;
}

/* Navigation buttons are now correctly oriented */

/* Focus states for accessibility */
.country-flag-item:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.country-nav-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* DevExtreme TagBox customization */
.dx-tagbox-tag {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) !important;
    color: white !important;
    border-radius: 15px !important;
    padding: 4px 10px !important;
    margin: 2px !important;
    border: none !important;
    font-weight: 500 !important;
}

.dx-tagbox-tag-remove-button {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-left: 5px !important;
    font-size: 12px !important;
}

.dx-tagbox-tag-remove-button:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
}

/* Filter labels enhancement */
.form-label {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

/* Enhanced search section */
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* DevExtreme components styling improvements */
.dx-selectbox.dx-editor-outlined,
.dx-textbox.dx-editor-outlined,
.dx-tagbox.dx-editor-outlined {
    border-radius: 8px !important;
    border: 1px solid #ced4da !important;
    transition: all 0.3s ease !important;
}

.dx-selectbox.dx-editor-outlined.dx-state-focused,
.dx-textbox.dx-editor-outlined.dx-state-focused,
.dx-tagbox.dx-editor-outlined.dx-state-focused {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.dx-selectbox .dx-dropdowneditor-input-wrapper,
.dx-tagbox .dx-dropdowneditor-input-wrapper {
    border-radius: 8px !important;
}

/* Category filter styling */
.dx-selectbox .dx-selectbox-container {
    padding: 8px 12px !important;
}

/* Dropdown list styling for countries */
.dx-list.dx-list-select {
    border-radius: 8px !important;
    border: 1px solid #e0e6ed !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.dx-list-item.dx-list-item-selected {
    background-color: rgba(0, 123, 255, 0.1) !important;
    color: #007bff !important;
}

/* Responsive filter layout */
@media (max-width: 992px) {
    .search-section .col-lg-6 {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 15px;
    }
    
    .form-label {
        font-size: 12px;
    }
    
    .country-slider-container {
        padding: 5px;
    }
    
    .country-nav-btn {
        width: 30px;
        height: 30px;
    }
    
    .country-nav-btn i {
        font-size: 10px;
    }
    
    .country-flags-slider {
        margin: 0 6px;
        height: 38px;
    }
    
    .country-flags-track {
        gap: 3px;
    }
    
    .country-flag-item {
        min-width: 35px;
        max-width: 42px;
        height: 35px;
        padding: 2px;
        border-radius: 4px;
    }
    
    .country-flag-emoji {
        font-size: 14px;
    }
    
    .flag-image {
        width: 16px !important;
        height: 12px !important;
    }
    
    .country-flag-name {
        font-size: 7px;
        max-width: 35px;
    }
}

@media (max-width: 480px) {
    .country-slider-container {
        padding: 4px;
    }
    
    .country-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .country-nav-btn i {
        font-size: 9px;
    }
    
    .country-flags-slider {
        margin: 0 4px;
        height: 35px;
    }
    
    .country-flags-track {
        gap: 2px;
    }
    
    .country-flag-item {
        min-width: 32px;
        max-width: 38px;
        height: 32px;
        padding: 1px;
        border-radius: 3px;
    }
    
    .country-flag-emoji {
        font-size: 12px;
    }
    
    .flag-image {
        width: 14px !important;
        height: 11px !important;
    }
    
    .country-flag-name {
        font-size: 6px;
        max-width: 30px;
    }
    
    /* Smaller check mark for mobile */
    .country-flag-item.selected:not(.all-countries)::after {
        width: 12px;
        height: 12px;
        font-size: 8px;
        top: -1px;
        right: -1px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .country-flag-emoji {
        font-size: 16px;
    }
    
    .flag-image {
        width: 20px !important;
        height: 15px !important;
    }
    
    .country-flag-name {
        font-size: 7px;
        max-width: 42px;
    }
}

@media (min-width: 1200px) {
    .country-flag-emoji {
        font-size: 22px;
    }
    
    .flag-image {
        width: 26px !important;
        height: 20px !important;
    }
    
    .country-flag-name {
        font-size: 9px;
        max-width: 60px;
    }
}

/* Country Flags Container with ScrollView */
.country-flags-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px;
    gap: 8px;
}

#countryFlagsScrollView {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

/* Flags row styling for horizontal layout */
.flags-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    white-space: nowrap;
    direction: ltr; /* Force LTR to maintain natural order even with RTL container */
    flex-direction: row; /* Ensure natural order from left to right */
}

/* Country Flag Item styling for ScrollView */
.country-flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    max-width: 65px;
    height: 55px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.country-flag-item:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.country-flag-item.selected {
    background: rgba(0, 123, 255, 0.15);
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.country-flag-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    direction: ltr; /* Keep content RTL for Arabic */
}

.country-flag-emoji {
    font-size: 20px;
    margin-bottom: 2px;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla", "Segoe UI Symbol", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-flag-name {
    font-size: 8px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50px;
    direction: rtl; /* Keep Arabic text RTL */
}

/* Special styling for "All Countries" item */
.country-flag-item.all-countries {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.country-flag-item.all-countries:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    border-color: #17a2b8;
}

.country-flag-item.all-countries .country-flag-emoji {
    font-size: 16px;
}

.country-flag-item.all-countries .country-flag-name {
    color: white;
    font-weight: 700;
}

/* Selected countries indicator */
#selectedCountriesIndicator {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#selectedCountriesIndicator:hover {
    background: rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

/* Enhanced selected state for multiple selection */
.country-flag-item.selected {
    background: rgba(0, 123, 255, 0.15);
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    position: relative;
}

/* Add a small check mark for selected countries */
.country-flag-item.selected:not(.all-countries)::after {
    content: "✓";
    position: absolute;
    top: -2px;
    right: -2px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for ScrollView */
@media (max-width: 768px) {
    .country-flags-container {
        padding: 6px;
        gap: 6px;
    }
    
    #selectedCountriesIndicator {
        font-size: 9px;
        padding: 2px 5px;
        border-radius: 10px;
    }
    
    .d-flex.justify-content-between .form-label {
        font-size: 11px;
    }
    
    .country-flag-item {
        min-width: 48px;
        max-width: 55px;
        height: 48px;
        padding: 3px;
    }
    
    .country-flag-emoji {
        font-size: 16px;
    }
    
    .flag-image {
        width: 20px !important;
        height: 15px !important;
    }
    
    .country-flag-name {
        font-size: 7px;
        max-width: 45px;
    }
    
    .country-nav-btn {
        width: 30px;
        height: 30px;
    }
    
    .country-nav-btn i {
        font-size: 12px;
    }
    
    /* Filter badge responsive */
    .filter-badge {
        top: 10px !important;
        right: 10px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

/* Filter badge animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Filter badge hover effects */
.filter-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
}

.filter-badge .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.filter-badge .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .country-flags-container {
        padding: 4px;
        gap: 4px;
    }
    
    #selectedCountriesIndicator {
        font-size: 8px;
        padding: 1px 4px;
        border-radius: 8px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .d-flex.justify-content-between .form-label {
        font-size: 10px;
        margin-bottom: 0;
    }
    
    .country-flag-item {
        min-width: 42px;
        max-width: 48px;
        height: 42px;
        padding: 2px;
    }
    
    .country-flag-emoji {
        font-size: 14px;
    }
    
    .flag-image {
        width: 18px !important;
        height: 13px !important;
    }
    
    .country-flag-name {
        font-size: 6px;
        max-width: 40px;
    }
    
    .country-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .country-nav-btn i {
        font-size: 10px;
    }
    
    /* Smaller check mark for mobile */
    .country-flag-item.selected:not(.all-countries)::after {
        width: 12px;
        height: 12px;
        font-size: 8px;
        top: -1px;
        right: -1px;
    }
}

/* Modern Pagination Styles */
.pagination-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f5f9 100%);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 2rem 1.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.pagination-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #764ba2 75%, 
        #667eea 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.pagination-info {
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.pagination-info span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.1em;
}

/* Modern Button Group */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.pagination-controls .btn-group {
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
    position: relative;
}

.pagination-controls .btn-group::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 300%;
    border-radius: 50px;
    z-index: -1;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pagination-controls .btn {
    border: none;
    border-radius: 40px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 3px;
    min-width: 80px;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.pagination-controls .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s ease;
}

.pagination-controls .btn:hover::before {
    left: 100%;
}

.pagination-controls .btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pagination-controls .btn:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s ease;
}

.pagination-controls .btn:disabled {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-controls .btn:disabled:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    transform: none;
    box-shadow: none;
}

/* Current Page Indicator */
.pagination-controls .btn-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: default;
    position: relative;
}

.pagination-controls .btn-light::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 35px;
    pointer-events: none;
}

.pagination-controls .btn-light:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: none;
}

/* Modern Page Size Selector */
.page-size-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
}

.page-size-selector label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    margin-bottom: 0;
}

.page-size-selector .form-select {
    width: 90px;
    border-radius: 25px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
}

.page-size-selector .form-select:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.page-size-selector .form-select:focus {
    border-color: #667eea;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    outline: none;
    transform: translateY(-1px);
}

.page-size-selector .form-select option {
    padding: 8px 12px;
    background: white;
    color: #475569;
    font-weight: 500;
}

/* Modern Responsive Design for Pagination */
@media (max-width: 768px) {
    .pagination-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .pagination-section .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .pagination-info {
        order: 1;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .pagination-controls {
        order: 2;
        margin: 0;
    }
    
    .pagination-controls .btn-group {
        padding: 4px;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
    }
    
    .pagination-controls .btn {
        padding: 10px 16px;
        min-width: 70px;
        font-size: 0.8rem;
        margin: 0 2px;
    }
    
    .page-size-selector {
        order: 3;
        margin-top: 0;
        gap: 10px;
    }
    
    .page-size-selector .form-select {
        width: 80px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .page-size-selector label {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .pagination-section {
        padding: 1rem 0.75rem;
        border-radius: 15px;
    }
    
    .pagination-controls .btn-group {
        padding: 3px;
    }
    
    .pagination-controls .btn {
        padding: 8px 12px;
        min-width: 60px;
        font-size: 0.75rem;
        margin: 0 1px;
    }
    
    /* Hide text on mobile, show only icons */
    .pagination-controls .btn .fas {
        margin: 0;
    }
    
    .pagination-controls .btn span {
        display: none;
    }
    
    .pagination-info {
        font-size: 0.85rem;
    }
    
    .page-size-selector {
        gap: 8px;
    }
    
    .page-size-selector .form-select {
        width: 70px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .page-size-selector label {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .pagination-section {
        padding: 0.75rem 0.5rem;
        margin: 1rem 0;
    }
    
    .pagination-controls .btn {
        padding: 6px 8px;
        min-width: 50px;
        font-size: 0.7rem;
    }
    
    .page-size-selector .form-select {
        width: 60px;
        font-size: 0.7rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
}

/* Enhanced Loading State for Pagination */
.pagination-section.updating {
    position: relative;
    overflow: hidden;
}

.pagination-section.updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(102, 126, 234, 0.1), 
        transparent);
    animation: loadingSlide 1.5s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pagination-section.updating .pagination-controls .btn {
    opacity: 0.7;
    pointer-events: none;
}

/* Enhanced Visual Feedback */
.pagination-controls .btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Smooth transitions for state changes */
.pagination-section {
    transition: all 0.3s ease;
}

.pagination-info,
.pagination-controls,
.page-size-selector {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Focus states for accessibility */
.pagination-controls .btn:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.2),
        0 8px 25px rgba(102, 126, 234, 0.4);
}

.pagination-controls .btn:focus:not(:hover) {
    transform: translateY(-2px);
}

/* Animation for page changes */
@keyframes pageChange {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pagination-section.page-changing {
    animation: pageChange 0.5s ease-in-out;
}

/* Tablet specific styles */
@media (min-width: 769px) and (max-width: 991px) {
    .pagination-section .d-flex {
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .pagination-info {
        order: 1;
        flex: 0 0 auto;
    }
    
    .pagination-controls {
        order: 2;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }
    
    .page-size-selector {
        order: 3;
        flex: 0 0 auto;
    }
}

/* Print styles for pagination */
@media print {
    .pagination-section {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pagination-controls .btn {
        border: 2px solid currentColor;
    }
    
    .pagination-controls .btn:hover {
        background: currentColor;
        color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pagination-section::before,
    .pagination-controls .btn-group::before,
    .pagination-controls .btn::before {
        animation: none;
    }
    
    .pagination-controls .btn {
        transition: none;
    }
    
         .pagination-controls .btn:hover {
         transform: none;
     }
 }

/* Service Info Section Styles */
.service-info-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.service-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="servicePattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(102, 126, 234, 0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23servicePattern)"/></svg>');
    opacity: 0.5;
}

.service-info-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.service-info-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 0 auto;
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.4s both;
}

.service-feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.service-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.service-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: bounceIn 1s ease-out 1s both;
}

.btn-service-primary, .btn-service-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-service-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-service-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
    background: linear-gradient(45deg, #764ba2, #667eea);
}

.btn-service-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-service-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-info-section {
        padding: 3rem 0;
    }

    .service-feature-card {
        padding: 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-icon {
        margin: 0 auto 1rem;
    }

    .service-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-service-primary, .btn-service-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .service-feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading States Management */
.pagination-section.updating,
.pagination-section.page-changing {
    pointer-events: none;
    opacity: 0.7;
}

.pagination-section.updating .pagination-info::after,
.pagination-section.page-changing .pagination-info::after {
    content: " (جار التحميل...)";
    color: #6c757d;
    font-size: 0.875em;
}

/* Loading Message Styles */
.loading-message {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-message .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Force hide loading states when not needed */
.pagination-section:not(.updating):not(.page-changing) .loading-indicator {
    display: none !important;
}

/* Smooth transitions for loading states */
.pagination-section {
    transition: opacity 0.3s ease;
}

.pagination-section.updating,
.pagination-section.page-changing {
    transition: opacity 0.1s ease;
}

/* Emergency reset for stuck states */
.force-clear-loading * {
    pointer-events: auto !important;
    opacity: 1 !important;
}

.force-clear-loading .loading-message,
.force-clear-loading .loading-indicator {
    display: none !important;
}

/* Store Actions - Updated in enhanced section below */

/* Visit Store Button */
.btn-visit-store {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
    white-space: nowrap;
}

    .btn-visit-store:hover {
        background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,123,255,0.3);
    }

.btn-visit-store:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.btn-visit-store:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

/* Ensure proper spacing between visit button and dropdown */
.store-actions .dropdown {
    margin-top: 4px;
}

/* Loading state for visit button */
.btn-visit-store.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-visit-store.loading::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success state animation */
.btn-visit-store.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Store Status - Enhanced in main section */
.store-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 80px;
    white-space: nowrap;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Three dots button */
.btn-actions {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-actions:hover {
    background-color: #f8f9fa;
    color: #495057;
    transform: scale(1.1);
}

.btn-actions:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
    position: absolute;
    background-color: white;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    transform: translateX(-2px);
}

.dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.dropdown-menu .dropdown-item i {
    margin-left: 8px;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #e9ecef;
}

/* RTL Support for Dropdown */
.dropdown-menu-start {
    left: auto !important;
    right: 0 !important;
}

/* Dropdown positioning */
.dropdown {
    position: relative;
}

.dropdown-menu {
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 2px;
}

/* Ensure dropdown appears above other content */
.dx-list-item {
    position: relative;
}

.dx-list-item .dropdown-menu {
    z-index: 1050;
}

/* Dropdown animation */
.dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown positioning */
.dropdown {
    position: relative;
}

.dropdown-menu {
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 2px;
}

/* Ensure dropdown appears above other content */
.dx-list-item {
    position: relative;
}

.dx-list-item .dropdown-menu {
    z-index: 1050;
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 160px;
        font-size: 0.8rem;
    }
    
    .dropdown-menu .dropdown-item {
        padding: 8px 12px;
    }
    
    .store-actions {
        min-width: 100px;
        gap: 6px;
    }
    
    .btn-visit-store {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .btn-actions {
        width: 28px;
        height: 28px;
        padding: 6px;
    }
    
    .store-status {
        font-size: 0.7rem;
        padding: 3px 6px;
        min-width: 70px;
    }
}

/* DevExtreme List Enhancements for Store Cards */
#storeList .dx-list-item {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

#storeList .dx-list-item-content {
    padding: 0 !important;
}

#storeList .dx-list {
    background: transparent !important;
}

/* Ensure proper spacing between cards */
.dx-list .dx-list-item:not(:last-child) {
    margin-bottom: 0 !important;
}

/* Remove default DevExtreme hover effects on list items */
#storeList .dx-list-item.dx-state-hover {
    background: transparent !important;
}

#storeList .dx-list-item.dx-state-focused {
    background: transparent !important;
}

/* Additional improvements for button interactions */
.btn-visit-store,
.btn-actions {
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Prevent text selection on buttons */
.btn-visit-store,
.btn-actions,
.dropdown-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .btn-visit-store,
    .btn-actions {
        min-height: 44px;
        min-width: 44px;
    }
    
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-visit-store {
        border: 2px solid currentColor;
    }
    
    .dropdown-menu {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-visit-store,
    .btn-actions,
    .dropdown-item {
        transition: none;
        animation: none;
    }
}

/* Print styles */
@media print {
    .btn-visit-store,
    .btn-actions,
    .dropdown {
        display: none !important;
    }
}

/* Enhanced Store Card Layout */
.store-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
 

/* Three dots menu - Top Left */
.store-card-actions-top {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.btn-actions-top {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-actions-top:hover {
    background: white;
    color: #007bff;
    transform: scale(1.1);
}

.btn-actions-top .fas {
    font-size: 12px;
}

/* Store Card Body */
.store-card-body {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Store Avatar Container with Status Dot */
.store-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.store-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid white;
}

.store-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    z-index: -1;
}

/* Status Dot next to Avatar */
.store-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
}

.store-status-dot.status-active {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.store-status-dot.status-inactive {
    background: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.store-status-dot.status-pending {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
    animation: statusPulse 2s infinite;
}

/* Store Info Styling - Override existing */
.store-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-activity {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-address {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.store-number {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    background-color: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid #ffeeba;
}

.store-rating .fas.fa-star {
    color: #ffc107;
    font-size: 0.75rem;
    margin-left: 2px;
}

.rating-value {
    font-weight: 600;
    color: #856404;
}

.rating-count {
    color: #856404;
    font-size: 0.75rem;
}

/* Store Card Footer */
.store-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.btn-visit-store-bottom, .btn-visit-store {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
}

    .btn-visit-store-bottom:hover, .btn-visit-store:hover {
        background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }

.btn-visit-store-bottom:active, .btn-visit-store:active {
    transform: translateY(0);
}

.btn-visit-store-bottom.loading, .btn-visit-store.loading {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-visit-store-bottom.loading::after, .btn-visit-store.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.btn-visit-store-bottom.success, .btn-visit-store.success {
    background: #28a745;
    animation: successPulse 0.5s ease;
}

/* Dropdown Menu Styling for Top Actions */
.store-card-actions-top .dropdown-menu {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
    position: absolute;
    background-color: white;
    display: none;
    top: 32px;
    left: 0;
}

.store-card-actions-top .dropdown-menu.show {
    display: block;
}

.store-card-actions-top .dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.store-card-actions-top .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    transform: translateX(-2px);
}

.store-card-actions-top .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.store-card-actions-top .dropdown-menu .dropdown-item i {
    margin-left: 8px;
    width: 16px;
    text-align: center;
}

/* Additional Store Card Enhancements */
.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Text overflow handling */
.store-name,
.store-activity,
.store-address {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .store-card-body {
        padding: 16px;
        gap: 12px;
    }
    
    .store-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .store-status-dot {
        width: 14px;
        height: 14px;
    }
    
    .store-name {
        font-size: 1rem;
    }
    
    .store-activity,
    .store-address {
        font-size: 0.8rem;
    }
    
    .store-meta {
        gap: 2px;
    }
    
    .store-card-footer {
        padding: 12px 16px;
    }
    
    .btn-visit-store-bottom {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-height: 38px;
    }
    
    .btn-actions-top {
        width: 26px;
        height: 26px;
    }
    
    .btn-actions-top .fas {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .store-card-body {
        padding: 12px;
        gap: 10px;
    }
    
    .store-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .store-status-dot {
        width: 12px;
        height: 12px;
    }
    
    .store-name {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }
    
    .store-activity,
    .store-address {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .store-rating,
    .store-number {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    
    .store-card-footer {
        padding: 10px 12px;
    }
    
    .btn-visit-store-bottom {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-height: 36px;
    }
}

/* Animation for status dot */
@keyframes statusPulse {
    0% { 
        box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3); 
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.1); 
    }
    100% { 
        box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3); 
    }
}

/* Existing animations - ensure they're available */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes errorPulse {
    0% { box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.1); }
    100% { box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3); }
}

/* Store Info Styling */
.store-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-activity {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-address {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.store-number {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    background-color: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid #ffeeba;
}

.store-rating .fas.fa-star {
    color: #ffc107;
    font-size: 0.75rem;
    margin-left: 2px;
}

.rating-value {
    font-weight: 600;
    color: #856404;
}

.rating-count {
    color: #856404;
    font-size: 0.75rem;
}

/* Store Card Footer */
.store-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.btn-visit-store-bottom {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
}

    .btn-visit-store-bottom:hover {
        background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }

.btn-visit-store-bottom:active {
    transform: translateY(0);
}

.btn-visit-store-bottom.loading {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-visit-store-bottom.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.btn-visit-store-bottom.success {
    background: #28a745;
    animation: successPulse 0.5s ease;
}

/* Dropdown Menu Styling for Top Actions */
.store-card-actions-top .dropdown-menu {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
    position: absolute;
    background-color: white;
    display: none;
    top: 32px;
    left: 0;
}

.store-card-actions-top .dropdown-menu.show {
    display: block;
}

.store-card-actions-top .dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.store-card-actions-top .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    transform: translateX(-2px);
}

.store-card-actions-top .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.store-card-actions-top .dropdown-menu .dropdown-item i {
    margin-left: 8px;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #e9ecef;
}

/* Additional Store Card Enhancements */
.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
 

/* Text overflow handling */
.store-name,
.store-activity,
.store-address {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .store-card {
        margin-bottom: 12px;
    }
    
    .store-card-body {
        padding: 16px;
        gap: 12px;
    }
    
    .store-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .store-status-dot {
        width: 14px;
        height: 14px;
    }
    
    .store-name {
        font-size: 1rem;
    }
    
    .store-activity,
    .store-address {
        font-size: 0.8rem;
    }
    
    .store-meta {
        gap: 2px;
    }
    
    .store-card-footer {
        padding: 12px 16px;
    }
    
    .btn-visit-store-bottom {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-height: 38px;
    }
    
    .btn-actions-top {
        width: 26px;
        height: 26px;
    }
    
    .btn-actions-top .fas {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .store-card-body {
        padding: 12px;
        gap: 10px;
    }
    
    .store-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .store-status-dot {
        width: 12px;
        height: 12px;
    }
    
    .store-name {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }
    
    .store-activity,
    .store-address {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .store-rating,
    .store-number {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    
    .store-card-footer {
        padding: 10px 12px;
    }
    
    .btn-visit-store-bottom {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-height: 36px;
    }
}

/* Animation for status dot */
.store-status-dot.status-active {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.1); }
    100% { box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Store Avatar Styling */
.store-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid white;
    position: relative;
}

    .store-avatar::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
        z-index: -1;
    }

/* Store Info Styling */
.store-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-activity {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-address {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.store-number {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    background-color: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid #ffeeba;
}

.store-rating .fas.fa-star {
    color: #ffc107;
    font-size: 0.75rem;
    margin-left: 2px;
}

.rating-value {
    font-weight: 600;
    color: #856404;
}

.rating-count {
    color: #856404;
    font-size: 0.75rem;
}

/* Store Actions Styling */
.store-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Additional Store Card Enhancements */
.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* Text overflow handling */
.store-name,
.store-activity,
.store-address {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .store-card {
        padding: 16px;
    }
    
    .store-card-header {
        gap: 12px;
    }
    
    .store-main-content {
        gap: 12px;
    }
    
    .store-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .store-name {
        font-size: 1rem;
    }
    
    .store-activity,
    .store-address {
        font-size: 0.8rem;
    }
    
    .store-meta {
        gap: 2px;
    }
    
    .store-actions {
        min-width: 100px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .store-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .store-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .store-main-content {
        align-items: flex-start;
        gap: 12px;
    }
    
    .store-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .store-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
        background-color: #f8f9fa;
        padding: 8px;
        border-radius: 6px;
        margin-top: 8px;
    }
    
    .store-meta {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .store-rating,
    .store-number {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    
    .store-name {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }
    
    .store-activity,
    .store-address {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
}

/* ======== Updated Store Card Layout - New Design ======== */

/* Override existing store-card with new layout */
.store-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 0; /* Remove padding from main card */
}
 
/* Three dots menu - Top Left */
.store-card-actions-top {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.btn-actions-top {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-actions-top:hover {
    background: white;
    color: #007bff;
    transform: scale(1.1);
}

.btn-actions-top .fas {
    font-size: 12px;
}

/* Store Card Body */
.store-card-body {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Store Avatar Container with Status Dot */
.store-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.store-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid white;
}

.store-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    z-index: -1;
}

/* Status Dot next to Avatar */
.store-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
}

.store-status-dot.status-active {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
    animation: statusPulse 2s infinite;
}

.store-status-dot.status-inactive {
    background: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.store-status-dot.status-pending {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
    animation: statusPulse 2s infinite;
}

/* TagBox specific styles */
.dx-tagbox {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.dx-tagbox.dx-state-focused {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dx-tagbox .dx-texteditor-input {
    padding: 8px 12px;
    font-size: 14px;
}

.dx-tagbox .dx-tagbox-tag {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 3px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.dx-tagbox .dx-tagbox-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dx-tagbox .dx-tagbox-tag-remove-button {
    color: white;
    margin-left: 6px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.dx-tagbox .dx-tagbox-tag-remove-button:hover {
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    opacity: 1;
}

.dx-tagbox .dx-dropdowneditor-button {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    border-radius: 0 6px 6px 0;
}

.dx-tagbox .dx-dropdowneditor-button:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
}

/* TagBox dropdown styles */
.dx-tagbox .dx-dropdownmenu-popup {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
}

.dx-tagbox .dx-list-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.dx-tagbox .dx-list-item:hover {
    background-color: #f8f9fa;
}

    .dx-tagbox .dx-list-item.dx-list-item-selected {
        background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
        color: white;
    }

        .dx-tagbox .dx-list-item.dx-list-item-selected:hover {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        }

/* Responsive TagBox */
@media (max-width: 768px) {
    .dx-tagbox .dx-tagbox-tag {
        font-size: 12px;
        padding: 4px 8px;
        margin: 2px;
    }
    
    .dx-tagbox .dx-texteditor-input {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dx-tagbox .dx-tagbox-tag {
        font-size: 11px;
        padding: 3px 6px;
        margin: 1px;
    }
    
    .dx-tagbox .dx-texteditor-input {
        padding: 5px 8px;
        font-size: 12px;
    }
}