/* ALL YOUR EXISTING CSS STAYS EXACTLY THE SAME */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-color: #2C5AA0;
    --primary-dark: #1E3A68;
    --secondary-color: #3b82f6;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Main Content - FULL SCREEN */
.dashboard-main {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 3rem;
}

.page-header {
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.page-description {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.6;
}

/* Store Grid */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.store-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.store-banner {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.store-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--white);
    border: 4px solid var(--white);
    position: absolute;
    bottom: -30px;
    left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    overflow: hidden;
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-content {
    padding: 2rem 1.5rem 1.5rem;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.store-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.store-industry {
    color: var(--text-light);
    font-size: 0.9rem;
}

.store-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.store-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-verified {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.badge-suspended {
    background: #ef4444;
    color: white;
}

.store-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.store-detail {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.store-detail i {
    width: 16px;
    color: var(--primary-color);
}

.store-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.2);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

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

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-state-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}


/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #fef3c7;
    color: #92400e;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 1000; /* Higher than floating button */
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #d1fae5;
    color: #065f46;
}

.toast.error {
    background: #fee2e2;
    color: #991b1b;
}

.toast i {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: linear-gradient(to right, #1e40af, #3b82f6);
    color: white;
    padding: 4rem 3rem 2rem;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.footer-logo i {
    font-size: 2.2rem;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.9;
    max-width: 300px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    width: 20px;
}

.contact-item span {
    color: rgba(255, 255, 255, 0.9);
}

.footer-newsletter {
    margin-top: 2rem;
}

.newsletter-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-button {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: #1e40af;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
/* Floating Create Store Button */
.floating-create-btn {
    position: fixed;
    top: 180px; /* Positioned below the toast */
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 90; /* Lower than toast (z-index: 1000) but above content */
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.floating-create-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(44, 90, 160, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    text-decoration: none;
    color: white;
}

.floating-create-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.floating-create-btn:hover i {
    transform: scale(1.1);
}

/* Hide text on smaller screens, show only icon */
@media (max-width: 768px) {
    .floating-create-btn {
        top: 160px; /* Adjusted for mobile toast position */
        right: 20px;
        padding: 1rem;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }
    
    .btn-text {
        display: none;
    }
    
    .floating-create-btn i {
        font-size: 1.4rem;
        margin: 0;
    }
}

/* Adjust position for mobile when navbar might be different */
@media (max-width: 480px) {
    .floating-create-btn {
        top: 150px; /* Further adjusted for smaller mobile screens */
        right: 15px;
        width: 55px;
        height: 55px;
    }
}




        .copyright {
            opacity: 0.8;
            font-size: 0.9rem;
        }

        .footer-social {
            display: flex;
            gap: 1rem;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
        }

        .social-link i {
            font-size: 1.2rem;
            color: white;
        }

        .footer-legal {
            display: flex;
            gap: 1.5rem;
        }

        .footer-legal a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .footer-legal a:hover {
            color: white;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {

            
            .dashboard-main {
                padding: 2rem;
            }
        }

        @media (max-width: 1024px) {

            
            .stores-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
            
            .toast {
                right: 20px;
                max-width: 350px;
            }
        }

        @media (max-width: 900px) {
            
            .user-details {
                display: none;
            }
            
            .header-container {
                padding: 0 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .dashboard-main {
                padding: 1.5rem;
            }
            
            .page-title {
                font-size: 2rem;
            }
            
            .stores-grid {
                grid-template-columns: 1fr;
            }
            
            .footer {
                padding: 3rem 1.5rem 1.5rem;
            }
            
            .toast {
                top: 90px;
                right: 15px;
                left: 15px;
                max-width: none;
            }
        }

        @media (max-width: 640px) {
            .dashboard-main {
                padding: 1rem;
            }
            
            .page-title {
                font-size: 1.8rem;
            }
            
            .store-header {
                flex-direction: column;
                gap: 1rem;
            }
            
            .store-badges {
                align-self: flex-start;
            }
            
            .footer-content {
                gap: 2.5rem;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .footer-legal {
                flex-wrap: wrap;
                justify-content: center;
                gap: 1rem;
            }
        }

/* NEW STYLES ADDED FOR PRODUCTS BUTTON AND LIMIT */
/* Store Actions - Updated for two buttons with flex-wrap */
.store-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

/* Products Limit Badge */
.products-limit-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Responsive adjustments for store actions */
@media (max-width: 480px) {
    .store-actions {
        flex-direction: column;
    }
    
    .store-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
