/* Custom styles for The Dollar Man */

@import "buttons.css";
@import "dashboard.css";
@import "message_container.css";
@import "navigation.css";
@import "product.css";
@import "hero.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;
    --text-purple: #764ba2;

    /* ===========================
       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;
    --border-radius-12: 12px;

    /* ===========================
       Heading and text
    ============================ */

    --heading-color: #2a3036;
    --heading-color-light: #6e6e6e;
    --text-color: #374151;

    /* ===========================
       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-custom {
    background-color: #232f3f; /* Deep dark blue/black */
    color: #b0b0b0; /* Soft grey text for readability */
    font-size: 0.9rem;
}

.footer-custom h5 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.footer-custom a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-custom a:hover {
    color: var(--primary-gradient); /* Bootstrap Primary Blue */
    color: white;
    padding-left: 5px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: all .3s ease;
}

.social-icons a:hover {
    background: var(--text-purple);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

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

/* Custom spacing */
.section-padding {
    padding: 60px 0;
}
/* 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;
}



/* 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-tdm {
  display: inline-block;
  font-size: 0.75rem;
  border-radius: 8px;
  padding: 3px 6px;
  text-align: center;
  border: none;
}

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

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

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

.badge-tdm.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-blue {
    background-color: #272757;
}



.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 */
/* ================================================== */

@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-weight: 800;
    color: var(--heading-color-light);

    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 800;
}

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

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

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

.section-title {
    /* font-size: 1.5rem; */
    font-weight: 800;
    color: var(--heading-color-light);
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 800;
}

.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) {


    .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);
}


/* ================================================================= */
/* DESIGN SYSTEM OVERRIDES                                           */
/* Override Bootstrap defaults to use project CSS variables          */
/* ================================================================= */

/* --- Text colour utilities → CSS variables ------------------------ */
.text-primary   { color: var(--primary-color)  !important; }
.text-success   { color: var(--success-color)  !important; }
.text-danger    { color: var(--danger-color)   !important; }
.text-warning   { color: var(--warning-color)  !important; }
.text-muted     { color: var(--text-muted)     !important; }

/* Project-specific red text alias used in delete-modal headers */
.text-red       { color: var(--danger-color)   !important; }

/* --- Bootstrap alert colours → CSS variables ---------------------- */
.alert-success {
    background-color: #d1fae5;   /* matches --success-color tint */
    color: #065f46;
    border-color: #a7f3d0;
}
.alert-danger {
    background-color: #fee2e2;   /* matches --danger-color tint */
    color: #991b1b;
    border-color: #fca5a5;
}
.alert-warning {
    background-color: #fef3c7;   /* matches --warning-color tint */
    color: #92400e;
    border-color: #fde68a;
}
.alert-info {
    background-color: #dbeafe;   /* matches --primary-color tint */
    color: #1e40af;
    border-color: #bfdbfe;
}

/* --- Badge design-system additions -------------------------------- */

/* Extra colour variants for badge-tdm */
.badge-tdm.badge-info {
    background: #0ea5e9;      /* sky-500 – matches info tone */
    color: #fff;
}
.badge-tdm.badge-danger {
    background: var(--danger-color);
    color: #fff;
}
.badge-tdm.badge-red {
    background: var(--danger-color);
    color: #fff;
}
.badge-tdm.badge-primary {
    background: var(--primary-color);
    color: #fff;
}
.badge-tdm.badge-secondary {
    background: #6b7280;
    color: #fff;
}

/* Normalise Bootstrap badge bg-* to match badge-tdm appearance  */
/* Targets: badge.bg-primary, badge.bg-success … etc.               */
.badge {
    font-size: 0.75rem;
    border-radius: 8px;
    padding: 3px 6px;
    font-weight: 600;
    border: none;
}
.badge.bg-primary   { background-color: var(--primary-color)  !important; color: #fff; }
.badge.bg-success   { background-color: var(--success-color)  !important; color: #fff; }
.badge.bg-danger    { background-color: var(--danger-color)   !important; color: #fff; }
.badge.bg-warning   { background-color: var(--warning-color)  !important; color: #212529; }
.badge.bg-info      { background-color: #0ea5e9                !important; color: #fff; }
.badge.bg-secondary { background-color: #6b7280                !important; color: #fff; }
.badge.bg-light     { background-color: #e5e7eb                !important; color: var(--text-color); }
.badge.bg-dark      { background-color: var(--heading-color)   !important; color: #fff; }

/* Remove Bootstrap text-dark modifier that's commonly appended */
.badge.bg-light.text-dark { color: var(--text-color) !important; }

/* --- Stat-icon gradient variants ---------------------------------- */
/* Used on dashboard stat cards instead of Bootstrap bg-*           */
.stat-icon-primary  { background: var(--primary-gradient); }
.stat-icon-success  { background: var(--success-gradient); }
.stat-icon-warning  { background: var(--premium-gradient); }
.stat-icon-info     { background: var(--success-gradient-1); }

/* Normalise Bootstrap bg-* on .stat-icon elements                  */
.stat-icon.bg-primary  { background: var(--primary-gradient)    !important; }
.stat-icon.bg-success  { background: var(--success-gradient)    !important; }
.stat-icon.bg-warning  { background: var(--premium-gradient)    !important; }
.stat-icon.bg-info     { background: var(--success-gradient-1)  !important; }

/* Also covers metric-icon used in analytics page                    */
.metric-icon.bg-primary  { background: var(--primary-gradient)    !important; }
.metric-icon.bg-success  { background: var(--success-gradient)    !important; }
.metric-icon.bg-warning  { background: var(--premium-gradient)    !important; }
.metric-icon.bg-info     { background: var(--success-gradient-1)  !important; }

/* --- Progress bar fill variants ----------------------------------- */
/* Use on the inner .progress-bar div instead of Bootstrap bg-*     */
.progress-fill-primary   { background-color: var(--primary-color); }
.progress-fill-success   { background-color: var(--success-color); }
.progress-fill-warning   { background-color: var(--warning-color); }
.progress-fill-danger    { background-color: var(--danger-color); }
.progress-fill-info      { background-color: #0ea5e9; }
.progress-fill-secondary { background-color: #6b7280; }

/* Normalise Bootstrap progress-bar bg-* to use CSS variables       */
.progress-bar.bg-primary   { background-color: var(--primary-color) !important; }
.progress-bar.bg-success   { background-color: var(--success-color) !important; }
.progress-bar.bg-warning   { background-color: var(--warning-color) !important; }
.progress-bar.bg-danger    { background-color: var(--danger-color)  !important; }
.progress-bar.bg-info      { background-color: #0ea5e9              !important; }
.progress-bar.bg-secondary { background-color: #6b7280              !important; }

/* --- Timeline marker colour variants ------------------------------ */
/* Used in order history timelines */
.timeline-marker-pending    { background-color: var(--warning-color); }
.timeline-marker-processing { background-color: #0ea5e9; }
.timeline-marker-shipped    { background-color: var(--primary-color); }
.timeline-marker-delivered  { background-color: var(--success-color); }
.timeline-marker-cancelled  { background-color: var(--danger-color); }
/* Default / fallback for any unrecognised status */
.timeline-marker            { background-color: #6b7280; }

/* --- Order status badge map using badge-tdm -------------------- */
/* Used in customer-facing and backend order lists                   */
.badge-status-pending    { background: var(--warning-color);  color: #212529; }
.badge-status-processing { background: #0ea5e9;              color: #fff; }
.badge-status-shipped    { background: var(--primary-color);  color: #fff; }
.badge-status-delivered  { background: var(--success-color);  color: #fff; }
.badge-status-cancelled  { background: var(--danger-color);   color: #fff; }
.badge-status-paid       { background: var(--success-color);  color: #fff; }
.badge-status-unpaid     { background: var(--danger-color);   color: #fff; }
.badge-status-pending-payment { background: var(--warning-color); color: #212529; }

/* --- Delete confirmation zone backgrounds ------------------------- */
/* Used in tag delete confirmation and similar destroy-action pages  */
.zone-warning {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--border-radius-12);
    padding: 1rem;
}
.zone-danger {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: var(--border-radius-12);
    padding: 1rem;
}
.zone-info {
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: var(--border-radius-12);
    padding: 1rem;
}
.icon-warning { color: #92400e; }
.icon-danger  { color: #991b1b; }

/* --- Order progress step layout ----------------------------------- */
/* Horizontal status progress tracker on order detail pages         */
.order-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 1rem 0;
}
.order-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}
.order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
    flex: 1;
}
.order-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--border-color);
    color: var(--text-muted);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--border-color);
    transition: all var(--transition);
}
.order-step.active .order-step-dot,
.order-step.completed .order-step-dot {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}
.order-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}
.order-step.active .order-step-label,
.order-step.completed .order-step-label {
    color: var(--primary-color);
}

/* --- Cart / Checkout item row ------------------------------------ */
/* Replaces inline styles in cart.html                              */
.cart-item-row {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}
.cart-item-row:hover {
    background: var(--bg-light);
}
.cart-summary-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-12);
    padding: 1.5rem;
}
.cart-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}
.cart-remove-btn:hover {
    color: var(--danger-color);
    background: #fee2e2;
}