/* Modern Neutral Dark Theme - Reset and Base Styles */
:root {
    /* Calm, accessible accent palette */
    --primary: #3B82F6;
    /* blue-500 */
    --primary-light: #60A5FA;
    /* blue-400 */
    --primary-dark: #2563EB;
    /* blue-600 */
    --primary-glow: rgba(59, 130, 246, 0.25);

    --success: #22C55E;
    /* green-500 */
    --success-light: #86EFAC;
    /* green-300 */
    --success-dark: #16A34A;
    /* green-600 */

    --warning: #F59E0B;
    --error: #EF4444;

    /* Neutral Surfaces */
    --surface-darkest: #0E1117;
    /* app bg */
    --surface-dark: #0F141B;
    --surface: #121821;
    /* cards */
    --surface-light: #19212C;
    /* inputs */
    --surface-lighter: #223044;
    /* subtle icons */
    --surface-elevated: #141B25;

    /* Text Colors */
    --text-primary: #E6EDF3;
    /* headings */
    --text-secondary: #9AA4B2;
    /* body */
    --text-tertiary: #7D8794;
    /* captions */
    --text-on-primary: #FFFFFF;
    --text-on-accent: #FFFFFF;

    /* Borders & Dividers */
    --border: #223043;
    --border-light: #2C3A4E;
    --divider: #1B2533;

    /* Subtle Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 6px rgba(0, 0, 0, .45);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, .55);
    --shadow-xl: 0 20px 30px rgba(0, 0, 0, .6);
    --shadow-glow: 0 0 0 rgba(0, 0, 0, 0);
    --shadow-glow-lg: 0 0 0 rgba(0, 0, 0, 0);

    /* Typography */
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Motion */
    --transition-fast: 120ms cubic-bezier(0.2, 0, 0, 1);
    --transition-base: 200ms cubic-bezier(0.2, 0, 0, 1);
    --transition-slow: 300ms cubic-bezier(0.2, 0, 0, 1);
    --transition-bounce: 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--surface-darkest) 0%, var(--surface-dark) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Modern Vibrant Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.nav-brand h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: 12px;
}

.nav-link span {
    position: relative;
    z-index: 1;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 0.15;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-on-primary) !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link.active::before {
    opacity: 0;
}

/* Ensure global anchor overrides do not reduce contrast on active nav link */
.nav-menu .nav-link.active,
.nav-menu .nav-link.active:visited,
.nav-menu .nav-link.active:hover {
    color: var(--text-on-primary) !important;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 32px 0;
}

/* Modern Vibrant Hero Section */
.hero-section {
    text-align: center;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 50%, var(--surface) 100%);
    color: var(--text-primary);
    margin: -32px 0 48px 0;
    border-bottom: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    animation: none;
    pointer-events: none;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-section h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.hero-subtitle {
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 48px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    text-transform: none;
    min-height: 48px;
    box-shadow: var(--shadow);
    text-transform: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    font-weight: 600;
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* Modern Vibrant Cards */
.card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card:hover::before {
    opacity: 0.08;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.card h3 {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-base);
    position: relative;
}

.card-link::after {
    content: '→';
    transition: transform var(--transition-base);
}

.card-link:hover {
    color: var(--primary-light);
    gap: 10px;
}

.card-link:hover::after {
    transform: translateX(4px);
}

/* Vibrant Page Header */
.page-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 32px 0;
}

.page-header h1 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    filter: none;
}

.page-header p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Content Sections */
.content-section {
    margin-bottom: 56px;
}

.content-section h2 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section h3 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

/* Material Design Info Section */
.info-section {
    background-color: var(--md-sys-color-surface-container-high);
    border-radius: 16px;
    padding: 32px;
    margin-top: 48px;
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: var(--md-elevation-level2);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.benefit h4 {
    margin-bottom: 8px;
    color: var(--md-sys-color-on-surface);
    font-size: var(--md-typescale-title-large-size);
    font-weight: var(--md-typescale-title-large-weight);
}

/* Material Design Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--md-sys-color-surface-container) 0%, var(--md-sys-color-surface-container-high) 100%);
    border-left: 4px solid var(--md-sys-color-primary);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: var(--md-elevation-level1);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-tertiary) 100%);
}

.highlight-box h3 {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
    font-size: var(--md-typescale-title-large-size);
    font-weight: var(--md-typescale-title-large-weight);
}

.highlight-box ul {
    list-style: none;
}

.highlight-box li {
    padding: 6px 0;
    position: relative;
    padding-left: 28px;
    color: var(--md-sys-color-on-surface-variant);
    font-size: var(--md-typescale-body-large-size);
    line-height: var(--md-typescale-body-large-line-height);
}

.highlight-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--md-sys-color-primary);
    font-weight: bold;
    font-size: 1.1em;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--md-sys-color-primary-container);
    border-radius: 50%;
    font-size: 0.8em;
}

/* Material Design System Types */
.system-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.system-type {
    background-color: var(--md-sys-color-surface-container);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--md-elevation-level2);
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: all var(--md-motion-duration-medium2) var(--md-motion-easing-standard);
}

.system-type:hover {
    box-shadow: var(--md-elevation-level3);
    transform: translateY(-1px);
    border-color: var(--md-sys-color-primary);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.pros h4 {
    color: #38a169;
    margin-bottom: 10px;
}

.cons h4 {
    color: #e53e3e;
    margin-bottom: 10px;
}

.pros ul,
.cons ul {
    list-style: none;
}

.pros li::before {
    content: '+ ';
    color: #38a169;
    font-weight: bold;
}

.cons li::before {
    content: '- ';
    color: #e53e3e;
    font-weight: bold;
}

/* Material Design Checklist */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.checklist-category {
    background-color: var(--md-sys-color-surface-container);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--md-elevation-level1);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.checklist {
    list-style: none;
}

.checklist li {
    padding: 12px 0;
    position: relative;
    padding-left: 40px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
    font-size: var(--md-typescale-body-large-size);
    line-height: var(--md-typescale-body-large-line-height);
    transition: all var(--md-motion-duration-short4) var(--md-motion-easing-standard);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li:hover {
    color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-primary-container);
    margin: 0 -12px;
    padding-left: 52px;
    padding-right: 12px;
    border-radius: 8px;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--md-sys-color-primary);
    border-radius: 4px;
    background-color: transparent;
    transition: all var(--md-motion-duration-short4) var(--md-motion-easing-standard);
}

.checklist li:hover::before {
    background-color: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
}

.checklist li:hover::after {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--md-sys-color-on-primary);
    font-size: 12px;
    font-weight: bold;
}

/* Next Steps */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #2d3748;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.step-number {
    background: #4fd1c7;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.component-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.component-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.component-specs {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
}

.component-specs h4 {
    color: #cbd5e0;
    margin-bottom: 15px;
}

.component-specs ul {
    list-style: none;
}

.component-specs li {
    padding: 5px 0;
    color: #a0aec0;
}

/* Integration Flow */
.integration-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.flow-step {
    background: #2d3748;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 200px;
    text-align: center;
    border: 1px solid #4a5568;
}

.flow-arrow {
    font-size: 1.5rem;
    color: #4fd1c7;
    font-weight: bold;
}

/* Timeline */
.setup-timeline {
    position: relative;
    margin: 40px 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, #4fd1c7, #e2e8f0);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    background: #4fd1c7;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(79, 209, 199, 0.3);
}

.timeline-content {
    background: #2d3748;
    border-radius: 12px;
    padding: 30px;
    flex: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.timeline-details h4 {
    color: #cbd5e0;
    margin-bottom: 15px;
}

.time-estimate {
    margin-top: 15px;
    padding: 10px 15px;
    background: #374151;
    border-radius: 6px;
    color: #4fd1c7;
    font-weight: 500;
    border: 1px solid #4a5568;
}

.warning-box {
    background: #4a2d2d;
    border: 1px solid #f56565;
    color: #fed7d7;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.tip-box {
    background: #2d4a48;
    border: 1px solid #4fd1c7;
    color: #e6fffa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

/* Final Checklist */
.checklist-final {
    background: #2d3748;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item {
    color: #e2e8f0;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4fd1c7;
}

/* Troubleshooting Grid */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.issue-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.issue-card h4 {
    color: #f56565;
    margin-bottom: 15px;
}

/* Maintenance Schedule */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.schedule-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-left: 4px solid;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.schedule-card.daily {
    border-left-color: #38a169;
}

.schedule-card.weekly {
    border-left-color: #3182ce;
}

.schedule-card.biweekly {
    border-left-color: #d69e2e;
}

.schedule-card.monthly {
    border-left-color: #e53e3e;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.frequency {
    background: #374151;
    color: #4fd1c7;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #4fd1c7;
}

/* Parameters Grid */
.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.parameter-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.optimal-range {
    background: #38a169;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

/* Resources */
.resources-grid {
    display: grid;
    gap: 40px;
}

.resource-section {
    background: #2d3748;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.resource-card {
    background: #374151;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.supplier {
    padding: 20px 0;
    border-bottom: 1px solid #4a5568;
    color: #e2e8f0;
}

.supplier:last-child {
    border-bottom: none;
}

.supplier-specialty {
    color: #4fd1c7;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Plant Recommendations */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.plant-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.plant-card.easy {
    background: #2d4a2d;
    border: 2px solid #68d391;
    color: #e2e8f0;
}

.plant-card.medium {
    background: #4a3d2d;
    border: 2px solid #f6e05e;
    color: #e2e8f0;
}

.plant-card.hard {
    background: #4a2d2d;
    border: 2px solid #fc8181;
    color: #e2e8f0;
}

/* Error Pages */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.error-content {
    background: #2d3748;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-suggestions {
    margin-top: 30px;
}

.error-suggestions ul {
    list-style: none;
    text-align: left;
}

.error-suggestions li {
    padding: 8px 0;
}

/* Expandable Sections */
.expandable-section {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.expandable-section:hover {
    border-color: #4fd1c7;
}

.section-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #374151 0%, #2d3748 100%);
    transition: background 0.3s ease;
}

.section-header:hover {
    background: linear-gradient(135deg, #4a5568 0%, #374151 100%);
}

.section-header h3 {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.3rem;
}

.section-toggle {
    font-size: 1.2rem;
    color: #4fd1c7;
    transition: transform 0.3s ease;
}

.section-toggle.expanded {
    transform: rotate(180deg);
}

.section-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.section-content.expanded {
    padding: 25px;
    max-height: 2000px;
    opacity: 1;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.overview-card {
    background: #374151;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.overview-card:hover {
    border-color: #4fd1c7;
    transform: translateY(-2px);
}

.overview-card h4 {
    color: #4fd1c7;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.overview-card p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin: 0;
}

/* Maintenance Page Specific Styles - Force Override */
.maintenance-schedule {
    margin-bottom: 60px;
}

.maintenance-schedule h2 {
    color: #e2e8f0 !important;
    margin-bottom: 30px;
}

/* Force override for schedule cards with maximum specificity */
.maintenance-schedule .schedule-grid .schedule-card,
.schedule-grid .schedule-card,
.schedule-card,
.schedule-card.daily,
.schedule-card.weekly,
.schedule-card.biweekly,
.schedule-card.monthly {
    background: #2d3748 !important;
    background-color: #2d3748 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

/* Ensure schedule header elements are dark */
.schedule-card .schedule-header,
.schedule-card .schedule-header h3,
.schedule-card .frequency {
    color: #e2e8f0 !important;
    background: transparent !important;
}

.schedule-card .frequency {
    background: #374151 !important;
    color: #4fd1c7 !important;
    border: 1px solid #4fd1c7 !important;
}

.schedule-card ul,
.schedule-card li {
    color: #a0aec0 !important;
}

/* Force override for parameter cards with maximum specificity */
.parameters-grid .parameter-card,
.parameter-card {
    background: #2d3748 !important;
    background-color: #2d3748 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

.parameter-card h3 {
    color: #e2e8f0 !important;
}

.parameter-card .optimal-range {
    background: #38a169 !important;
    color: white !important;
}

.parameter-card .param-details,
.parameter-card .param-details p {
    color: #a0aec0 !important;
}

.issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.issue {
    background: #374151;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.issue h4 {
    color: #f56565;
    margin-bottom: 10px;
}

.issue p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.troubleshooting-sections {
    display: grid;
    gap: 40px;
}

.trouble-section {
    background: #2d3748;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #4a5568;
}

.trouble-section h3 {
    color: #e2e8f0;
    margin-bottom: 20px;
}

.cleaning-procedures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.procedure {
    background: #2d3748;
    border-radius: 12px;
    padding: 18px 22px;
    /* improved inner padding for readability */
    border: 1px solid #4a5568;
}

.procedure h3 {
    color: #e2e8f0;
    margin-bottom: 20px;
}

.procedure ol {
    color: #a0aec0;
}

.procedure li {
    margin-bottom: 8px;
}

.param-info {
    color: #e2e8f0;
}

.param-details {
    margin-top: 15px;
}

.param-details p {
    margin-bottom: 10px;
    color: #a0aec0;
}

/* Resources Page Specific Styles - Force Dark Mode */
.resources-grid .resource-section,
.resource-section {
    background: #2d3748 !important;
    background-color: #2d3748 !important;
    border-radius: 12px !important;
    padding: 40px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

.resource-section h2 {
    color: #e2e8f0 !important;
}

.resource-cards .resource-card,
.resource-card {
    background: #374151 !important;
    background-color: #374151 !important;
    border-radius: 8px !important;
    padding: 25px !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

.resource-card h3 {
    color: #e2e8f0 !important;
}

.resource-card ul,
.resource-card li {
    color: #a0aec0 !important;
}

.supplier-grid .supplier-card,
.supplier-card {
    background: #374151 !important;
    background-color: #374151 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

.supplier-card h3 {
    color: #e2e8f0 !important;
    margin-bottom: 20px;
}

.supplier-list {
    color: #e2e8f0 !important;
}

.supplier {
    color: #e2e8f0 !important;
    border-bottom: 1px solid #4a5568 !important;
}

.supplier h4 {
    color: #4fd1c7 !important;
    margin-bottom: 8px;
}

.supplier p {
    color: #a0aec0 !important;
}

.supplier-specialty {
    color: #4fd1c7 !important;
}

.nutrient-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.nutrient-guide .nutrient-card,
.nutrient-card {
    background: #374151 !important;
    background-color: #374151 !important;
    border-radius: 8px !important;
    padding: 25px !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

.nutrient-card h3 {
    color: #4fd1c7 !important;
    margin-bottom: 15px;
}

.nutrient-card ul,
.nutrient-card li {
    margin-bottom: 8px;
    color: #a0aec0 !important;
}

.equipment-recommendations {
    display: grid;
    gap: 30px;
}

.equipment-recommendations .tool-category,
.tool-category {
    background: #374151 !important;
    background-color: #374151 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

.tool-category h3 {
    color: #e2e8f0 !important;
    margin-bottom: 20px;
}

.tool-list {
    display: grid;
    gap: 20px;
}

.tool-list .tool,
.tool {
    background: #2d3748 !important;
    background-color: #2d3748 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

.tool h4 {
    color: #4fd1c7 !important;
    margin-bottom: 8px;
}

.tool p {
    color: #a0aec0 !important;
    margin-bottom: 10px;
}

.price-range {
    background: #374151 !important;
    color: #68d391 !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #68d391 !important;
}

.plant-recommendations {
    display: grid;
    gap: 30px;
}

.plant-recommendations .difficulty-level,
.difficulty-level {
    background: #374151 !important;
    background-color: #374151 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

.difficulty-level h3 {
    color: #e2e8f0 !important;
    margin-bottom: 20px;
}

.plant-grid .plant-card.easy,
.plant-card.easy {
    background: #2d4a2d !important;
    border: 2px solid #68d391 !important;
    color: #e2e8f0 !important;
}

.plant-grid .plant-card.medium,
.plant-card.medium {
    background: #4a3d2d !important;
    border: 2px solid #f6e05e !important;
    color: #e2e8f0 !important;
}

.plant-grid .plant-card.hard,
.plant-card.hard {
    background: #4a2d2d !important;
    border: 2px solid #fc8181 !important;
    color: #e2e8f0 !important;
}

.quick-reference {
    background: #374151 !important;
    background-color: #374151 !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    /* match procedure spacing */
    border: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

/* Lists inside cards/containers */
.procedure ol,
.procedure ul,
.quick-reference ol,
.quick-reference ul {
    padding-left: 1.25rem;
    margin-left: 0;
}

.procedure h3,
.quick-reference h3 {
    margin-top: 0;
}

.reference-card h3 {
    color: #e2e8f0 !important;
    margin-bottom: 20px;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: #2d3748 !important;
    border-radius: 8px;
    border: 1px solid #4a5568 !important;
}

.problem {
    color: #f56565 !important;
    font-weight: 500;
}

.solution {
    color: #68d391 !important;
    font-weight: 500;
}

/* Additional global dark mode enforcements */
* {
    box-sizing: border-box;
}

/* Ensure all background colors stay dark */
.content-section,
.maintenance-schedule,
.troubleshooting-sections,
.trouble-section,
.cleaning-procedures,
.procedure,
.issue-grid,
.issue {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

.trouble-section {
    background: #2d3748 !important;
    border: 1px solid #4a5568 !important;
}

.procedure {
    background: #2d3748 !important;
    border: 1px solid #4a5568 !important;
}

.issue {
    background: #374151 !important;
    border: 1px solid #4a5568 !important;
}

/* Force text colors to be readable in dark mode */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #e2e8f0 !important;
}

p,
li,
span {
    color: #a0aec0 !important;
}

/* Ensure proper contrast for links and interactive elements */
a {
    color: #4fd1c7 !important;
}

a:hover {
    color: #38b2ac !important;
}

/* Override any potential light mode styles */
.bg-white,
.bg-light {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

.text-dark {
    color: #e2e8f0 !important;
}

/* Material Design Footer */
.footer {
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    text-align: center;
    padding: 24px 0;
    margin-top: 48px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    font-size: var(--md-typescale-body-large-size);
    line-height: var(--md-typescale-body-large-line-height);
}

/* Dark Mode Color Scheme Declaration */
:root {
    color-scheme: dark;
}

/* Universal Dark Mode Override - Highest Priority */
*,
*::before,
*::after {
    border-color: #4a5568 !important;
}

/* Force dark backgrounds on all potential light elements */
[style*="background-color: white"],
[style*="background: white"],
[style*="background-color: #fff"],
[style*="background: #fff"],
[style*="background-color: #ffffff"],
[style*="background: #ffffff"],
.white,
.bg-white,
.bg-light {
    background-color: #2d3748 !important;
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

/* Force dark text on all potential light text elements */
[style*="color: black"],
[style*="color: #000"],
[style*="color: #000000"],
.text-dark,
.text-black {
    color: #e2e8f0 !important;
}

/* Comprehensive maintenance page overrides */
.maintenance-schedule *,
.schedule-grid *,
.schedule-card *,
.parameters-grid *,
.parameter-card *,
.troubleshooting-sections *,
.trouble-section *,
.cleaning-procedures *,
.procedure * {
    color: inherit !important;
}

/* Comprehensive resources page overrides */
.resources-grid *,
.resource-section *,
.resource-card *,
.supplier-card *,
.nutrient-card *,
.tool-category *,
.tool *,
.difficulty-level *,
.quick-reference * {
    color: inherit !important;
}

/* Modern Vibrant Global Overrides */
/* Ensure all components follow the new vibrant design */

/* Global Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary) !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5em !important;
}

p,
li,
span,
div {
    color: var(--text-secondary) !important;
    font-family: var(--font-sans) !important;
}

/* Links */
a {
    color: var(--primary) !important;
    transition: color var(--transition-base) !important;
}

a:hover {
    color: var(--primary-light) !important;
}

/* Global Card Styles */
.schedule-card,
.parameter-card,
.resource-section,
.resource-card,
.supplier-card,
.nutrient-card,
.tool-category,
.tool,
.difficulty-level,
.quick-reference,
.trouble-section,
.procedure,
.issue,
.component-card,
.system-type,
.timeline-content,
.expandable-section,
.overview-card,
.issue-card,
.product-card,
.category-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
    transition: all var(--transition-base) !important;
}

.schedule-card:hover,
.parameter-card:hover,
.resource-card:hover,
.component-card:hover,
.system-type:hover,
.overview-card:hover,
.issue-card:hover,
.product-card:hover,
.category-card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-3px) !important;
    border-color: var(--primary) !important;
}

/* Form Elements */
input,
select,
textarea {
    background-color: var(--surface-light) !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-family: var(--font-sans) !important;
    font-size: 15px !important;
    transition: all var(--transition-base) !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* Badges and Labels */
.badge,
.label,
.tag,
.frequency {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

/* Material Design Responsive Breakpoints */
@media (max-width: 599px) {

    /* Mobile */
    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 64px 0;
    }

    .hero-section h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .content-grid,
    .system-types,
    .checklist-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 600px) and (max-width: 839px) {

    /* Tablet */
    .container {
        padding: 0 20px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 840px) {

    /* Desktop */
    .container {
        padding: 0 24px;
    }
}

/* Vibrant Product Styles */
.search-section {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 48px;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-inputs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--surface-light);
    color: var(--text-primary);
    min-width: 250px;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    outline: none;
}

.category-select {
    padding: 14px 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--surface-light);
    color: var(--text-primary);
    min-width: 200px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.category-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    outline: none;
}

.search-btn {
    padding: 14px 28px;
    background: var(--primary);
    color: var(--text-on-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.product-badge.best-price {
    background: rgba(34, 197, 94, 0.15);
    color: #86EFAC;
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: none;
}

@keyframes pulse-bright {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 25px rgba(0, 230, 118, 0.9), var(--shadow-md);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 35px rgba(0, 230, 118, 1), var(--shadow-lg);
    }
}

.product-info {
    padding: 24px;
}

.product-title {
    font-size: 17px;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    font-weight: 600;
}

.product-rating {
    margin-bottom: 16px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.star {
    color: var(--surface-lighter);
    font-size: 16px;
}

.star.filled {
    color: #FCD34D;
    filter: drop-shadow(0 0 3px rgba(252, 211, 77, 0.5));
}

.star.half {
    color: #FCD34D;
    filter: drop-shadow(0 0 3px rgba(252, 211, 77, 0.5));
}

.rating-text {
    margin-left: 8px;
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.product-features ul {
    list-style: none;
    margin-bottom: 20px;
}

.product-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.product-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4fd1c7;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.buy-btn {
    background: var(--primary);
    color: var(--text-on-primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow);
    display: inline-block;
    border: none;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

/* Category Grid Styles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.category-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.best-deal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.12));
    color: #D1FAE5;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.1px;
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.35);
}

.best-deal-badge::before {
    content: '★';
    color: #86EFAC;
    font-size: 12px;
    line-height: 1;
}

.best-deal-badge:hover {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.16));
    border-color: rgba(34, 197, 94, 0.65);
    transform: translateY(-1px);
}

.featured-product {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.product-image-small {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.product-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.product-rating-small {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.product-rating-small .star {
    font-size: 14px;
}

.product-rating-small span {
    color: var(--text-secondary);
    font-size: 14px;
}

.price-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.category-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.view-all-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
    flex: 1;
    text-align: center;
    box-shadow: none;
}

.view-all-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Quick Categories */
.quick-categories {
    margin-top: 60px;
    text-align: center;
}

.component-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 20px;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.category-link:hover {
    border-color: #4fd1c7;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 209, 199, 0.2);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-content {
    background: #2d3748;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #4a5568;
    max-width: 500px;
    margin: 0 auto;
}

.suggestions {
    margin-top: 30px;
}

.suggestions ul {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.suggestions li {
    padding: 5px 0;
    color: #a0aec0;
}

/* Component Section Styles */
.components-sections {
    display: grid;
    gap: 50px;
}

.component-section {
    background: #2d3748;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.component-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.component-header .component-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.component-info {
    flex: 1;
}

.component-info h2 {
    color: #e2e8f0;
    margin-bottom: 10px;
}

.component-info p {
    color: #a0aec0;
    margin: 0;
}

.best-deal-indicator {
    flex-shrink: 0;
}

.best-price-badge {
    background: #ff4757;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 3px 12px rgba(255, 71, 87, 0.5);
    border: 3px solid white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.component-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.component-specs {
    background: #374151;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #4a5568;
}

.component-specs h4 {
    color: #cbd5e0;
    margin-bottom: 15px;
}

.component-specs ul {
    list-style: none;
}

.component-specs li {
    padding: 6px 0;
    color: #a0aec0;
    position: relative;
    padding-left: 20px;
}

.component-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #38b2ac;
    font-weight: bold;
}

.products-showcase h4 {
    color: #e2e8f0;
    margin-bottom: 20px;
}

.products-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-card-small {
    background: #374151;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #4a5568;
    transition: all 0.3s ease;
}

.product-card-small:hover {
    border-color: #4fd1c7;
    transform: translateY(-2px);
}

.product-info-small h5 {
    color: #e2e8f0;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
}

.product-price-small {
    font-size: 1.1rem;
    font-weight: bold;
    color: #38a169;
    margin-bottom: 12px;
}

.buy-btn-small {
    background: #4fd1c7;
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.buy-btn-small:hover {
    background: #38b2ac;
}

/* Products CTA */
.products-cta {
    background: linear-gradient(135deg, #4fd1c7 0%, #38b2ac 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 60px 0;
    color: white;
}

.cta-content h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.cta-content .btn {
    background: white;
    color: #4fd1c7;
}

.cta-content .btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

/* Price highlighting styles */
.lowest-price {
    position: relative;
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 10px !important;
    padding: 6px 10px !important;
}

.lowest-price::after {
    content: none;
}

.price-badge {
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 8px;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

/* Product image loading states */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0.5;
    background: #4a5568;
}

/* Enhanced hover effects for product cards */
.product-card:hover .product-image img,
.product-card-small:hover .product-image-small img {
    transform: scale(1.05);
}

.product-card .product-image img,
.product-card-small .product-image-small img {
    transition: transform 0.3s ease;
}

/* Search form styling enhancements */
.search-input:focus,
.category-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.notification-success {
    background: linear-gradient(135deg, #38a169, #48bb78);
}

.notification-info {
    background: linear-gradient(135deg, #4fd1c7, #38b2ac);
}

.notification-error {
    background: linear-gradient(135deg, #e53e3e, #f56565);
}

/* Loading states */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Simplified for now - you can add mobile menu later */
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .integration-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-item::before {
        display: none;
    }

    /* Mobile product styles */
    .search-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input,
    .category-select {
        min-width: auto;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .component-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .component-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .products-grid-small {
        grid-template-columns: 1fr;
    }

    .featured-product {
        flex-direction: column;
        gap: 15px;
    }

    .product-image-small {
        align-self: center;
        width: 120px;
        height: 120px;
    }

    .category-actions {
        flex-direction: column;
    }

    /* Mobile dark mode enforcement */
    .schedule-card,
    .parameter-card,
    .resource-section,
    .resource-card,
    .product-card,
    .category-card,
    .component-section {
        background-color: #2d3748 !important;
        color: #e2e8f0 !important;
    }
}