:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --gray-color: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Modern Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    animation: fadeInUp 1s ease;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Filters Section Modern */
.filters-section {
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    background: var(--light-color);
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-form input {
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.search-form button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.75rem 1.5rem;
}

/* Modern Product Cards */
.products-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--light-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.product-body {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

.product-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-color);
}

.product-category {
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-color);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.btn-view {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50px;
    width: 100%;
    font-weight: 500;
    transition: var(--transition);
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Modern Form Styles */
.form-container {
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin: 2rem 0;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    color: white;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-body {
    padding: 2rem;
}

.form-control,
.form-select {
    border: 2px solid var(--light-color);
    border-radius: 15px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(360deg);
    color: white;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stat-box {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Product Detail Page */
.product-detail-container {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin: 2rem 0;
}

.product-gallery {
    padding: 2rem;
}

.main-image {
    border-radius: 20px;
    overflow: hidden;
    background: var(--light-color);
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
}

.thumbnail {
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.product-info {
    padding: 2rem;
}

.product-title-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Admin Dashboard Modern */
.admin-sidebar {
    background: linear-gradient(135deg, var(--dark-color), #111827);
    min-height: 100vh;
    color: white;
}

.admin-sidebar .sidebar-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .sidebar-menu {
    list-style: none;
    padding: 0;
}

.admin-sidebar .sidebar-menu li a {
    display: block;
    padding: 1rem 2rem;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    text-decoration: none;
}

.admin-sidebar .sidebar-menu li a:hover,
.admin-sidebar .sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    padding-right: 2.5rem;
}

.admin-content {
    background: var(--light-color);
    min-height: 100vh;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .filters-section {
        margin-top: -30px;
        padding: 1rem;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 25px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .product-title-large {
        font-size: 1.5rem;
    }

    .text-center {
    display: flex;
    gap: 11px;
}

.btn-primary {
    font-size: 12px;
}
.btn-secondary {
    font-size: 15px;
}
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}


/* Additional Modern Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 1000px 100%;
}

footer.bg-dark.text-white.py-4.mt-5{

    margin-top: 0rem!important;
}

body {
    background: #f8f9fa!important;
}


/* Status Badges - Modern Design */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.status-badge i {
    font-size: 0.8rem;
}

.status-badge span {
    line-height: 1;
}

.status-approved {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
}

.status-draft {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 5px rgba(107, 114, 128, 0.3);
}

.status-sold {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

/* Sold Overlay for Product Cards */
.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
    backdrop-filter: blur(3px);
}

.sold-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    transform: rotate(-10deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    animation: pulse 1.5s infinite;
}

.sold-badge i {
    font-size: 1.1rem;
}

/* Sold Large Badge for Product Page */
.sold-badge-large {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem 2rem;
    border-radius: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
    animation: slideInRight 0.5s ease;
}

.sold-badge-large i {
    font-size: 1.5rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Product Card Status Indicator */
.product-card.sold-card {
    position: relative;
    opacity: 0.95;
}

.product-card.sold-card .product-image {
    position: relative;
}

.product-card.sold-card .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px 20px 0 0;
}

/* Status Select Styling */
select[name="status"] {
    font-weight: 500;
    border-radius: 10px;
    padding: 0.3rem 0.6rem;
}

select[name="status"] option[value="approved"] {
    color: #059669;
    background: #d1fae5;
}

select[name="status"] option[value="pending"] {
    color: #d97706;
    background: #fef3c7;
}

select[name="status"] option[value="draft"] {
    color: #4b5563;
    background: #e5e7eb;
}

select[name="status"] option[value="sold"] {
    color: #dc2626;
    background: #fee2e2;
}

/* Animation for status changes */
@keyframes statusPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.status-badge {
    animation: statusPulse 0.5s ease;
}


/* Side menu scrollbar */
#sideMenu {
    overflow-y: auto;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #E7AB00 #1e1e1e;
        z-index: 99999;
}

/* Chrome, Edge, Safari */
#sideMenu::-webkit-scrollbar {
    width: 10px;
}

#sideMenu::-webkit-scrollbar-track {
    background: #1e1e1e; /* scrollbar background */
    border-radius: 10px;
}

#sideMenu::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #E7AB00,
        #ff5722
    ); /* scrollbar color */
    border-radius: 10px;
}

#sideMenu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #E7AB00,
        #ff7043
    );
}






/* Global scrollbar for all pages */

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #E7AB00 #1e1e1e;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
    height: 10px; /* horizontal scrollbar */
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #E7AB00,
        #ff5722
    );
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #E7AB00,
        #ff7043
    );
}

/* Optional: scrollbar corner */
::-webkit-scrollbar-corner {
    background: #1e1e1e;
}

a.whatsapp-float i.fab {
    transform: translate(0px, 13px);
}