/* Custom CSS for DIY Builder AI Application */

/* Root variables - LIGHT & FRESH DESIGN */
:root {
    /* Primary Colors - Soft Coral/Peach to Teal gradient */
    --primary-color: #14b8a6;
    --primary-hover: #0d9488;
    --primary-light: #ccfbf1;
    --primary-dark: #0f766e;
    --primary-gradient: linear-gradient(135deg, #5eead4 0%, #14b8a6 50%, #0d9488 100%);
    --secondary-color: #64748b;
    --secondary-hover: #475569;

    /* Status Colors - Soft & Pleasant */
    --success-color: #10b981;
    --success-hover: #059669;
    --success-light: #d1fae5;
    --danger-color: #f43f5e;
    --danger-hover: #e11d48;
    --danger-light: #ffe4e6;
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: #fef3c7;
    --info-color: #38bdf8;
    --info-hover: #0ea5e9;
    --info-light: #e0f2fe;

    /* Accent Colors - Warm & Inviting */
    --accent-gold: #fbbf24;
    --accent-coral: #fb7185;
    --accent-peach: #fdba74;
    --accent-mint: #6ee7b7;
    --accent-sky: #7dd3fc;
    --accent-lavender: #c4b5fd;

    /* Text Colors */
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;

    /* Backgrounds - Light & Airy */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #1e293b;
    --bg-cream: #fffbeb;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);

    /* Borders & Shadows - Soft */
    --border-color: #e2e8f0;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 40px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px rgba(20,184,166,0.2);
    --shadow-colored: 0 10px 30px rgba(20,184,166,0.15);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);

    /* Card Styles - Clean */
    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,0.04);
    --card-shadow: 0 2px 15px rgba(0,0,0,0.05);
    --card-hover-shadow: 0 12px 35px rgba(0,0,0,0.1);

    /* Glassmorphism */
    --glass-bg: rgba(255,255,255,0.9);
    --glass-border: rgba(255,255,255,0.6);
    --glass-blur: blur(20px);

    /* Legacy support */
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --accent-seafoam: #ccfbf1;
    --accent-sand: #fef3c7;
    --accent-sage: #d1fae5;
    --accent-coral-light: #ffe4e6;
    --accent-sky-light: #e0f2fe;
    --accent-lavender-light: #ede9fe;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Global styles - LIGHT & FRESH */
body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 50%, #ecfeff 100%);
    background-attachment: fixed;
    line-height: 1.7;
    color: var(--text-medium);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better text rendering - BOLD */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Links - Vibrant */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Hero section styling - LIGHT & GRADIENT */
.hero-section {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 25%, #2dd4bf 50%, #5eead4 75%, #99f6e4 100%);
    min-height: 65vh;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern for hero - SOFT */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
                radial-gradient(ellipse at 40% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 30%);
    pointer-events: none;
}

@keyframes heroGlow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.min-vh-75 {
    min-height: 75vh;
}

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

/* Primary background utility */
.bg-primary {
    background: var(--primary-gradient) !important;
}

/* Light gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #5eead4 0%, #14b8a6 50%, #0d9488 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.bg-gradient-subtle {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #f0f9ff 100%);
}

.bg-gradient-warm {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fdba74 100%);
}

.bg-gradient-coral {
    background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 50%, #fda4af 100%);
}

.bg-gradient-mesh {
    background:
        linear-gradient(135deg, rgba(20,184,166,0.08) 0%, transparent 50%),
        linear-gradient(225deg, rgba(251,191,36,0.06) 0%, transparent 50%),
        linear-gradient(45deg, rgba(251,113,133,0.04) 0%, transparent 50%),
        #ffffff;
}

/* Decorative floating elements */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.floating-shapes::before {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.floating-shapes::after {
    width: 200px;
    height: 200px;
    background: var(--accent-purple);
    bottom: -50px;
    left: 10%;
    animation-delay: -10s;
}

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

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Hero premium styling */
.hero-premium {
    position: relative;
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Hero gradient text */
.text-gradient-hero {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero buttons styling */
.hero-btn-primary {
    background: white !important;
    color: var(--primary-color) !important;
    border-radius: var(--border-radius) !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    transition: all 0.3s ease !important;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.hero-btn-secondary {
    border-width: 2px !important;
    font-weight: 600 !important;
    padding: 1rem 2rem !important;
    transition: all 0.3s ease !important;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Hero feature items */
.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    font-weight: 500;
}

.hero-feature-item i {
    color: var(--accent-gold);
}

/* Section labels - premium badges */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(5px);
}

.section-label-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-label-primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.section-label-success {
    background: var(--success-light);
    color: var(--success-color);
}

/* Glow effects */
.glow-primary {
    box-shadow: 0 0 30px rgba(8, 145, 178, 0.3);
}

.glow-success {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* Icon backgrounds - elegant circular */
.icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
}

.icon-bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    color: white;
}

.icon-bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    color: white;
}

.icon-bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%);
    color: var(--text-dark);
}

/* Profile picture styles - Enhanced for proper resizing and shape maintenance */
.profile-img-xs {
    width: 24px !important;
    height: 24px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    flex-shrink: 0;
}

.profile-img-sm {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    flex-shrink: 0;
}

.profile-img-md {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    flex-shrink: 0;
}

.profile-img-lg {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    flex-shrink: 0;
}

.profile-img-xl {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    flex-shrink: 0;
}

/* Profile picture shape modifiers */
.profile-img-circle {
    border-radius: 50% !important;
}

.profile-img-rounded {
    border-radius: 0.5rem !important;
}

.profile-img-square {
    border-radius: 0 !important;
}

.profile-img-oval {
    border-radius: 50%;
    aspect-ratio: 3/4;
}

/* Profile picture with borders */
.profile-img-bordered {
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-img-bordered-primary {
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

/* Ensure all profile images maintain their container shape */
img[src*="profiles/"] {
    object-fit: cover !important;
    object-position: center !important;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Force circular shape for profile images */
.profile-img-circle,
.rounded-circle,
img.profile-img-circle,
img.rounded-circle {
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Override any conflicting styles for profile images */
.profile-img-xs.profile-img-circle,
.profile-img-sm.profile-img-circle,
.profile-img-md.profile-img-circle,
.profile-img-lg.profile-img-circle,
.profile-img-xl.profile-img-circle {
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 1/1 !important;
}

/* Specific overrides to ensure circular shape works */
img[src*="profiles/"].profile-img-circle {
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 1/1 !important;
}

/* Card enhancements - LIGHT & FRESH Design */
.card {
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5eead4, #14b8a6, #fbbf24, #fb7185);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

/* Premium card variant */
.card-premium {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.card-premium::before {
    opacity: 1;
}

.card-premium:hover {
    box-shadow: 0 15px 40px rgba(20,184,166,0.12);
    transform: translateY(-6px);
}

/* Glass card variant */
.card-glass {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* Card images */
.card-img-top {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Card header - FRESH */
.card-header {
    background: linear-gradient(135deg, rgba(20,184,166,0.06) 0%, rgba(94,234,212,0.04) 100%);
    border-bottom: 1px solid rgba(20,184,166,0.1);
    font-weight: 700;
    color: var(--text-dark);
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 1.25rem 1.5rem;
}

/* Card title */
.card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

/* Card body padding */
.card-body {
    padding: 1.5rem;
}

/* Featured card - with soft glow */
.card-featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(20,184,166,0.15);
}

.card-featured:hover {
    box-shadow: 0 12px 35px rgba(20,184,166,0.2);
}

/* Card body padding */
.card-body {
    padding: 1.5rem;
}

/* Form enhancements - Elegant Inputs */
.form-control {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #FFFFFF;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
    background-color: #FFFFFF;
    outline: none;
}

.form-control:hover:not(:focus) {
    border-color: var(--secondary-color);
}

/* Large form inputs */
.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
}

.input-group-text {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 2px solid var(--border-color);
    border-right: none;
    color: #0d9488;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    padding: 0.75rem 1rem;
}

.form-select {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    background-color: #FFFFFF;
    padding: 0.75rem 1rem;
    transition: all 0.25s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

/* Form labels */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Floating labels enhancement */
.form-floating > label {
    color: var(--text-muted);
}

/* Button enhancements - BOLD MODERN Design */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Large buttons */
.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius);
}

/* Primary Button - Fresh Teal gradient */
.btn.btn-primary,
a.btn-primary,
button.btn-primary {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 50%, #0d9488 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(20, 184, 166, 0.4);
    transform: translateY(-2px);
}

/* Success Button - Fresh Mint gradient */
.btn.btn-success,
a.btn-success,
button.btn-success {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn.btn-success:hover,
a.btn-success:hover,
button.btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Warning Button - Amber gradient */
.btn.btn-warning,
a.btn-warning,
button.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%);
    border: none;
    color: var(--text-dark);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn.btn-warning:hover,
a.btn-warning:hover,
button.btn-warning:hover {
    background: linear-gradient(135deg, var(--warning-hover) 0%, var(--warning-color) 100%);
    color: var(--text-dark);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* Danger Button - Rose gradient */
.btn.btn-danger,
a.btn-danger,
button.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #f87171 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn.btn-danger:hover,
a.btn-danger:hover,
button.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-hover) 0%, var(--danger-color) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

/* Info Button - Cyan gradient */
.btn.btn-info,
a.btn-info,
button.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #67e8f9 100%);
    border: none;
    color: var(--text-dark);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn.btn-info:hover,
a.btn-info:hover,
button.btn-info:hover {
    background: linear-gradient(135deg, var(--info-hover) 0%, var(--info-color) 100%);
    color: white;
}

/* Light Button - Cream with border */
.btn-light {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-medium);
}

.btn-light:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Dark Button - Slate gradient */
.btn-dark {
    background: var(--gradient-dark);
    border: none;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-dark:hover {
    background: linear-gradient(135deg, #2D3142 0%, #3D4152 100%);
    color: white;
}

/* Secondary Button - Seafoam gradient */
.btn.btn-secondary,
a.btn-secondary,
button.btn-secondary {
    background-color: #6c757d;
    border: none;
    color: white;
}

.btn.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
    background-color: #5c636a;
    color: white;
}

/* Outline Buttons - Elegant bordered style with gradient hover */
.btn-outline-primary {
    border: 1px solid #0d6efd;
    color: #0d6efd;
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-outline-success {
    border: 1px solid #198754;
    color: #198754;
    background: transparent;
}

.btn-outline-success:hover {
    background-color: #198754;
    color: white;
}

.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Button Sizes */
.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius);
    letter-spacing: 0.02em;
}

/* Button with icon spacing */
.btn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(2px);
}

/* Button groups */
.btn-group .btn {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-group .btn:hover {
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ============================================
   CTA BUTTON HIERARCHY SYSTEM
   ============================================

   Hierarchy (strongest to weakest visual weight):
   1. .btn-cta-primary   - Main page action (1 per viewport)
   2. .btn-primary       - Standard primary actions
   3. .btn-cta-secondary - Important secondary actions
   4. .btn-ghost         - Tertiary/navigation actions
   5. .btn-ghost-muted   - Lowest priority actions

   ============================================ */

/* Primary CTA - Hero/main action button (limit 1 per viewport) */
.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    border: none;
    color: white !important;
    font-weight: 700;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.45);
    color: white !important;
}

.btn-cta-primary:hover::before {
    left: 100%;
}

.btn-cta-primary:active {
    transform: translateY(0);
}

/* Secondary CTA - Important but not primary */
.btn-cta-secondary {
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    box-shadow: none;
    transition: all 0.25s ease;
}

.btn-cta-secondary:hover {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.25);
}

.btn-cta-secondary:active {
    transform: scale(0.98);
}

/* Ghost Button - Minimal visual weight for tertiary actions */
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-medium) !important;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
    color: var(--text-dark) !important;
    box-shadow: none;
}

.btn-ghost:active {
    background: var(--accent-sky);
}

/* Ghost Muted - Even lower visual weight */
.btn-ghost-muted {
    background: transparent;
    border: none;
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    box-shadow: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-ghost-muted:hover {
    background: var(--bg-light);
    color: var(--text-medium) !important;
}

.btn-ghost-muted i {
    margin-right: 0.375rem;
}

/* Ghost with icon only */
.btn-ghost-icon {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-ghost-icon:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-ghost-icon i {
    margin: 0;
}

/* Utility: Reduce visual weight of secondary buttons in groups */
.btn-group-hierarchy .btn:not(:first-child) {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-medium) !important;
    box-shadow: none !important;
}

.btn-group-hierarchy .btn:not(:first-child):hover {
    background: var(--bg-light) !important;
    border-color: var(--text-light) !important;
    color: var(--text-dark) !important;
}

/* Action bar - Clear grouping for multiple buttons */
.action-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.action-bar-primary {
    flex-shrink: 0;
}

.action-bar-secondary {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Divider between primary and secondary actions */
.action-bar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

/* Button stack for vertical layouts */
.btn-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-stack .btn-stack-primary {
    /* First button is primary */
}

.btn-stack .btn-stack-secondary {
    /* Subsequent buttons use ghost style */
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-medium) !important;
    box-shadow: none !important;
}

.btn-stack .btn-stack-secondary:hover {
    background: var(--bg-light) !important;
    color: var(--text-dark) !important;
}

/* Link-style button - Text only, looks like a link */
.btn-link-style {
    background: none !important;
    border: none !important;
    color: var(--primary-color) !important;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    box-shadow: none !important;
    text-decoration: none;
}

.btn-link-style:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline;
    background: none !important;
}

/* Upgrade button - Consistent styling across site */
.btn.btn-upgrade,
a.btn-upgrade,
button.btn-upgrade {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e6a800 100%);
    border: none;
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.btn.btn-upgrade:hover,
a.btn-upgrade:hover,
button.btn-upgrade:hover {
    background: linear-gradient(135deg, #e6a800 0%, var(--warning-color) 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    color: #1a1a1a;
}

/* Create Project button - Consistent primary action */
.btn.btn-create-project,
a.btn-create-project,
button.btn-create-project {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 164, 0.3);
}

.btn.btn-create-project:hover,
a.btn-create-project:hover,
button.btn-create-project:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.4);
    transform: translateY(-1px);
    color: white;
}

/* Gold button - For premium/special CTAs */
.btn.btn-gold,
a.btn-gold,
button.btn-gold {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.btn.btn-gold:hover,
a.btn-gold:hover,
button.btn-gold:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    transform: translateY(-1px);
    color: white;
}

/* Dark mode adjustments for CTA hierarchy */
[data-bs-theme="dark"] .btn-ghost,
.dark-mode .btn-ghost {
    border-color: #3a3c48;
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .btn-ghost:hover,
.dark-mode .btn-ghost:hover {
    background: #2a2b36;
    border-color: #4a4c58;
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .btn-ghost-muted,
.dark-mode .btn-ghost-muted {
    color: #6c757d !important;
}

[data-bs-theme="dark"] .btn-ghost-muted:hover,
.dark-mode .btn-ghost-muted:hover {
    background: #2a2b36;
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .btn-cta-secondary,
.dark-mode .btn-cta-secondary {
    background: #2a2b36;
    border-color: var(--primary-color);
}

/* Navigation styles - LIGHT & FRESH Design */
.navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    z-index: 1030;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Main site navbar - fresh teal gradient */
.navbar-main {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
}

/* Brand icon highlight color - warm gold */
.navbar-brand-icon {
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-brand-icon {
    color: #fde047;
    text-shadow: 0 2px 15px rgba(251, 191, 36, 0.7);
    transform: rotate(-8deg) scale(1.1);
}

/* Animated gradient navbar */
.navbar-gradient-animated {
    background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 25%, #5eead4 50%, #a7f3d0 75%, #14b8a6 100%);
    background-size: 400% 400%;
    animation: navbarGradientShift 12s ease infinite;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.2);
}

@keyframes navbarGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

/* Active state styling for navigation */
.navbar-dark .nav-link.active,
.navbar-dark .nav-link:focus {
    color: #f39c12 !important;
    font-weight: 600;
}

.navbar-dark .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 3px 3px 0 0;
}

/* Hover effect for nav links */
.navbar-dark .nav-link:hover {
    color: #f39c12 !important;
    transform: translateY(-1px);
}

/* Dropdown styling improvements */
.navbar .dropdown-menu-dark {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c4a6e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
}

.navbar .dropdown-menu-dark::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #1e3a5f;
    transform: rotate(45deg);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .dropdown-item {
    padding: 0.6rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    transform: translateX(5px);
}

.navbar .dropdown-item.active {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
}

.navbar .dropdown-header {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem 0.25rem;
    font-weight: 600;
}

.navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
}

/* Active dropdown toggle */
.navbar .nav-link.dropdown-toggle.active {
    color: #f39c12 !important;
}

/* ============================================
   MOBILE NAVIGATION - Slide-out Drawer
   ============================================ */
@media (max-width: 991.98px) {
    /* Slide-out drawer container */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, #1e3a5f 0%, #152d4a 100%);
        padding: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1050;
        overflow-y: auto;
        overflow-x: hidden;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        right: 0;
    }

    /* Overlay backdrop when menu is open */
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* Mobile menu header */
    .mobile-menu-header {
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, #1e3a5f 0%, #2c4a6e 100%);
        padding: 1rem 1.25rem;
        z-index: 10;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-header .border-bottom {
        border-bottom: none !important;
    }

    .mobile-menu-close {
        opacity: 0.8;
        transition: opacity 0.2s;
    }

    .mobile-menu-close:hover {
        opacity: 1;
    }

    /* Nav items container padding */
    .navbar-collapse > .navbar-nav {
        padding: 0.5rem 1rem 2rem;
    }

    /* Section labels */
    .nav-section-label {
        padding: 1rem 0.5rem 0.5rem;
        margin-top: 0.5rem;
    }

    .nav-section-label span {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.4);
    }

    .nav-section-label:first-child {
        margin-top: 0;
        padding-top: 0.5rem;
    }

    /* Mobile nav dividers */
    .mobile-nav-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
        margin: 0.75rem 0;
    }

    /* Nav links - larger touch targets */
    .navbar-dark .nav-link {
        display: flex;
        align-items: center;
        padding: 1rem 1rem;
        border-radius: 12px;
        margin: 4px 0;
        min-height: 52px;
        font-size: 1rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.2s ease;
    }

    .navbar-dark .nav-link .nav-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.7);
        flex-shrink: 0;
    }

    .navbar-dark .nav-link .nav-arrow {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.3);
        transition: transform 0.2s;
    }

    .navbar-dark .nav-link:hover {
        background: rgba(243, 156, 18, 0.12);
        transform: translateX(4px);
    }

    .navbar-dark .nav-link:hover .nav-arrow {
        transform: translateX(3px);
        color: #f39c12;
    }

    .navbar-dark .nav-link:hover .nav-icon {
        color: #f39c12;
    }

    .navbar-dark .nav-link:active {
        background: rgba(243, 156, 18, 0.2);
        transform: scale(0.98);
    }

    /* Active state */
    .navbar-dark .nav-link.active::after {
        display: none;
    }

    .navbar-dark .nav-link.active {
        background: linear-gradient(90deg, rgba(243, 156, 18, 0.2) 0%, rgba(243, 156, 18, 0.05) 100%);
        border-left: 4px solid #f39c12;
        padding-left: calc(1rem - 4px);
    }

    .navbar-dark .nav-link.active .nav-icon {
        color: #f39c12;
    }

    /* Dropdown styling in mobile */
    .navbar .dropdown-menu-dark {
        background: rgba(0, 0, 0, 0.15);
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0.5rem 0 0.5rem 1rem;
        border-radius: 0 0 12px 12px;
    }

    .navbar .dropdown-menu-dark::before {
        display: none;
    }

    .navbar .dropdown-item {
        display: flex;
        align-items: center;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        border-radius: 10px;
        margin: 2px 0.5rem 2px 0;
        min-height: 46px;
    }

    .navbar .dropdown-item:hover {
        transform: translateX(4px);
    }

    .navbar .dropdown-item:active {
        transform: scale(0.98);
    }

    .navbar .dropdown-header {
        padding: 0.75rem 1rem 0.25rem;
        font-size: 0.65rem;
    }

    /* Dropdown toggle arrow */
    .navbar .dropdown-toggle::after {
        margin-left: auto;
        transition: transform 0.2s;
    }

    .navbar .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* User profile section in mobile */
    .navbar-nav:last-child {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 1rem;
        padding-top: 1rem;
    }

    /* Hide desktop-only elements */
    .d-lg-none {
        display: inline-flex !important;
    }

    /* Mobile hamburger button animation */
    .mobile-menu-toggle {
        border: none;
        padding: 0.5rem;
        transition: transform 0.2s;
    }

    .mobile-menu-toggle:focus {
        box-shadow: none;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.9);
    }

    .mobile-menu-toggle[aria-expanded="true"] .navbar-toggler-icon {
        background-image: none;
    }

    .mobile-menu-toggle[aria-expanded="true"] .navbar-toggler-icon::before {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: white;
        font-size: 1.25rem;
    }
}

/* Alert styles - Premium Design with gradient accents */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-dismissible .btn-close {
    padding: 1rem 1.25rem;
}

.alert-primary {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(94, 234, 212, 0.05) 100%);
    color: #0f766e;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.alert-primary::before {
    background: linear-gradient(180deg, #14b8a6 0%, #5eead4 100%);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(110, 231, 183, 0.04) 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.alert-success::before {
    background: linear-gradient(180deg, #10b981 0%, #6ee7b7 100%);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-danger::before {
    background: linear-gradient(180deg, var(--danger-color) 0%, #f87171 100%);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-warning::before {
    background: linear-gradient(180deg, var(--warning-color) 0%, #fbbf24 100%);
}

.alert-info {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(125, 211, 252, 0.05) 100%);
    color: #0369a1;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.alert-info::before {
    background: linear-gradient(180deg, var(--info-color) 0%, #67e8f9 100%);
}

/* Timeline styles for dashboard */
.timeline {
    position: relative;
    padding-left: 30px;
}

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

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

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

.timeline-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: var(--secondary-color);
}

/* Password strength indicators */
.password-requirements small {
    display: block;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.password-requirements .text-success {
    color: var(--success-color) !important;
}

.password-requirements .text-danger {
    color: var(--danger-color) !important;
}

/* Loading and Disabled states */
.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.btn:disabled:hover,
.btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Loading spinner */
.btn .spinner-border,
.btn .spinner-grow {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Button focus states for accessibility */
.btn:focus,
.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-success:focus,
.btn-success:focus-visible {
    outline-color: var(--success-color);
}

.btn-danger:focus,
.btn-danger:focus-visible {
    outline-color: var(--danger-color);
}

.btn-warning:focus,
.btn-warning:focus-visible {
    outline-color: var(--warning-color);
}

/* Button loading state animation */
@keyframes button-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: button-spinner 0.6s linear infinite;
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Feature icons */
.feature-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stat animations */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Badge enhancements - Premium Design */
.badge {
    font-weight: 600;
    padding: 0.5em 0.9em;
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.badge-lg {
    padding: 0.65em 1.1em;
    font-size: 0.85rem;
}

/* Gradient badges */
.badge-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    color: white;
}

.badge-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    color: white;
}

.badge-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%);
    color: var(--text-dark);
}

/* Soft badges */
.badge-soft-primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.badge-soft-success {
    background: var(--success-light);
    color: var(--success-color);
}

.badge-soft-warning {
    background: var(--warning-light);
    color: var(--warning-hover);
}

.badge-soft-danger {
    background: var(--danger-light);
    color: var(--danger-color);
}

/* Profile picture container */
.profile-picture-container {
    position: relative;
    display: inline-block;
}

.profile-picture-container .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

    .min-vh-75 {
        min-height: 60vh;
    }

    .profile-img-xl {
        width: 100px;
        height: 100px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -16px;
    }

    .timeline-item:not(:last-child):before {
        left: -12px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.25rem;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }

    .profile-img-xl {
        width: 80px;
        height: 80px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-white: #1A1B22;
        --bg-light: #22232C;
        --bg-gray: #2A2C36;
        --bg-dark: #12131A;
        --bg-cream: #1A1B22;
        --text-dark: #F0F1F5;
        --text-medium: #E0E2E8;
        --text-muted: #9A9EAE;
        --text-light: #7A7E8E;
        --border-color: #3A3C48;
        --card-bg: #22232C;
        --card-border: #3A3C48;
        --gradient-light: linear-gradient(135deg, #1A1B22 0%, #22232C 100%);
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    /* Base elements */
    body {
        background: var(--bg-white) !important;
        color: var(--text-medium);
    }

    /* Override Bootstrap text utilities */
    .text-dark {
        color: var(--text-dark) !important;
    }

    .text-muted {
        color: var(--text-muted) !important;
    }

    .text-body {
        color: var(--text-medium) !important;
    }

    .text-secondary {
        color: var(--text-muted) !important;
    }

    /* Override Bootstrap background utilities */
    .bg-white {
        background-color: var(--bg-white) !important;
    }

    .bg-light {
        background-color: var(--bg-light) !important;
    }

    .bg-body {
        background-color: var(--bg-white) !important;
    }

    /* Navbar */
    .navbar {
        background-color: var(--bg-dark) !important;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-light .navbar-nav .nav-link,
    .navbar .nav-link {
        color: var(--text-medium) !important;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar .nav-link:hover {
        color: var(--primary-color) !important;
    }

    .navbar-light .navbar-brand,
    .navbar .navbar-brand {
        color: var(--text-dark) !important;
    }

    .navbar-toggler {
        border-color: var(--border-color) !important;
    }

    .navbar-toggler-icon {
        filter: invert(1);
    }

    /* Cards */
    .card {
        background-color: var(--card-bg) !important;
        color: var(--text-medium);
        border-color: var(--border-color) !important;
    }

    .card-header {
        background-color: var(--bg-gray) !important;
        border-color: var(--border-color) !important;
        color: var(--text-dark);
    }

    .card-footer {
        background-color: var(--bg-gray) !important;
        border-color: var(--border-color) !important;
    }

    .card-title {
        color: var(--text-dark);
    }

    .card-text {
        color: var(--text-medium);
    }

    /* Forms */
    .form-control {
        background-color: var(--bg-gray) !important;
        border-color: var(--border-color) !important;
        color: var(--text-medium) !important;
    }

    .form-control:focus {
        background-color: var(--bg-gray) !important;
        border-color: var(--primary-color) !important;
        color: var(--text-medium) !important;
        box-shadow: 0 0 0 0.25rem rgba(124, 181, 227, 0.25);
    }

    .form-control::placeholder {
        color: var(--text-muted) !important;
    }

    .input-group-text {
        background-color: var(--bg-gray) !important;
        border-color: var(--border-color) !important;
        color: var(--text-muted) !important;
    }

    .form-select {
        background-color: var(--bg-gray) !important;
        border-color: var(--border-color) !important;
        color: var(--text-medium) !important;
    }

    .form-label {
        color: var(--text-dark);
    }

    .form-text {
        color: var(--text-muted) !important;
    }

    .form-check-label {
        color: var(--text-medium);
    }

    /* Dropdowns */
    .dropdown-menu {
        background-color: var(--card-bg) !important;
        border-color: var(--border-color) !important;
    }

    .dropdown-item {
        color: var(--text-medium) !important;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: var(--bg-gray) !important;
        color: var(--text-dark) !important;
    }

    .dropdown-divider {
        border-color: var(--border-color);
    }

    /* Tables */
    .table {
        color: var(--text-medium);
        border-color: var(--border-color);
    }

    .table > thead {
        color: var(--text-dark);
    }

    .table > :not(caption) > * > * {
        background-color: transparent;
        border-color: var(--border-color);
    }

    .table-striped > tbody > tr:nth-of-type(odd) > * {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .table-hover > tbody > tr:hover > * {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .table-light {
        background-color: var(--bg-gray) !important;
    }

    /* Alerts */
    .alert {
        border-color: var(--border-color);
    }

    .alert-info {
        background-color: rgba(135, 197, 232, 0.15);
        color: #87C5E8;
        border-color: rgba(135, 197, 232, 0.3);
    }

    .alert-success {
        background-color: rgba(123, 200, 155, 0.15);
        color: #7BC89B;
        border-color: rgba(123, 200, 155, 0.3);
    }

    .alert-warning {
        background-color: rgba(240, 201, 135, 0.15);
        color: #F0C987;
        border-color: rgba(240, 201, 135, 0.3);
    }

    .alert-danger {
        background-color: rgba(232, 160, 160, 0.15);
        color: #E8A0A0;
        border-color: rgba(232, 160, 160, 0.3);
    }

    .alert-light {
        background-color: var(--bg-gray);
        color: var(--text-medium);
        border-color: var(--border-color);
    }

    .alert-secondary {
        background-color: var(--bg-gray);
        color: var(--text-medium);
        border-color: var(--border-color);
    }

    /* Modals */
    .modal-content {
        background-color: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-medium);
    }

    .modal-header {
        border-color: var(--border-color);
        color: var(--text-dark);
    }

    .modal-footer {
        border-color: var(--border-color);
    }

    .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

    /* List groups */
    .list-group-item {
        background-color: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-medium);
    }

    .list-group-item-action:hover,
    .list-group-item-action:focus {
        background-color: var(--bg-gray);
        color: var(--text-dark);
    }

    .list-group-item.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    /* Badges */
    .badge.bg-light {
        background-color: var(--bg-gray) !important;
        color: var(--text-medium) !important;
    }

    .badge.bg-secondary {
        background-color: var(--bg-gray) !important;
    }

    /* Buttons */
    .btn-light {
        background-color: var(--bg-gray) !important;
        border-color: var(--border-color) !important;
        color: var(--text-dark) !important;
    }

    .btn-light:hover {
        background-color: var(--bg-light) !important;
        border-color: var(--border-color) !important;
        color: var(--text-dark) !important;
    }

    .btn-outline-light {
        border-color: var(--text-muted) !important;
        color: var(--text-muted) !important;
    }

    .btn-outline-light:hover {
        background-color: var(--bg-gray) !important;
        color: var(--text-dark) !important;
    }

    .btn-outline-dark {
        border-color: var(--text-medium) !important;
        color: var(--text-medium) !important;
    }

    .btn-outline-dark:hover {
        background-color: var(--text-medium) !important;
        color: var(--bg-dark) !important;
    }

    .btn-outline-secondary {
        border-color: var(--text-muted) !important;
        color: var(--text-muted) !important;
    }

    .btn-outline-secondary:hover {
        background-color: var(--bg-gray) !important;
        color: var(--text-dark) !important;
        border-color: var(--bg-gray) !important;
    }

    /* Breadcrumbs */
    .breadcrumb {
        background-color: var(--bg-gray);
    }

    .breadcrumb-item + .breadcrumb-item::before {
        color: var(--text-muted);
    }

    .breadcrumb-item.active {
        color: var(--text-muted);
    }

    .breadcrumb-item a {
        color: var(--primary-color);
    }

    /* Pagination */
    .page-link {
        background-color: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-medium);
    }

    .page-link:hover {
        background-color: var(--bg-gray);
        border-color: var(--border-color);
        color: var(--text-dark);
    }

    .page-item.active .page-link {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .page-item.disabled .page-link {
        background-color: var(--bg-gray);
        border-color: var(--border-color);
        color: var(--text-muted);
    }

    /* Accordion */
    .accordion-item {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }

    .accordion-button {
        background-color: var(--card-bg);
        color: var(--text-dark);
    }

    .accordion-button:not(.collapsed) {
        background-color: var(--bg-gray);
        color: var(--primary-color);
    }

    .accordion-button::after {
        filter: invert(1);
    }

    /* Progress bars */
    .progress {
        background-color: var(--bg-gray);
    }

    /* Tabs */
    .nav-tabs {
        border-color: var(--border-color);
    }

    .nav-tabs .nav-link {
        color: var(--text-medium);
    }

    .nav-tabs .nav-link:hover {
        border-color: var(--border-color);
    }

    .nav-tabs .nav-link.active {
        background-color: var(--card-bg);
        border-color: var(--border-color) var(--border-color) var(--card-bg);
        color: var(--text-dark);
    }

    .nav-pills .nav-link {
        color: var(--text-medium);
    }

    .nav-pills .nav-link.active {
        background-color: var(--primary-color);
    }

    /* Footer */
    footer {
        background-color: var(--bg-dark) !important;
        border-top: 1px solid var(--border-color);
    }

    /* Hero section override */
    .hero-section {
        background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 50%, #1e4d5f 100%) !important;
        background-size: 400% 400%;
    }

    /* Links */
    a:not(.btn):not(.nav-link):not(.dropdown-item) {
        color: var(--primary-color);
    }

    a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
        color: var(--primary-hover);
    }

    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        color: var(--text-dark);
    }

    /* Lead text */
    .lead {
        color: var(--text-medium);
    }

    /* Small text */
    small, .small {
        color: var(--text-muted);
    }

    /* Border utilities */
    .border {
        border-color: var(--border-color) !important;
    }

    .border-top, .border-bottom, .border-start, .border-end {
        border-color: var(--border-color) !important;
    }

    /* Shadow utilities override */
    .shadow-sm {
        box-shadow: var(--shadow-sm) !important;
    }

    .shadow {
        box-shadow: var(--shadow-md) !important;
    }

    .shadow-lg {
        box-shadow: var(--shadow-lg) !important;
    }

    /* Scrollbar styling for dark mode */
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-dark);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--bg-gray);
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }

    /* Code blocks */
    code {
        background-color: var(--bg-gray);
        color: #E8A0A0;
    }

    pre {
        background-color: var(--bg-dark);
        border-color: var(--border-color);
        color: var(--text-medium);
    }

    /* HR */
    hr {
        border-color: var(--border-color);
        opacity: 0.5;
    }

    /* Tooltip */
    .tooltip-inner {
        background-color: var(--bg-dark);
        color: var(--text-medium);
    }

    /* Popover */
    .popover {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }

    .popover-header {
        background-color: var(--bg-gray);
        border-color: var(--border-color);
        color: var(--text-dark);
    }

    .popover-body {
        color: var(--text-medium);
    }

    /* Offcanvas */
    .offcanvas {
        background-color: var(--card-bg);
        color: var(--text-medium);
    }

    .offcanvas-header {
        border-color: var(--border-color);
    }

    /* Toast */
    .toast {
        background-color: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-medium);
    }

    .toast-header {
        background-color: var(--bg-gray);
        border-color: var(--border-color);
        color: var(--text-dark);
    }

    /* Spinner */
    .spinner-border, .spinner-grow {
        color: var(--primary-color);
    }

    /* Card with bg-primary should keep its style */
    .card.bg-primary {
        background: var(--gradient-primary) !important;
    }

    /* Ensure white text stays white on colored backgrounds */
    .bg-primary, .bg-success, .bg-danger, .bg-warning, .bg-info, .bg-dark {
        color: white;
    }

    .bg-primary .text-white-50 {
        color: rgba(255, 255, 255, 0.5) !important;
    }

    /* ============================================
       SECTION BACKGROUNDS - Override inline styles
       ============================================ */

    /* Override any section with white/light background */
    section {
        background-color: var(--bg-white) !important;
    }

    section[style*="background: white"],
    section[style*="background:white"],
    section[style*="background: #F"],
    section[style*="background:#F"],
    section[style*="background: var(--bg-light)"],
    div[style*="background: white"],
    div[style*="background:white"] {
        background: var(--bg-white) !important;
    }

    /* How It Works / Features sections */
    .how-it-works-section,
    .features-section {
        background: var(--bg-white) !important;
    }

    /* Categories section */
    .categories-section {
        background: var(--bg-white) !important;
    }

    /* Category cards */
    .category-card {
        background: var(--card-bg) !important;
        border-color: var(--border-color) !important;
    }

    .category-card h5 {
        color: var(--text-dark) !important;
    }

    .category-card p,
    .category-card .text-muted {
        color: var(--text-muted) !important;
    }

    .category-icon {
        background: var(--bg-gray) !important;
    }

    /* Step cards */
    .step-card {
        background: var(--card-bg) !important;
        border-color: var(--border-color) !important;
    }

    .step-card h4 {
        color: var(--text-dark) !important;
    }

    .step-card p {
        color: var(--text-muted) !important;
    }

    .step-tag {
        background: var(--bg-gray) !important;
        color: var(--text-muted) !important;
    }

    /* Testimonials section */
    .testimonials-section {
        background: var(--bg-light) !important;
    }

    .testimonial-card,
    .testimonial-card.card {
        background: var(--card-bg) !important;
    }

    .testimonial-card .card-title,
    .testimonial-card h5 {
        color: var(--text-dark) !important;
    }

    .testimonial-card .card-text {
        color: var(--text-muted) !important;
    }

    .testimonial-card .border-top {
        border-color: var(--border-color) !important;
    }

    .testimonial-card strong {
        color: var(--text-dark) !important;
    }

    /* Wave divider SVG fills */
    .wave-divider svg path {
        fill: var(--bg-white) !important;
    }

    /* Hero section */
    .hero-section {
        background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 25%, #1e4d5f 50%, #2d5a4f 75%, #1e3a5f 100%) !important;
    }

    /* Section labels */
    .section-label-primary {
        color: var(--primary-color) !important;
    }

    .section-label-info {
        color: var(--info-color) !important;
    }

    /* Step tags */
    .step-tag {
        color: var(--text-muted) !important;
    }

    .step-tag i {
        color: var(--primary-color) !important;
    }

    /* Tool cards in hero */
    .tool-card-main {
        background: var(--card-bg) !important;
    }

    .tool-card-inner-main h4 {
        color: var(--text-dark) !important;
    }

    .tool-card-inner-main p {
        color: var(--text-muted) !important;
    }

    /* Display headings */
    .display-1, .display-2, .display-3,
    .display-4, .display-5, .display-6 {
        color: var(--text-dark) !important;
    }

    /* Override inline color styles on headings */
    h1[style*="color"], h2[style*="color"],
    h3[style*="color"], h4[style*="color"],
    h5[style*="color"], h6[style*="color"] {
        color: var(--text-dark) !important;
    }

    /* Override inline color on paragraphs with muted colors */
    p[style*="color: #5"], p[style*="color: #6"],
    p[style*="color: #7"], p[style*="color: #8"],
    p[style*="color: #9"], p[style*="color:#5"],
    p[style*="color:#6"], p[style*="color:#7"] {
        color: var(--text-muted) !important;
    }

    /* Lead paragraphs */
    .lead {
        color: var(--text-medium) !important;
    }

    .lead.text-muted {
        color: var(--text-muted) !important;
    }

    /* Small text */
    small, .small, .text-muted {
        color: var(--text-muted) !important;
    }

    /* Inline style overrides for strong/bold text */
    strong[style*="color"] {
        color: var(--text-dark) !important;
    }

    /* Container/wrapper backgrounds */
    .container[style*="background"],
    .row[style*="background"] {
        background: transparent !important;
    }

    /* Common CTA sections with light backgrounds */
    section[style*="#F0F9FF"],
    section[style*="#FFFBEB"],
    section[style*="#FEF3C7"],
    section[style*="#EBF4FB"],
    section[style*="#E0F5F5"] {
        background: var(--bg-light) !important;
    }

    /* Stats section keeps its gradient but darker */
    .stats-section {
        background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 50%, #1e4d5f 100%) !important;
    }

    /* Badges with light backgrounds */
    .badge[style*="background: var(--primary-light)"],
    .badge[style*="background: var(--accent-sky)"],
    .badge[style*="background: #E"],
    .badge[style*="background: #F"] {
        background: rgba(124, 181, 227, 0.2) !important;
        color: var(--primary-color) !important;
    }

    /* Project cards and similar */
    .project-card {
        background: var(--card-bg) !important;
        border-color: var(--border-color) !important;
    }

    /* Stat cards */
    .stat-card {
        background: var(--card-bg) !important;
        border-color: var(--border-color) !important;
    }

    /* Feature cards */
    .feature-card {
        background: var(--card-bg) !important;
        border-color: var(--border-color) !important;
    }

    /* Pricing cards */
    .pricing-card {
        background: var(--card-bg) !important;
        border-color: var(--border-color) !important;
    }

    /* Icon backgrounds */
    [class*="-icon"][style*="background"] {
        background: var(--bg-gray) !important;
    }

    /* Gradient section backgrounds - convert to dark variants */
    section[style*="linear-gradient"][style*="#F0F9FF"],
    section[style*="linear-gradient"][style*="#E0F2FE"],
    section[style*="linear-gradient"][style*="#EBF4FB"],
    section[style*="linear-gradient"][style*="#E0F5F5"] {
        background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%) !important;
    }

    /* Alert info boxes with light gradients */
    .alert[style*="linear-gradient"][style*="#e0f2fe"],
    .alert[style*="linear-gradient"][style*="#f0f9ff"] {
        background: linear-gradient(135deg, rgba(124, 181, 227, 0.15) 0%, rgba(135, 197, 232, 0.1) 100%) !important;
        color: var(--text-medium) !important;
    }

    /* Footer keeps dark but consistent */
    footer[style*="background"] {
        background: linear-gradient(135deg, #12131A 0%, #1A1B22 100%) !important;
    }

    /* Navbar - darker gradient */
    .navbar[style*="background"] {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e4d5f 100%) !important;
    }

    /* Ensure all section text is readable */
    section h1, section h2, section h3,
    section h4, section h5, section h6 {
        color: var(--text-dark) !important;
    }

    section p {
        color: var(--text-medium) !important;
    }

    section .text-muted {
        color: var(--text-muted) !important;
    }

    /* ============================================
       SECTION TIPS - Blue theme for dark mode
       ============================================ */
    .section-tip-container {
        background: rgba(59, 130, 246, 0.12) !important;
        border-bottom-color: rgba(59, 130, 246, 0.25) !important;
    }

    .section-tip {
        background: rgba(59, 130, 246, 0.18) !important;
        border-left-color: #3B82F6 !important;
    }

    .section-tip i {
        color: #60A5FA !important;
    }

    .section-tip span {
        color: #BFDBFE !important;
    }

    /* Contextual tip card - Blue theme */
    #contextual-tip-card,
    .contextual-tip-card {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.2) 100%) !important;
        border-color: rgba(59, 130, 246, 0.4) !important;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
    }

    .contextual-tip-card::before {
        background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%) !important;
    }

    .contextual-tip-card .tip-icon-wrapper {
        background: rgba(59, 130, 246, 0.25) !important;
    }

    .contextual-tip-card .tip-icon-wrapper i {
        color: #60A5FA !important;
    }

    .contextual-tip-card .tip-label {
        color: #93C5FD !important;
    }

    .contextual-tip-card .tip-text,
    #ctx-tip-text {
        color: #BFDBFE !important;
    }

    .contextual-tip-card .tip-text.loading {
        color: #60A5FA !important;
    }

    .contextual-tip-card .tip-refresh-btn {
        border-color: #3B82F6 !important;
        color: #60A5FA !important;
    }

    .contextual-tip-card .tip-refresh-btn:hover {
        background: #3B82F6 !important;
        color: white !important;
    }

    #ctx-tip-icon {
        color: #60A5FA !important;
    }

    /* Field tip popover */
    .field-tip-popover {
        background: var(--card-bg) !important;
        border-color: var(--border-color) !important;
    }

    .field-tip-popover .popover-body {
        color: var(--text-medium) !important;
    }

    /* ============================================
       TABLES - Better visibility in dark mode
       ============================================ */
    .table {
        --bs-table-bg: transparent !important;
        --bs-table-color: var(--text-medium) !important;
        color: var(--text-medium) !important;
    }

    .table thead {
        color: var(--text-dark) !important;
    }

    .table thead th {
        background-color: var(--bg-gray) !important;
        color: var(--text-dark) !important;
        border-color: var(--border-color) !important;
    }

    .table tbody td {
        color: var(--text-medium) !important;
        border-color: var(--border-color) !important;
    }

    .table tbody tr {
        background-color: transparent !important;
    }

    .table-hover tbody tr:hover {
        background-color: var(--bg-gray) !important;
        --bs-table-hover-bg: var(--bg-gray) !important;
    }

    .table-active,
    .table tfoot tr.table-active {
        background-color: var(--bg-gray) !important;
        --bs-table-active-bg: var(--bg-gray) !important;
    }

    .table tfoot td {
        color: var(--text-dark) !important;
        border-color: var(--border-color) !important;
    }

    /* Table responsive wrapper */
    .table-responsive {
        background-color: transparent !important;
    }

    /* Card body containing tables */
    .card .card-body .table {
        margin-bottom: 0;
    }

    /* Labels in tables */
    .form-check-label {
        color: var(--text-medium) !important;
    }

    .form-check-label.text-success {
        color: var(--success-color) !important;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.12);
}

.border-custom {
    border: 2px solid var(--primary-color);
}

/* Dark gradient background - for sidebars and feature sections */
.bg-dark-gradient {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f172a 50%, var(--bg-dark) 100%);
}

/* Icon container - Gold gradient circle with glow */
.icon-circle-gold {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    position: relative;
    overflow: hidden;
}

.icon-circle-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
}

/* Icon container variants */
.icon-circle-primary {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.4);
}

.icon-circle-success {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.icon-circle-gold.sm {
    width: 50px;
    height: 50px;
}

.icon-circle-gold.lg {
    width: 100px;
    height: 100px;
}

/* Icon container - Warning gradient square */
.icon-square-warning {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFC107, #FF6B6B);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon container - Primary gradient circle */
.icon-circle-primary {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Submit button - Dark gradient with pill shape */
.btn-submit-dark {
    background: linear-gradient(135deg, #1E3A5F 0%, #2C4A6E 100%);
    border-radius: 50px;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
    color: white;
    font-weight: bold;
    border: none;
}

.btn-submit-dark:hover {
    background: linear-gradient(135deg, #2C4A6E 0%, #3d5a7e 100%);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
    color: white;
}

/* Card with large rounded corners */
.card-rounded-xl {
    border-radius: 20px;
    overflow: hidden;
}

/* Decorative circle - subtle white overlay */
.decorative-circle {
    position: absolute;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.decorative-circle.top-right {
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
}

.decorative-circle.bottom-left {
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
}

/* Pastel Theme Badge Colors with Gradients */
.badge.bg-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.badge.bg-success {
    background: var(--gradient-success) !important;
    color: white !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.badge.bg-warning {
    background: var(--gradient-warning) !important;
    color: var(--text-dark) !important;
}

.badge.bg-danger {
    background: var(--gradient-danger) !important;
    color: white !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.badge.bg-info {
    background: var(--gradient-info) !important;
    color: white !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.badge.bg-secondary {
    background: var(--gradient-secondary) !important;
    color: white !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Text colors for pastel theme */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-hover) !important;
}

.text-danger {
    color: var(--danger-hover) !important;
}

.text-warning {
    color: var(--warning-hover) !important;
}

.text-info {
    color: var(--info-hover) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Project Dashboard Styles */
.project-card-item {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: visible !important;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15), 2px 2px 5px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 0.75rem;
}

.project-card-item:hover {
    box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.2), 3px 3px 8px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color);
    z-index: 10;
    position: relative;
}

.project-card-item .card-header {
    padding: 0.75rem 1rem 0.5rem 1rem;
}

.project-card-item .card-body {
    padding: 0.75rem 1rem;
}

.project-card-item .card-footer {
    padding: 0.5rem 1rem 0.75rem 1rem;
}

.project-card-item .btn-group .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

/* Project Status Badges */
.badge {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Tab Navigation Enhancements */
.nav-tabs {
    border-bottom: 2px solid #999;
    padding-left: 10px;
    background-color: #f0f0f0;
    padding-top: 8px;
}

.nav-tabs .nav-link {
    color: #444 !important;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.15s ease;
    border-radius: 6px 6px 0 0;
    margin-bottom: -2px;
    margin-right: 3px;
    background: linear-gradient(to bottom, #e0e0e0 0%, #c8c8c8 100%);
    border: 1px solid #999;
    border-bottom: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 2px -2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.nav-tabs .nav-link:hover {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    color: #222 !important;
}

.nav-tabs .nav-link.active {
    background: #fff !important;
    color: #222 !important;
    font-weight: 600;
    border: 2px solid #999;
    border-bottom: 2px solid #fff;
    box-shadow: 2px -3px 6px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Nav Pills */
.nav-pills .nav-link {
    border-radius: 6px;
    color: #495057 !important;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    color: #212529 !important;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd !important;
    color: white !important;
}

/* Tab Content Overflow Fix */
.tab-content {
    overflow: visible !important;
}

.tab-pane {
    overflow: visible !important;
}

.container {
    overflow: visible !important;
}

/* Dashboard Stats Cards */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Category Filter Styling */
#categoryFilter {
    min-width: 150px;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

/* Empty State Styling */
.text-center.py-5 {
    padding: 3rem 1rem !important;
}

.text-center.py-5 i {
    opacity: 0.5;
}

/* Progress Bar Styling */
.progress {
    background-color: var(--bg-gray);
    border-radius: 12px;
    height: 10px;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
}

/* Dropdown Menu - Unified Styling */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    background: #FFFFFF;
    min-width: 200px;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar user dropdown - consistent styling across all pages */
.navbar .dropdown-menu,
.navbar-nav .dropdown-menu,
#navbarDropdown + .dropdown-menu {
    z-index: 1100 !important;
    position: absolute !important;
    background: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 8px !important;
    min-width: 220px !important;
    margin-top: 8px !important;
}

.navbar .dropdown-menu .dropdown-item,
.navbar-nav .dropdown-menu .dropdown-item,
#navbarDropdown + .dropdown-menu .dropdown-item {
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:hover,
#navbarDropdown + .dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(124, 181, 227, 0.15) 0%, rgba(126, 200, 200, 0.15) 100%) !important;
    color: var(--primary-color) !important;
    transform: translateX(3px) !important;
}

.navbar .dropdown-menu .dropdown-item i,
.navbar-nav .dropdown-menu .dropdown-item i {
    width: 20px !important;
    margin-right: 10px !important;
    color: var(--primary-color) !important;
}

.navbar .dropdown-menu .dropdown-item.text-danger,
.navbar-nav .dropdown-menu .dropdown-item.text-danger {
    color: #dc3545 !important;
}

.navbar .dropdown-menu .dropdown-item.text-danger i {
    color: #dc3545 !important;
}

.navbar .dropdown-menu .dropdown-item.text-warning,
.navbar-nav .dropdown-menu .dropdown-item.text-warning {
    color: #856404 !important;
}

.navbar .dropdown-menu .dropdown-item.text-warning i {
    color: #f39c12 !important;
}

.navbar .dropdown-menu .dropdown-item.text-info,
.navbar-nav .dropdown-menu .dropdown-item.text-info {
    color: #0c5460 !important;
}

.navbar .dropdown-menu .dropdown-item.text-info i {
    color: #17a2b8 !important;
}

.navbar .dropdown-menu .dropdown-divider {
    margin: 6px 8px !important;
    border-color: #eee !important;
}

.navbar .nav-item.dropdown {
    position: relative;
}

/* Project card dropdown */
.project-card-item .dropdown-menu {
    z-index: 1050 !important;
}

/* Ensure dropdown doesn't get cut off in cards */
.project-card-item .btn-group {
    position: static !important;
}

.project-card-item .dropdown {
    position: static !important;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #333;
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-color);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(124, 181, 227, 0.1) 0%, rgba(126, 200, 200, 0.1) 100%);
    color: var(--primary-color);
    transform: translateX(3px);
}

.dropdown-item.text-danger {
    color: #dc3545;
}

.dropdown-item.text-danger i {
    color: #dc3545;
}

.dropdown-item.text-danger:hover {
    background-color: #FDEAEA;
    color: #c82333;
}

.dropdown-item.text-warning {
    color: #856404;
}

.dropdown-item.text-warning i {
    color: #f39c12;
}

.dropdown-item.text-info {
    color: #0c5460;
}

.dropdown-item.text-info i {
    color: #17a2b8;
}

.dropdown-divider {
    margin: 6px 0;
    border-color: #eee;
}

/* Card Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card-item {
    animation: slideInUp 0.3s ease-out;
}

/* Responsive adjustments for project cards */
@media (max-width: 768px) {
    .project-card-item .btn-group .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .project-card-item .card-header,
    .project-card-item .card-body,
    .project-card-item .card-footer {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .project-card-item {
        margin-bottom: 1rem;
    }
}

/* Instruction Generation Status Styles */
.instruction-status .alert {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    animation: slideInDown 0.3s ease-out;
}

.instruction-status .alert-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
}

.instruction-status .alert i {
    margin-right: 0.25rem;
}

.instruction-status .alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 3px solid #ffc107;
}

.instruction-status .alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
    border-left: 3px solid #198754;
}

.instruction-status .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.instruction-status .alert-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.instruction-status .alert-link:hover {
    opacity: 0.8;
}

/* Spinner animation for generating status */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast notification positioning and styling */
.toast-container {
    z-index: 1055 !important;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast .toast-body {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Retry button styling */
.retry-generation {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.retry-generation:hover {
    opacity: 0.8;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .alert {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background-color: white;
        color: black;
    }
}

/* Additional Theme Enhancements */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-hover) 100%) !important;
}

.bg-info {
    background: var(--info-color) !important;
}

.bg-warning {
    background: var(--warning-color) !important;
}

.bg-danger {
    background: var(--danger-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

/* Link colors */
a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

/* Section backgrounds */
.bg-light {
    background-color: var(--bg-light) !important;
}

/* Custom utility classes */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-primary {
    box-shadow: var(--shadow-md) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Rating and Comments Styles */
.rating-star {
    transition: all 0.2s ease;
    margin: 0 0.2rem;
}

.rating-star:hover {
    transform: scale(1.2);
}

.rating-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comment-item {
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.comment-item:hover {
    background: #e9ecef;
}

.comment-actions .btn-link {
    text-decoration: none;
}

.comment-actions .btn-link:hover {
    text-decoration: underline;
}

.replies {
    margin-top: 1rem;
}

.reply-form-container {
    margin-top: 0.5rem;
}

.project-rating-badge {
    font-size: 0.875rem;
}

.project-rating-badge .avg-rating {
    font-weight: 600;
}

/* Collapsible Section Styles */
.collapse-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

[data-bs-toggle="collapse"][aria-expanded="false"] .collapse-icon {
    transform: rotate(0deg);
}

.card-header[data-bs-toggle="collapse"] {
    transition: background-color 0.2s ease;
}

.card-header[data-bs-toggle="collapse"]:hover {
    background-color: var(--bg-gray);
}

.card-header[data-bs-toggle="collapse"]:active {
    background-color: var(--bg-gray);
}

/* Collapsible content animation */
.collapse {
    transition: height 0.35s ease;
}

.collapsing {
    transition: height 0.35s ease;
}

/* Ad Space Sidebar Styles */
.content-with-ads {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

.main-content-area {
    flex: 1;
    min-width: 0;
}

.main-content-area.with-sidebar {
    margin-right: 0;
}

.ad-space-sidebar {
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-right: 15px;
}

.ad-space-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
    overflow-y: auto;
}

.ad-space-header {
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    margin: -0.75rem -0.75rem 0.5rem -0.75rem;
}

.ad-space-header small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-slot {
    flex: 1;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

/* Placeholder ads styling */
.ad-placeholder {
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.ad-placeholder-content {
    text-align: center;
    padding: 1rem;
}

.ad-placeholder-content i {
    display: block;
    margin-bottom: 0.5rem;
}

/* Google AdSense styling */
.ad-slot ins.adsbygoogle {
    display: block;
    width: 100%;
    height: 100%;
}

/* Responsive behavior */
@media (max-width: 1200px) {
    .content-with-ads {
        gap: 1rem;
    }

    .ad-space-sidebar {
        width: 120px !important;
    }
}

@media (max-width: 992px) {
    .content-with-ads {
        flex-direction: column;
    }

    .ad-space-sidebar {
        position: relative;
        top: 0;
        width: 100% !important;
        max-width: 728px;
        margin: 0 auto;
    }

    .ad-space-container {
        flex-direction: row;
        height: auto !important;
        overflow-x: auto;
    }

    .ad-slot {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .ad-space-sidebar {
        max-width: 100%;
    }

    .ad-space-container {
        flex-direction: column;
    }

    .ad-slot {
        min-width: 100%;
        min-height: 120px;
    }
}

/* Hide ads on print */
@media print {
    .ad-space-sidebar {
        display: none !important;
    }

    .main-content-area {
        margin-right: 0 !important;
    }
}

/* Footer Link Styles */
.footer-link {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff !important;
    text-decoration: none;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE CSS FIXES
   For laptops, desktops, wide screens, tablets, phones
   ============================================ */

/* ============================================
   BASE RESPONSIVE SETTINGS
   ============================================ */

/* Ensure proper box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fluid images */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Container max-widths for different screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

/* ============================================
   NAVIGATION - Mobile First
   ============================================ */

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
        padding: 1rem;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin: 0.25rem 0;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white !important;
    }

    .navbar .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        border: none;
        box-shadow: var(--shadow-lg);
    }

    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    }
}

/* ============================================
   HERO SECTION - Responsive
   ============================================ */

.hero-section {
    padding: 3rem 0;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 0.9rem;
    }

    .hero-section .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   DASHBOARD - Responsive Stats Cards
   ============================================ */

/* Stats cards - responsive grid */
@media (max-width: 767.98px) {
    .row > [class*="col-md-4"]:has(.card.border-0.bg-primary),
    .row > [class*="col-md-4"]:has(.card.border-0.bg-success),
    .row > [class*="col-md-4"]:has(.card.border-0.bg-info) {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.75rem;
    }
}

/* Dashboard header responsive */
@media (max-width: 767.98px) {
    .bg-primary.text-white.py-4 .row {
        text-align: center;
    }

    .bg-primary.text-white.py-4 .col-md-8,
    .bg-primary.text-white.py-4 .col-md-4 {
        text-align: center !important;
    }

    .bg-primary.text-white.py-4 .col-md-4 {
        margin-top: 1rem;
    }

    .bg-primary.text-white.py-4 .btn-lg {
        width: 100%;
    }
}

/* ============================================
   TABS - Responsive Navigation
   ============================================ */

/* Tab navigation - horizontal scroll on mobile */
@media (max-width: 767.98px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tabs .nav-item {
        flex-shrink: 0;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .nav-tabs .nav-link i {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   PROJECT CARDS - Responsive Grid
   ============================================ */

/* Project cards container */
.project-cards-container .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-cards-container .col-md-6,
.project-cards-container .col-lg-4,
.project-cards-container .col-xl-3 {
    padding: 0.75rem;
}

/* Card fills its Bootstrap column wrapper - Bootstrap grid handles responsive sizing */
.project-card-item {
    width: 100%;
}

/* Mobile-specific card adjustments */
@media (max-width: 767.98px) {
    .project-card-item {
        margin-bottom: 1rem;
    }

    .project-card-item .card-body {
        padding: 1rem;
    }

    .project-card-item .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .project-card-item .btn-group .btn {
        flex: 1;
        min-width: auto;
    }
}

/* Card image responsive */
.project-card-item .card-img-top {
    height: 180px;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .project-card-item .card-img-top {
        height: 200px;
    }
}

/* ============================================
   FORMS - Responsive
   ============================================ */

/* Form layouts */
@media (max-width: 767.98px) {
    .row > [class*="col-md-6"] {
        margin-bottom: 1rem;
    }

    .form-group, .mb-3 {
        margin-bottom: 1rem;
    }

    /* Stack form buttons on mobile */
    .form-actions .btn,
    .d-grid .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Input groups */
    .input-group {
        flex-wrap: wrap;
    }

    .input-group > .form-control {
        flex: 1 1 100%;
    }
}

/* Touch-friendly input sizes */
@media (max-width: 767.98px) {
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        min-height: 44px;
        padding: 0.625rem 1rem;
    }
}

/* ============================================
   BUTTONS - Responsive
   ============================================ */

/* Button groups on mobile */
@media (max-width: 575.98px) {
    .btn-group:not(.btn-group-sm) {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .btn-group:not(.btn-group-sm) .btn {
        border-radius: 8px !important;
        margin-bottom: 0.25rem;
    }

    /* Keep small button groups horizontal */
    .btn-group-sm {
        flex-direction: row;
    }
}

/* Full width buttons on mobile */
@media (max-width: 575.98px) {
    .btn-lg {
        display: block;
        width: 100%;
    }
}

/* ============================================
   TABLES - Responsive
   ============================================ */

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }

    /* Stack table on very small screens */
    .table-stack-mobile thead {
        display: none;
    }

    .table-stack-mobile tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .table-stack-mobile td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .table-stack-mobile td:last-child {
        border-bottom: none;
    }

    .table-stack-mobile td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
    }
}

/* ============================================
   MODALS - Responsive
   ============================================ */

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* ============================================
   CARDS - Responsive
   ============================================ */

@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-footer {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   TYPOGRAPHY - Responsive
   ============================================ */

@media (max-width: 767.98px) {
    h1, .h1 {
        font-size: 1.75rem;
    }

    h2, .h2 {
        font-size: 1.5rem;
    }

    h3, .h3 {
        font-size: 1.25rem;
    }

    h4, .h4 {
        font-size: 1.125rem;
    }

    h5, .h5 {
        font-size: 1rem;
    }

    h6, .h6 {
        font-size: 0.875rem;
    }

    .display-1 {
        font-size: 2.5rem;
    }

    .display-2 {
        font-size: 2.25rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    h1, .h1 {
        font-size: 1.5rem;
    }

    h2, .h2 {
        font-size: 1.35rem;
    }

    .display-1, .display-2, .display-3, .display-4 {
        font-size: 1.75rem;
    }
}

/* ============================================
   UTILITY CLASSES - Responsive
   ============================================ */

/* Hide/show utilities */
@media (max-width: 575.98px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 576px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* Spacing adjustments */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .my-4 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* ============================================
   PROJECT VIEW PAGE - Responsive
   ============================================ */

@media (max-width: 991.98px) {
    .content-with-ads {
        flex-direction: column;
    }

    .ad-space-sidebar {
        display: none;
    }

    .main-content-area {
        width: 100%;
    }
}

/* Project view sections */
@media (max-width: 767.98px) {
    .project-header .row {
        text-align: center;
    }

    .project-header img {
        margin-bottom: 1rem;
    }

    .project-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .project-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   PROFILE PAGE - Responsive
   ============================================ */

@media (max-width: 767.98px) {
    .profile-header .row {
        text-align: center;
    }

    .profile-header .col-auto {
        margin-bottom: 1rem;
    }

    .profile-img-xl {
        width: 100px !important;
        height: 100px !important;
    }

    .profile-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   FOOTER - Responsive
   ============================================ */

@media (max-width: 767.98px) {
    footer .row > div {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    footer .row > div:last-child {
        margin-bottom: 0;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .btn,
    .ad-space-sidebar,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }

    /* Larger touch targets */
    .nav-link,
    .dropdown-item {
        padding: 0.75rem 1rem;
    }

    /* Simplified hover states for touch */
    .project-card-item:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

/* ============================================
   HERO TOOL ICONS - Responsive
   ============================================ */

.tool-icon-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

@media (min-width: 768px) {
    .tool-icon-box {
        padding: 2rem;
        border-radius: 20px;
    }

    .tool-icon-box i.fa-2x {
        font-size: 2.5em;
    }
}

@media (max-width: 575.98px) {
    .tool-icon-box {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .tool-icon-box i {
        font-size: 1.25em !important;
    }

    .hero-icons .row {
        padding: 0.5rem !important;
    }
}

/* Hero Features Row - Responsive */
.hero-features {
    justify-content: flex-start;
}

.hero-feature-item {
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .hero-features {
        justify-content: center;
    }

    .hero-feature-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem !important;
    }

    .hero-feature-item {
        font-size: 0.85rem;
    }
}

/* ============================================
   DASHBOARD STAT CARDS - Mobile Responsive
   ============================================ */

@media (max-width: 767.98px) {
    .stat-card .card-body {
        padding: 0.75rem !important;
    }

    .stat-card .stat-number {
        font-size: 1.25rem;
    }

    .stat-card .stat-label {
        font-size: 0.7rem;
    }

    .stat-card i {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .stat-card .card-body {
        padding: 0.5rem !important;
    }

    .stat-card .stat-number {
        font-size: 1.1rem;
    }

    .stat-card .stat-label {
        font-size: 0.65rem;
    }

    .stat-card i {
        font-size: 1rem !important;
    }
}

/* ============================================
   WIDE SCREEN OPTIMIZATIONS (4K, Ultrawide)
   ============================================ */

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 1600px;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }

    .container {
        max-width: 1800px;
    }
}

/* ============================================
   CONTEXTUAL TIPS SYSTEM
   ============================================ */

/* Contextual Tip Card */
.contextual-tip-card {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.contextual-tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #6c757d;
}

.contextual-tip-card.compact {
    padding: 0.75rem 1rem;
}

.contextual-tip-card .tip-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border-radius: 50%;
    margin-right: 1rem;
}

.contextual-tip-card .tip-icon-wrapper i {
    font-size: 1.25rem;
    color: #6c757d;
}

.contextual-tip-card .tip-content {
    flex: 1;
    min-width: 0;
}

.contextual-tip-card .tip-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.contextual-tip-card .tip-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
}

.contextual-tip-card .tip-text.loading {
    color: #6c757d;
    font-style: italic;
}

.contextual-tip-card .tip-refresh-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
}

.contextual-tip-card .tip-refresh-btn:hover {
    background: #6c757d;
    color: white;
}

.contextual-tip-card .tip-refresh-btn.spinning i {
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Section Tips */
.section-tip-container {
    background: #F0F9FF;
    border-bottom: 1px solid #E0F2FE;
}

.section-tip {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.section-tip i {
    flex-shrink: 0;
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.125rem;
}

.section-tip span {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Field Tip Trigger */
.field-tip-trigger {
    color: var(--info-color);
    transition: color 0.2s ease;
}

.field-tip-trigger:hover {
    color: var(--primary-hover);
}

/* Field Tip Popover */
.field-tip-popover {
    max-width: 320px;
}

.field-tip-popover .popover-body {
    padding: 1rem;
}

.field-tip-content {
    display: flex;
    align-items: flex-start;
}

.field-tip-content i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.field-tip-content span {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Action Tip Modal */
#actionTipModal .modal-header {
    border-bottom: 2px solid var(--primary-color);
}

#actionTipModal .modal-title i {
    color: #F59E0B;
    margin-right: 0.5rem;
}

#actionTipModal .action-tip-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

#actionTipModal .action-checklist,
#actionTipModal .action-suggestions,
#actionTipModal .action-info {
    background: #F8FAFC;
    padding: 1rem;
    border-radius: 8px;
}

#actionTipModal .action-checklist ul,
#actionTipModal .action-suggestions ul,
#actionTipModal .action-info ul {
    margin-bottom: 0;
}

#actionTipModal .action-checklist li,
#actionTipModal .action-suggestions li,
#actionTipModal .action-info li {
    padding: 0.375rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

#actionTipModal .action-checklist li i,
#actionTipModal .action-suggestions li i,
#actionTipModal .action-info li i {
    width: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contextual-tip-card {
        padding: 0.875rem 1rem;
    }

    .contextual-tip-card .tip-icon-wrapper {
        width: 32px;
        height: 32px;
        margin-right: 0.75rem;
    }

    .contextual-tip-card .tip-icon-wrapper i {
        font-size: 1rem;
    }

    .contextual-tip-card .tip-text {
        font-size: 0.875rem;
    }

    .contextual-tip-card .tip-refresh-btn {
        width: 28px;
        height: 28px;
    }

    .field-tip-popover {
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .contextual-tip-card {
        flex-wrap: wrap;
    }

    .contextual-tip-card .tip-refresh-btn {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* ============================================
   SPICED UP STYLES - Making DIY Builder Fun!
   ============================================ */

/* Enhanced Color Palette - More Vibrant */
:root {
    /* Fun accent colors */
    --fun-orange: #FF7849;
    --fun-pink: #FF6B9D;
    --fun-purple: #9B59B6;
    --fun-teal: #1ABC9C;
    --fun-yellow: #F1C40F;
    --fun-coral: #FF6B6B;
    
    /* Vibrant gradients */
    --gradient-rainbow: linear-gradient(135deg, #2C4A6E 0%, #1E3A5F 50%, #D4AF37 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-ocean: linear-gradient(135deg, #2C4A6E 0%, #00d4ff 100%);
    --gradient-forest: linear-gradient(135deg, #1E3A5F 0%, #D4AF37 100%);
    --gradient-candy: linear-gradient(135deg, #D4AF37 0%, #1A2F4A 100%);
    --gradient-aurora: linear-gradient(135deg, #3D5A80 0%, #D4AF37 100%);
}

/* ============================================
   ENHANCED TAB STYLING - Pill Style Tabs
   ============================================ */

.nav-tabs {
    border-bottom: none !important;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%);
    padding: 8px;
    border-radius: 16px;
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
}

.nav-tabs .nav-link {
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-weight: 600;
    color: var(--text-medium);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: -1;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(124, 181, 227, 0.1);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: #fff !important;
    color: #222 !important;
    border: 2px solid #999;
    border-bottom: 2px solid #fff;
    box-shadow: 2px -3px 6px rgba(0,0,0,0.15);
}

.nav-tabs .nav-link i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.nav-tabs .nav-link:hover i {
    transform: scale(1.2);
}

.nav-tabs .nav-link.active i {
    color: #333;
}
    50% { transform: scale(1.3); }
}

/* ============================================
   FUN BUTTON ANIMATIONS
   ============================================ */

/* Ripple effect for buttons */
.btn {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Primary button styles */
.btn-primary {
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
}

.btn-success {
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.4);
}

.btn-danger {
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}

.btn-warning {
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

/* ============================================
   ENHANCED CARD STYLING
   ============================================ */

.card {
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1rem 1.25rem;
}

.card-header h5, .card-header h4, .card-header h6 {
    color: #212529;
    font-weight: 600;
}

/* Card hover effect */
.card-rainbow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   TABLE STYLING
   ============================================ */

.table {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table thead {
    background-color: #f8f9fa;
}

.table thead th {
    color: #212529;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 0.75rem 1rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(124, 181, 227, 0.1) 0%, rgba(126, 200, 200, 0.1) 100%);
    transform: scale(1.01);
}

.table tbody td {
    vertical-align: middle;
    padding: 1rem;
    border-color: rgba(124, 181, 227, 0.1);
}

/* Alternating row colors */
.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(248, 249, 252, 0.8);
}

/* ============================================
   ANIMATED BADGES
   ============================================ */

.badge {
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

.badge-animated {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-glow {
    box-shadow: 0 0 10px currentColor;
}

/* ============================================
   FUN FORM ELEMENTS
   ============================================ */

.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e6eef5;
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 181, 227, 0.2);
    transform: translateY(-2px);
}

/* Floating labels enhancement */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Checkbox and radio styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================
   PROGRESS BAR ANIMATIONS
   ============================================ */

.progress {
    height: 12px;
    border-radius: 50px;
    overflow: hidden;
    background: #e9ecef;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 50px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   FLOATING ICONS AND DECORATIONS
   ============================================ */

.icon-float {
    animation: floatIcon 3s ease-in-out infinite;
}

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

.icon-spin-slow {
    animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-bounce {
    animation: bounceIcon 1s ease infinite;
}

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

/* ============================================
   PAGE SECTION ENHANCEMENTS
   ============================================ */

/* Fun section dividers */
.section-divider {
    height: 4px;
    background: var(--gradient-rainbow);
    border-radius: 2px;
    margin: 2rem 0;
}

/* Decorative dots pattern */
.dots-pattern {
    background-image: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Gradient text */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-rainbow {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ALERT ENHANCEMENTS
   ============================================ */

.alert {
    border: none;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideInAlert 0.5s ease;
}

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(123, 200, 155, 0.2) 0%, rgba(139, 191, 159, 0.2) 100%);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(232, 160, 160, 0.2) 0%, rgba(232, 160, 144, 0.2) 100%);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(240, 201, 135, 0.2) 0%, rgba(232, 160, 144, 0.2) 100%);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(135, 197, 232, 0.2) 0%, rgba(124, 181, 227, 0.2) 100%);
    border-left: 4px solid var(--info-color);
}

/* ============================================
   TOOLTIP & POPOVER ENHANCEMENTS
   ============================================ */

.tooltip-inner {
    background: var(--gradient-dark);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.popover {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.popover-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

/* ============================================
   MODAL ENHANCEMENTS
   ============================================ */

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(124, 181, 227, 0.2);
    padding: 1rem 1.5rem;
}

/* Modal animation */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Dropdown enhancements moved to unified section above */

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

/* ============================================
   LIST GROUP ENHANCEMENTS
   ============================================ */

.list-group {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(124, 181, 227, 0.1);
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: linear-gradient(90deg, rgba(124, 181, 227, 0.05) 0%, transparent 100%);
    padding-left: 1.5rem;
}

.list-group-item.active {
    background: var(--gradient-primary);
    border: none;
}

/* ============================================
   NAVBAR ENHANCEMENTS
   ============================================ */

.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    animation: hammerSwing 2s ease-in-out infinite;
}

@keyframes hammerSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary-hover);
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   FUN HOVER EFFECTS
   ============================================ */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-shake:hover {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================
   CONFETTI BACKGROUND PATTERN
   ============================================ */

.confetti-bg {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 70%, rgba(17, 153, 142, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 60% 50%, rgba(241, 196, 15, 0.1) 2px, transparent 2px);
    background-size: 100px 100px;
}

/* ============================================
   PROJECT STATUS BADGES - Fun Colors
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-badge-draft {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
}

.status-badge-progress {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.status-badge-completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-badge-published {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* ============================================
   SKILL LEVEL INDICATORS
   ============================================ */

.skill-indicator {
    display: flex;
    gap: 4px;
}

.skill-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.skill-dot.active {
    background: var(--gradient-primary);
    animation: skillPop 0.5s ease;
}

@keyframes skillPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================
   FOOTER ENHANCEMENTS
   ============================================ */

footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rainbow);
}

.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white !important;
    transform: translateX(5px);
}

/* ============================================
   EMPTY STATE STYLING
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

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

.empty-state-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR NEW STYLES
   ============================================ */

@media (max-width: 767.98px) {
    .nav-tabs {
        padding: 6px;
        gap: 4px;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 14px !important;
        font-size: 0.85rem;
    }
    
    .card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .modal-content {
        border-radius: 16px;
    }
}

@media (max-width: 575.98px) {
    .nav-tabs .nav-link {
        padding: 8px 12px !important;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   INSTRUCTION CONTENT STYLING
   ============================================ */

.instruction-content {
    text-align: left;
}

.instruction-content strong {
    color: #0d6efd;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.instruction-content strong:first-child {
    margin-top: 0;
}

/* ============================================
   DASHBOARD ENHANCEMENTS
   ============================================ */

/* Estimated Time Badge */
.estimated-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    color: #6c757d;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.estimated-time-badge:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #495057;
}

.estimated-time-badge i {
    font-size: 0.7rem;
    color: #0d6efd;
}

/* Onboarding Section */
.onboarding-section .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.onboarding-section .card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.onboarding-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.getting-started-steps .step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.create-first-project-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.create-first-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
}

.onboarding-visual {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    min-height: 300px;
}

.popular-tags .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Quick Actions Bar */
.quick-actions-bar {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

/* Recent Activity Feed */
.recent-activity-section .card {
    border-radius: 12px;
    overflow: hidden;
}

.activity-timeline {
    max-height: 300px;
    overflow-y: auto;
}

.activity-timeline::-webkit-scrollbar {
    width: 6px;
}

.activity-timeline::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.activity-timeline::-webkit-scrollbar-thumb:hover {
    background: #ced4da;
}

.activity-item {
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background-color: #f8f9fa;
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.hover-primary:hover {
    color: #0d6efd !important;
}

.activity-time {
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Dark mode support for dashboard enhancements */
[data-bs-theme="dark"] .onboarding-section .card,
.dark-mode .onboarding-section .card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a2b36 100%);
}

[data-bs-theme="dark"] .quick-actions-bar,
.dark-mode .quick-actions-bar {
    background: linear-gradient(135deg, #2a2b36 0%, #22232c 100%);
    border-color: #3a3c48;
}

[data-bs-theme="dark"] .estimated-time-badge,
.dark-mode .estimated-time-badge {
    background: linear-gradient(135deg, #2a2b36 0%, #22232c 100%);
    border-color: #3a3c48;
    color: #adb5bd;
}

[data-bs-theme="dark"] .activity-item:hover,
.dark-mode .activity-item:hover {
    background-color: #2a2b36;
}

[data-bs-theme="dark"] .recent-activity-section .card,
.dark-mode .recent-activity-section .card {
    background: var(--card-bg);
}

/* ============================================
   SKELETON LOADING CARDS
   ============================================ */

/* Skeleton Card Container */
.skeleton-card {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #e9ecef);
}

/* Skeleton Base Element */
.skeleton-element {
    background: linear-gradient(90deg,
        var(--skeleton-base, #f0f0f0) 0%,
        var(--skeleton-highlight, #e0e0e0) 50%,
        var(--skeleton-base, #f0f0f0) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

/* Skeleton Image Area */
.skeleton-card .skeleton-image {
    width: 100%;
    height: 180px;
    border-radius: 0;
}

/* Skeleton Card Body */
.skeleton-card .skeleton-body {
    padding: 1.25rem;
}

/* Skeleton Title */
.skeleton-card .skeleton-title {
    height: 24px;
    width: 75%;
    margin-bottom: 12px;
}

/* Skeleton Text Lines */
.skeleton-card .skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-card .skeleton-text.short {
    width: 60%;
}

.skeleton-card .skeleton-text.medium {
    width: 80%;
}

.skeleton-card .skeleton-text.long {
    width: 95%;
}

/* Skeleton Badge Row */
.skeleton-card .skeleton-badges {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.skeleton-card .skeleton-badge {
    height: 28px;
    width: 70px;
    border-radius: 50px;
}

/* Skeleton Footer */
.skeleton-card .skeleton-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color, #e9ecef);
    display: flex;
    gap: 8px;
}

.skeleton-card .skeleton-button {
    height: 38px;
    flex: 1;
    border-radius: 8px;
}

.skeleton-card .skeleton-button.small {
    flex: 0 0 38px;
}

/* Skeleton Grid */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Fade in animation for real content */
.skeleton-fade-in {
    animation: skeletonFadeIn 0.4s ease-out forwards;
}

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

/* Fade out animation for deleted cards */
.card-deleting {
    animation: cardFadeOut 0.3s ease-out forwards;
    pointer-events: none;
}

@keyframes cardFadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ============================================
   ENHANCED PROGRESS BAR
   ============================================ */

/* Linear Progress Bar */
.progress-bar-enhanced {
    height: 12px;
    background: #e9ecef;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.progress-bar-enhanced .progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
        var(--primary-color, #667eea) 0%,
        var(--secondary-color, #764ba2) 50%,
        var(--accent-color, #f093fb) 100%);
    border-radius: 50px;
    transition: width 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

/* Animated shimmer on progress fill */
.progress-bar-enhanced .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: progressShimmer 1.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.progress-step.completed .progress-step-icon {
    background: var(--success-color, #28a745);
    color: white;
}

.progress-step.active .progress-step-icon {
    background: var(--primary-color, #667eea);
    color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.1); }
}

.progress-step-label {
    font-size: 11px;
    color: #6c757d;
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
}

.progress-step.completed .progress-step-label,
.progress-step.active .progress-step-label {
    color: #212529;
}

/* Connector line between steps */
.progress-step::before {
    content: '';
    position: absolute;
    top: 18px;
    left: -50%;
    right: 50%;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
}

.progress-step:first-child::before {
    display: none;
}

.progress-step.completed::before {
    background: var(--success-color, #28a745);
}

/* AI Generation Card */
.ai-generation-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 1.5rem;
}

.ai-generation-card.generating {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-color: #ffc107;
}

.ai-generation-card.complete {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.ai-generation-card.failed {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
}

/* Circular Progress Indicator */
.circular-progress {
    position: relative;
    width: 80px;
    height: 80px;
}

.circular-progress svg {
    transform: rotate(-90deg);
}

.circular-progress .progress-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 6;
}

.circular-progress .progress-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease-out;
}

.circular-progress .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

/* Dark mode skeleton */
[data-bs-theme="dark"] .skeleton-element,
.dark-mode .skeleton-element {
    --skeleton-base: #2a2b36;
    --skeleton-highlight: #3a3c48;
}

[data-bs-theme="dark"] .skeleton-card,
.dark-mode .skeleton-card {
    background: var(--card-bg);
    border-color: #3a3c48;
}

[data-bs-theme="dark"] .progress-bar-enhanced,
.dark-mode .progress-bar-enhanced {
    background: #2a2b36;
}

[data-bs-theme="dark"] .progress-step-icon,
.dark-mode .progress-step-icon {
    background: #3a3c48;
    color: #adb5bd;
}

[data-bs-theme="dark"] .progress-step::before,
.dark-mode .progress-step::before {
    background: #3a3c48;
}

[data-bs-theme="dark"] .ai-generation-card,
.dark-mode .ai-generation-card {
    background: linear-gradient(135deg, #2a2b36 0%, #22232c 100%);
    border-color: #3a3c48;
}
