/* Custom styles for Shopix */

@import "buttons.css";
@import "dashboard.css";
@import "message_container.css";
@import "navigation.css";
@import "product.css";

:root {
    /* ===========================
       GRADIENTS
    ============================ */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient-1: linear-gradient(135deg, #30cfd0 0%, #330867 100%);

    --premium-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-gradient: linear-gradient(135deg, #656565 0%, #34495e 100%);
    --dark-gradient-1: linear-gradient(135deg, #3a3f5c 0%, #1e2336 100%);
    --light-gradient: linear-gradient(135deg, #ffffff 0%, #fff4d2 100%);

    --blue-to-aqua: linear-gradient(90deg, #4fbcff 0%, #7ee8fa 100%);

    /* ===========================
       COLOURS
    ============================ */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;

    --border-color: #e5e7eb;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;

    /* ===========================
       NAVIGATION
    ============================ */
    --nav-height: 64px;
    --nav-bg: #0066cc;
    --nav-text: #ffffff;
    --nav-hover: rgba(255, 255, 255, 0.1);

    /* ===========================
       UI / COMPONENTS
    ============================ */
    --dropdown-bg: #ffffff;
    --dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --mega-bg: #ffffff;

    /* ===========================
       MISC
    ============================ */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    font-size: 0.9rem;
}
h1, h2, h3, h4, h5, h6 {
    color: #6a6a6a;
}

/* Links */

a {
    color: #6a6a6a;
    text-decoration: none;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Cards */
.card {
    border: 1px solid #e3e3e3;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    border-radius: 16px !important;
}




.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 8px;
    color: #343a40;
    text-decoration: none;
    transition: background 0.2s,  color 0.2s;
}

.action-link:hover,
.action-link:focus {
    background: #e3e3e3;
}

/* Forms */
.form-control,
.form-select {
    padding: 0.25rem 0.6rem;
    font-size: 0.95rem;
    height: 32px;
    min-height: 32px;
    border-radius: 10px;
    line-height: 1.2;
}

input.form-control[type="text"] {
    /* Optional: even thinner for search */
    padding-top: 2px;
    padding-bottom: 2px;
}

textarea.form-control {
    height: auto;
    max-height: 350px;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffc107 !important;
}

/* Alert customization */
.alert {
    border-radius: 10px;
    border: none;
}

/* Custom spacing */
.section-padding {
    padding: 60px 0;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
}

/* Product cards */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-text {
    flex-grow: 1;
}

/* Authentication forms */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
}

.auth-card {
    border-radius: 15px;
    overflow: hidden;
}

.auth-card .card-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    text-align: center;
    padding: 20px;
}

.auth-card .card-body {
    padding: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Loading spinner */
.spinner-border-custom {
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
}

/* Custom utilities */
.text-gradient {
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ------------------ base-dashboard */


.badge-shopix {
  display: inline-block;
  font-size: 0.75rem;
  border-radius: 8px;
  padding: 3px 6px;
  text-align: center;
  border: none;
}

/* Color Variants */
.badge-shopix.badge-gray {
  background: #e3e3e3;
  color: #6a6a6a;
}

.badge-shopix.badge-green {
  background: #2ecc71;
  color: #fff;
}

.badge-shopix.badge-purple {
  background: #6f42c1;
  color: #fff;
}

.badge-shopix.badge-yellow {
  background-color: #ffe492;
  color: #212529;
}




/* 

.badge {

    background-color: #ffe492;
    color: #212529;
    padding: 0.5em 0.75em;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

.badge-gray {
    background: #e3e3e3;
    color: #6a6a6a;
    border: none;
    font-size: 0.75rem;
    border-radius: 8px;
    padding: 3px 6px;
}

.badge-green {
    background: #2ecc71;
    color: #fff;
    border: none;
    font-size: 0.75rem;
    border-radius: 8px;
    padding: 3px 6px;
    text-align: center;
}

.badge-purple {
    background: #6f42c1;
    color: #fff;
    border: none;
    font-size: 0.75rem;
    border-radius: 8px;
    padding: 3px 6px;
    text-align: center;
    
} */

.bg-red {
    background-color: rgb(227, 83, 83);
}



.bg-light {
    background-color: #e3e3e3;
}

.bg-dark {
    background-color: #6a6a6a;
}

.bg-blue-grad {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border-bottom: none;
}

/* Alerts and Messages (Simplified, replacing Bootstrap alerts) */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    position: relative;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-dismissible .close-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* Page Content Area */

/* Simplified Stat Card (Replacing Bootstrap grid and styles) */
.stat-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: stretch; /* Ensures all grid items are equal height */
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* Makes the card fill the grid cell */
}

.stat-card > * {
    flex-shrink: 0;
}


.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}


/* Timeline */

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    height: calc(100% - 20px);
    width: 2px;
    background-color: #dee2e6;
}

.timeline-marker {
    position: absolute;
    left: -16px;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-content {
    margin-left: 10px;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}


/* ================================================== */
/* FRONT END CS */
/* ================================================== */



/* Hero Section - Full Height with Animation */
.hero-modern {
    min-height: 100vh;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
    /* Gradient text */
    background: var(--light-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent; /* Required for Safari */
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

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

/* Welcome Back Card */


/* Stats Counter */
.stats-section {
    background: white;
    padding: 60px 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Products - Modern Grid */
.section-products {
    padding: 100px 0;
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Card - Ultra Modern */


.product-category {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}



/* Features Grid - Modern Icons */
.features-section {
    padding: 100px 0;
    background: white;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-1 {
    background: var(--primary-gradient);
    color: white;
}

.feature-icon-2 {
    background: var(--secondary-gradient);
    color: white;
}

.feature-icon-3 {
    background: var(--success-gradient);
    color: white;
}

.feature-icon-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.feature-icon-5 {
    background: var(--premium-gradient);
    color: white;
}

.feature-icon-6 {
    background: var(--success-gradient-1);
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 0.938rem;
    color: #6b7280;
    line-height: 1.6;
}

/* CTA Section - Stunning */
.cta-section {
    padding: 100px 0;
    background: var(--dark-gradient-1);
    color: white;
    position: relative;
    overflow: hidden;
}



.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: var(--light-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Empty State */
.empty-products {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 5rem;
    color: #d1d5db;
    margin-bottom: 24px;
}

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-image-container {
        height: 250px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Scroll Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}