/* ========================================================================
   CNH KIT - COMPLETE CSS DESIGN SYSTEM
   Advanced Farming Design System
   Version: 1.0
   ======================================================================== */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ========== CSS VARIABLES - CNH COLORS ========== */
:root {
    /* CNH Brand Colors */
    --cnh-red: #E10600;
    --cnh-black: #000000;
    --cnh-black-2: #111111;
    --cnh-gray-dark: #4D4D4D;
    --cnh-gray: #8A8A8A;
    --cnh-gray-light: #D6D6D6;
    --cnh-white: #FFFFFF;

    /* Secondary Colors */
    --cnh-silver: #CFCFCF;
    --cnh-green: #27AE60;

    /* Gradients */
    --gradient-red: linear-gradient(135deg, var(--cnh-red) 0%, var(--cnh-black) 100%);
    --gradient-red-light: linear-gradient(135deg, #FF2A2A 0%, var(--cnh-red) 100%);
    --gradient-dark: linear-gradient(180deg, #1A1A1A 0%, #0B0B0B 100%);

    /* Light Mode Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #E9ECEF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: rgba(0,0,0,0.1);
    --card-bg: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
}

[data-theme="dark"] {
    --bg-primary: #1A1A1A;
    --bg-secondary: #252525;
    --bg-tertiary: #303030;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-tertiary: #999999;
    --border-color: rgba(255,255,255,0.1);
    --card-bg: #252525;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.45);
    --shadow-md: 0 6px 22px rgba(0,0,0,0.55);
    --shadow-lg: 0 12px 44px rgba(0,0,0,0.60);
}

body {
    font-family: Verdana, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ========== HEADER CNH ========== */
header {
    background: var(--gradient-dark);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--cnh-red);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    flex: 1;
}

.logo-img {
    height: 45px;
    width: auto;
}

.header-divider {
    width: 2px;
    height: 35px;
    background: var(--cnh-red);
    margin: 0 0.75rem;
}

/* ========== LANGUAGE & THEME CONTROLS ========== */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--cnh-red);
    border-color: var(--cnh-red);
    box-shadow: 0 2px 10px rgba(225,6,0,0.4);
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.theme-toggle {
    display: flex;
    gap: 0.3rem;
    background: rgba(255,255,255,0.1);
    padding: 0.25rem;
    border-radius: 20px;
    margin-right: 0.5rem;
}

.theme-btn {
    padding: 0.5rem 0.8rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 16px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.theme-btn.active {
    background: var(--cnh-red);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background: var(--bg-tertiary);
    padding: 0.75rem 2rem;
    margin-top: 4.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--cnh-red);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

/* ========== HERO SECTION ========== */
.hero {
    background: var(--gradient-red);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.spray-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
}

.spray-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
    animation: spray 4s ease-in-out infinite;
}

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

.float-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.2;
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== RED SEPARATOR ========== */
.nh-separator,
.red-separator {
    height: 6px;
    background: var(--gradient-red);
    box-shadow: 0 2px 10px rgba(225,6,0,0.3);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: var(--cnh-red);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========== CARDS ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 6px solid var(--cnh-red);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-left-width: 10px;
}

.card-header {
    background: var(--gradient-red);
    color: white;
    padding: 1rem;
    position: relative;
}

.card-header.gray,
.card-header.silver {
    background: linear-gradient(135deg, #666666 0%, #4A4A4A 100%);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3.5rem;
    font-weight: 900;
    opacity: 0.2;
    line-height: 1;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.card-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--cnh-red);
    font-size: 1.2rem;
}

.card-footer {
    padding: 1.25rem 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-status {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--cnh-green);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--cnh-red);
    color: white;
    border-color: var(--cnh-red);
}

.btn-primary:hover {
    background: var(--cnh-black);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(225,6,0,0.3);
}

.btn-secondary {
    background: var(--cnh-black-2);
    color: white;
    border-color: var(--cnh-black-2);
}

.btn-secondary:hover {
    background: #333;
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--cnh-red);
    border-color: var(--cnh-red);
}

.btn-outline:hover {
    background: var(--cnh-red);
    color: white;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1.2rem 2.4rem;
    font-size: 0.8rem;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.badge-blue,
.badge-red {
    background: var(--cnh-red);
    color: white;
}

.badge-silver,
.badge-gray {
    background: var(--cnh-gray-dark);
    color: white;
}

.badge-gray {
    background: var(--cnh-gray);
    color: white;
}

.badge-success {
    background: var(--cnh-green);
    color: white;
}

.badge-warning {
    background: var(--cnh-gray-dark);
    color: white;
}

.badge-danger {
    background: var(--cnh-black);
    color: white;
}

/* ========== ALERTS ========== */
.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-info {
    background: #D1ECF1;
    border-color: #0C5460;
    color: #0C5460;
}

.alert-success {
    background: #D5F4E6;
    border-color: var(--cnh-green);
    color: #1E8449;
}

.alert-warning {
    background: #FFF3CD;
    border-color: var(--cnh-gray-dark);
    color: #856404;
}

.alert-danger {
    background: #F8D7DA;
    border-color: var(--cnh-red);
    color: var(--cnh-black);
}

[data-theme="dark"] .alert-info {
    background: #1C4A54;
    color: #9DD8E3;
}

[data-theme="dark"] .alert-success {
    background: #1E4D3B;
    color: #7DCEA0;
}

[data-theme="dark"] .alert-warning {
    background: #5C4A2A;
    color: #F9E79F;
}

[data-theme="dark"] .alert-danger {
    background: #5C2A2E;
    color: #F5B7B1;
}

/* ========== STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--cnh-red);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cnh-red);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== TABLES ========== */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.table thead {
    background: var(--cnh-red);
    color: white;
}

.table th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.tab-btn.active {
    color: var(--cnh-red);
    border-bottom-color: var(--cnh-red);
}

.tab-btn:hover {
    color: var(--cnh-red);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

/* ========== ACCORDION ========== */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s;
}

.accordion-header:hover {
    background: var(--bg-secondary);
    color: var(--cnh-red);
}

.accordion-header.active {
    background: var(--cnh-red);
    color: white;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== PROGRESS BARS ========== */
.progress {
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    height: 30px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    transition: width 1s ease;
}

.progress-bar-blue,
.progress-bar-red {
    background: var(--gradient-red);
}

.progress-bar-gray,
.progress-bar-silver {
    background: linear-gradient(90deg, var(--cnh-gray-dark) 0%, var(--cnh-black-2) 100%);
}

/* ========== WIZARD ========== */
.wizard {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.wizard-step .num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.wizard-step.active .num {
    background: var(--cnh-red);
    color: white;
    box-shadow: 0 4px 15px rgba(225,6,0,0.4);
}

.wizard-step .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.wizard-step.active .label {
    color: var(--cnh-red);
}

.wizard-body {
    min-height: 250px;
    padding: 2rem 0;
}

.wizard-panel {
    display: none;
}

.wizard-panel:first-child {
    display: block;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* ========== PROGRESS CARDS ========== */
.progress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pcard {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--cnh-red);
}

.pcard h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.pbar {
    background: var(--bg-tertiary);
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.pbar span {
    display: block;
    height: 100%;
    background: var(--gradient-red);
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pmeta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========== TIMELINE ========== */
.timeline {
    margin: 2rem 0;
}

.timeline-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--cnh-red);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.timeline-item h4 {
    color: var(--cnh-red);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-toggle {
    color: var(--cnh-red);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.timeline-content.active {
    max-height: 300px;
    margin-top: 1rem;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-item {
    padding: 0.75rem 1.2rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
}

.page-item:hover {
    border-color: var(--cnh-red);
    color: var(--cnh-red);
}

.page-item.active {
    background: var(--cnh-red);
    color: white;
    border-color: var(--cnh-red);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.9rem;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cnh-red);
    box-shadow: 0 0 0 3px rgba(225,6,0,0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s;
}

.modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--gradient-red);
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ========== TOAST ========== */
#toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: toastSlideIn 0.3s ease;
    border-left: 4px solid;
}

.toast.success { border-left-color: var(--cnh-green); }
.toast.error { border-left-color: var(--cnh-red); }
.toast.warning { border-left-color: var(--cnh-gray-dark); }
.toast.info { border-left-color: var(--cnh-gray); }

@keyframes toastSlideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== FOOTER ========== */
footer {
    background: var(--gradient-dark);
    color: white;
   
    margin-top: 0.5rem;
    position: relative;
}

.footer-band {
    height: 6px;
    background: var(--gradient-red);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.footer-content {
    max-width: 1400px;
 
}

.footer-grid {
    display: grid;
    
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: auto;
    width: 80px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--cnh-gray-light);
}

.footer-tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cnh-red);
    font-weight: bold;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--cnh-red);
    letter-spacing: 1px;
}

.footer-section a {
    display: block;
    font-size: 0.9rem;
    color: var(--cnh-gray-light);
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--cnh-gray);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-content,
    .breadcrumb,
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .wizard-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========== VÍDEO CONTAINER ========== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== VÍDEO COM THUMBNAIL ========== */
.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(225,6,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.video-wrapper:hover .video-play-btn {
    background: var(--cnh-red);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========== GALERIA DE IMAGENS ========== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(225,6,0,0.9), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gallery-description {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ========== CAROUSEL ========== */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(225,6,0,0.9), transparent);
    color: white;
    padding: 2rem;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-btn {
    background: rgba(225,6,0,0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--cnh-red);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ========== CALCULADORA ========== */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calculator-btn {
    min-height: 60px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.2s;
}

.calculator-btn:active {
    transform: scale(0.95);
}

.btn-danger {
    background: var(--cnh-red);
    color: white;
    border-color: var(--cnh-red);
}

.btn-danger:hover {
    background: var(--cnh-black);
}

/* ========== QUIZ ========== */
.quiz-option {
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(225,6,0,0.2);
}

.quiz-option.correct {
    background: #D5F4E6 !important;
    border-color: #27AE60 !important;
}

.quiz-option.incorrect {
    background: #FADBD8 !important;
    border-color: var(--cnh-red) !important;
}

/* ========== GRÁFICOS DE BARRAS CSS ========== */
.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding: 2rem 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    gap: 1rem;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.bar {
    background: var(--gradient-red);
    border-radius: 8px 8px 0 0;
    width: 100%;
    max-width: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(225,6,0,0.2);
}

.bar-value {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* ========== MAPA ========== */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== SPINNER ========== */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--cnh-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== SKELETON LOADER ========== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-title {
    height: 24px;
    width: 60%;
}

.skeleton-text {
    height: 16px;
    width: 100%;
}

@keyframes loading {
    to { background-position: 200% 0; }
}

/* ========== TOOLTIP ========== */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background: var(--cnh-black-2);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 0.875rem;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--cnh-black-2) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ========== CALC ADORA ADICIONAL ========== */
.calculator {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-display {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: bold;
    text-align: right;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.calc-btn {
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.calc-btn:active {
    transform: scale(0.95);
}

.calc-clear {
    background: var(--cnh-gray-dark);
    color: white;
    border-color: var(--cnh-gray-dark);
}

.calc-clear:hover {
    background: var(--cnh-gray);
}

.calc-operator {
    background: var(--cnh-black-2);
    color: white;
    border-color: var(--cnh-black-2);
}

.calc-operator:hover {
    background: #333;
}

.calc-equals {
    background: var(--cnh-red);
    color: white;
    border-color: var(--cnh-red);
}

.calc-equals:hover {
    background: var(--cnh-black);
}

/* ========== QUIZ ADICIONAL ========== */
.quiz {
    padding: 1rem;
}

.quiz-question {
    margin-bottom: 1.5rem;
}

.quiz-question h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    border-color: var(--cnh-red);
    background: var(--bg-secondary);
}

.quiz-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.quiz-option.selected .quiz-radio {
    background: var(--cnh-red);
    border-color: var(--cnh-red);
}

.quiz-feedback {
    margin-top: 1rem;
}

/* ========== CAROUSEL CONTAINER ========== */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(225,6,0,0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-control:hover {
    background: var(--cnh-red);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 1rem;
}

.carousel-control.next {
    right: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ========== CSS BAR CHARTS ========== */
.css-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 250px;
    padding: 2rem 1rem 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    gap: 1rem;
}

.css-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.css-bar {
    width: 100%;
    max-width: 60px;
    background: var(--bg-tertiary);
    border-radius: 8px 8px 0 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.css-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-red);
    border-radius: 8px 8px 0 0;
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from { height: 0; }
}

.css-bar-value {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    position: absolute;
    top: 0.5rem;
    z-index: 1;
}

.css-bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* ========== PLAY BUTTON ========== */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(225,6,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.video-wrapper:hover .play-button,
.video-thumbnail:hover .play-button {
    background: var(--cnh-red);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========== SKELETON LOADER ADICIONAL ========== */
.skeleton-loader {
    padding: 1rem;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-box {
    height: 100px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========== 1. DATA TABLE AVANÇADA ========== */
.advanced-table-wrapper {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-controls {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.table-search {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.table-search:focus {
    outline: none;
    border-color: var(--cnh-red);
}

.advanced-table {
    width: 100%;
    border-collapse: collapse;
}

.advanced-table thead {
    background: var(--gradient-red);
    color: white;
}

.advanced-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.advanced-table th:hover {
    background: rgba(0,0,0,0.1);
}

.advanced-table th.sortable::after {
    content: '⇅';
    margin-left: 0.5rem;
    opacity: 0.5;
}

.advanced-table th.sort-asc::after {
    content: '▲';
    opacity: 1;
}

.advanced-table th.sort-desc::after {
    content: '▼';
    opacity: 1;
}

.advanced-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.advanced-table tbody tr:hover {
    background: var(--bg-secondary);
}

.advanced-table tbody tr.selected {
    background: rgba(225,6,0,0.1);
}

.advanced-table td {
    padding: 1rem;
}

.table-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--cnh-red);
}

.table-actions {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========== 2. CALENDAR / DATE PICKER ========== */
.calendar-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    max-width: 400px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.calendar-nav button:hover {
    background: var(--cnh-red);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled) {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.calendar-day.today {
    border-color: var(--cnh-red);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--cnh-red);
    color: white;
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========== 3. RANGE SLIDER DUPLO ========== */
.range-slider-container {
    padding: 2rem 1rem;
}

.range-slider-wrapper {
    position: relative;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin: 2rem 0;
}

.range-slider-track {
    position: absolute;
    height: 100%;
    background: var(--gradient-red);
    border-radius: 3px;
}

.range-slider-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--cnh-red);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.range-slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.range-slider-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.95);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.range-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.range-value label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.range-value span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cnh-red);
}

/* ========== 4. LIGHTBOX / GALLERY MODAL ========== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--cnh-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: scale(1.1);
    background: white;
    color: var(--cnh-red);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(225,6,0,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: var(--cnh-red);
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-counter {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* ========== 5. FILE UPLOAD COM PREVIEW ========== */
.file-upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area.dragover {
    border-color: var(--cnh-red);
    background: rgba(225,6,0,0.05);
}

.file-upload-area:hover {
    border-color: var(--cnh-red);
}

.file-upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.file-upload-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.file-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
    aspect-ratio: 1;
}

.file-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    background: var(--cnh-red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.file-preview-remove:hover {
    transform: scale(1.1);
}

/* ========== 6. SIDEBAR RETRÁTIL ========== */
.demo-sidebar {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 300px;
    transition: all 0.3s;
}

.demo-sidebar.collapsed {
    max-width: 60px;
}

.sidebar-header-demo {
    padding: 1.5rem;
    background: var(--gradient-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header-demo h3 {
    margin: 0;
    font-size: 1.1rem;
}

.sidebar-toggle-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-toggle-btn:hover {
    background: rgba(255,255,255,0.3);
}

.sidebar-menu-demo {
    padding: 1rem 0;
}

.sidebar-item-demo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sidebar-item-demo:hover {
    background: var(--bg-secondary);
    border-left: 4px solid var(--cnh-red);
}

.sidebar-item-demo.active {
    background: rgba(225,6,0,0.1);
    border-left: 4px solid var(--cnh-red);
    color: var(--cnh-red);
    font-weight: 600;
}

.sidebar-icon-demo {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sidebar-text {
    opacity: 1;
    transition: opacity 0.3s;
}

.demo-sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.demo-sidebar.collapsed .sidebar-header-demo h3 {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* ========== 7. RATING SYSTEM ========== */
.rating-container-demo {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.rating-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 2rem;
}

.star {
    cursor: pointer;
    color: #CCCCCC;
    transition: all 0.2s;
    user-select: none;
}

.star:hover,
.star.active {
    color: #FFD700;
    transform: scale(1.1);
}

.rating-value {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.rating-readonly .star {
    cursor: default;
}

.rating-readonly .star:hover {
    transform: none;
}

/* ========== 8. NOTIFICATION CENTER ========== */
.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 2rem;
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--cnh-red);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s ease infinite;
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 380px;
    max-width: 90vw;
    max-height: 500px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.notification-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.notification-header {
    padding: 1rem 1.5rem;
    background: var(--gradient-red);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: rgba(225,6,0,0.05);
    border-left: 4px solid var(--cnh-red);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ========== 9. SEARCH COM AUTOCOMPLETE ========== */
.search-autocomplete {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--cnh-red);
    box-shadow: 0 0 0 3px rgba(225,6,0,0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--bg-secondary);
}

.autocomplete-item mark {
    background: rgba(225,6,0,0.2);
    color: var(--cnh-red);
    font-weight: 600;
    padding: 0 2px;
}

.autocomplete-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* ========== 10. GAUGE / MEDIDOR ========== */
.gauge-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.gauge-svg {
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 20;
}

.gauge-progress {
    fill: none;
    stroke: url(#gaugeGradient);
    stroke-width: 20;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cnh-red);
    line-height: 1;
}

.gauge-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}


/* ==================== COMPONENTES ESPECÍFICOS AGRO ==================== */

/* ========== WEATHER WIDGET ========== */
.weather-widget {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.weather-icon-main {
    font-size: 5rem;
}

.weather-temp {
    flex: 1;
}

.weather-temp-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--cnh-red);
    line-height: 1;
}

.weather-temp-unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.weather-condition {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.weather-detail-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.weather-detail-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.weather-forecast-day {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s;
}

.weather-forecast-day:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.weather-forecast-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.weather-forecast-icon {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.weather-forecast-temp {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== EQUIPMENT STATUS DASHBOARD ========== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.equipment-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.equipment-card-header {
    padding: 1.5rem;
    background: var(--gradient-red);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.equipment-card-header.online {
    background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%);
}

.equipment-card-header.maintenance {
    background: linear-gradient(135deg, #F39C12 0%, #D68910 100%);
}

.equipment-card-header.offline {
    background: linear-gradient(135deg, #666666 0%, #4A4A4A 100%);
}

.equipment-icon {
    font-size: 2.5rem;
}

.equipment-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    animation: pulse 2s ease infinite;
}

.equipment-card-body {
    padding: 1.5rem;
}

.equipment-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.equipment-model {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.equipment-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.equipment-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.equipment-stat-label {
    color: var(--text-secondary);
}

.equipment-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== HARVEST/YIELD CALCULATOR ========== */
.yield-calculator {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.calc-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.calc-input-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--cnh-red);
}

.calc-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.calc-results {
    display: none;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--cnh-red);
}

.calc-results.active {
    display: block;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.calc-result-item:last-child {
    border-bottom: none;
}

.calc-result-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.calc-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cnh-red);
}

/* ========== TIMELINE DE SAFRA ========== */
.harvest-timeline {
    position: relative;
    padding: 2rem 0;
}

.harvest-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-red);
    transform: translateX(-50%);
}

.timeline-event {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-event:nth-child(odd) {
    flex-direction: row;
}

.timeline-event:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 2rem);
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 0 4px var(--card-bg), 0 0 0 8px var(--cnh-red);
    z-index: 10;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--cnh-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========== COMPARISON CHART (SIDE-BY-SIDE) ========== */
.comparison-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-header {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.comparison-header-cell {
    background: var(--gradient-red);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.comparison-header-cell:first-child {
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: left;
}

.comparison-body {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.comparison-row {
    display: contents;
}

.comparison-cell {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison-cell:first-child {
    justify-content: flex-start;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.comparison-highlight {
    color: var(--cnh-red);
    font-weight: 700;
}

.comparison-checkmark {
    color: #27AE60;
    font-size: 1.5rem;
}

/* ========== INTERACTIVE MAP COM PINS ========== */
.interactive-map-container {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-canvas {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    position: relative;
}

.map-pin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--cnh-red);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(225,6,0,0.3);
}

.map-pin::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-pin:hover {
    transform: rotate(-45deg) scale(1.2);
    z-index: 100;
}

.map-pin.tractor { top: 30%; left: 25%; }
.map-pin.harvester { top: 45%; left: 60%; }
.map-pin.sprayer { top: 70%; left: 35%; }
.map-pin.field { top: 20%; left: 70%; background: #27AE60; }

.map-popup {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.map-popup.active {
    display: block;
}

.map-popup-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.map-popup-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.map-legend-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.map-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.map-filters {
    padding: 1rem;
    background: var(--bg-secondary);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
}

.map-filter-btn {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.map-filter-btn.active {
    background: var(--cnh-red);
    color: white;
    border-color: var(--cnh-red);
}

.map-filter-btn:hover {
    border-color: var(--cnh-red);
}

@media (max-width: 768px) {
    .harvest-timeline::before {
        left: 30px;
    }
    
    .timeline-event {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .comparison-header,
    .comparison-body {
        grid-template-columns: 1fr;
    }
    
    .comparison-header-cell:first-child,
    .comparison-cell:first-child {
        display: none;
    }
}


/* ==================== CNH SPECIFIC HEADER/FOOTER STYLES ==================== */

/* CNH Header Override */
header {
    background: var(--bg-primary);
    border-bottom: 8px solid var(--cnh-red);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

/* Header Top Bar */
.header-top {
    background: var(--cnh-black);
    padding: 8px 0;
}

.header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-tagline {
    color: var(--cnh-gray-30);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-toggle-header {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 20px;
}

.theme-btn-header {
    background: transparent;
    border: none;
    color: var(--cnh-gray-30);
    padding: 6px 14px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.theme-btn-header.active {
    background: var(--cnh-red);
    color: var(--cnh-white);
}

.lang-switcher-header {
    display: flex;
    gap: 8px;
}

.lang-btn-header {
    background: transparent;
    border: 1px solid var(--cnh-gray-60);
    color: var(--cnh-white);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lang-btn-header:hover,
.lang-btn-header.active {
    background: var(--cnh-red);
    border-color: var(--cnh-red);
}

.flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.header-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cnh-logo {
    height: 50px;
}

.header-divider {
    width: 2px;
    height: 40px;
    background: var(--cnh-red);
}

.system-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-main {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-main a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--cnh-red);
    border-bottom-color: var(--cnh-red);
}

/* CNH Band Separator */
.cnh-band-separator {
    height: 12px;
    background: linear-gradient(90deg, var(--cnh-red) 0%, var(--cnh-black) 100%);
}

/* Hero Variant 2 (CNH Style) */
.hero-variant2 {
    position: relative;
    background: linear-gradient(135deg, var(--cnh-black) 0%, var(--cnh-red) 100%);
    padding: 80px 40px;
    overflow: hidden;
}

.hero-variant2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.15;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-content-variant2 {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-text-variant2 {
    color: var(--cnh-white);
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--cnh-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title-variant2 {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-subtitle-variant2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--cnh-gray-30);
}

.hero-description-variant2 {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Footer CNH */
footer {
    background: var(--cnh-black);
    color: var(--cnh-white);
    position: relative;
}

.footer-band {
    height: 8px;
    background: linear-gradient(90deg, var(--cnh-red) 0%, var(--cnh-black) 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 40px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 10px;
}

.footer-description {
    font-size: 13px;
    line-height: 1.8;
    color: var(--cnh-gray-30);
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cnh-red);
    font-weight: bold;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--cnh-red);
    letter-spacing: 1px;
}

.footer-section a {
    display: block;
    font-size: 12px;
    color: var(--cnh-gray-30);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer-section a:hover {
    color: var(--cnh-white);
    padding-left: 10px;
}

.footer-section p {
    font-size: 12px;
    color: var(--cnh-gray-30);
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--cnh-gray-60);
    padding-top: 30px;
    text-align: center;
    font-size: 11px;
    color: var(--cnh-gray-60);
}

/* CNH Specific Variables */
:root {
    --cnh-red: #C3231E;
    --cnh-black: #000000;
    --cnh-gray-60: #9B9B9B;
    --cnh-gray-30: #C8C8C8;
    --cnh-white: #FFFFFF;
}

/* Main Container for Components */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.component-section {
    margin-bottom: 5rem;
}

.section-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.demo-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.component-demo {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* All existing sections styling */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.9rem;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: Verdana, sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cnh-red);
    box-shadow: 0 0 0 3px rgba(195,35,30,0.1);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--cnh-red);
}

.card-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.card-badge-success {
    background: #27AE60;
    color: white;
}

.card-badge-warning {
    background: #F39C12;
    color: white;
}

.card-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.card-stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--cnh-red);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Button Variants */
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    border-color: var(--cnh-red);
    color: var(--cnh-red);
}

.btn-success {
    background: #27AE60;
    color: white;
    border-color: #27AE60;
}

.btn-success:hover {
    background: #1E8449;
}

.btn-warning {
    background: #F39C12;
    color: white;
    border-color: #F39C12;
}

.btn-warning:hover {
    background: #D68910;
}

.btn-md {
    padding: 0.9rem 1.8rem;
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Tabs */
.tabs-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tabs-header {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.tab-button.active {
    color: var(--cnh-red);
    border-bottom-color: var(--cnh-red);
    background: var(--card-bg);
}

.tab-button:hover {
    color: var(--cnh-red);
}

.tabs-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.spec-list {
    list-style: none;
    padding: 0;
}

.spec-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.spec-list li:last-child {
    border-bottom: none;
}

/* Accordion */
.accordion-item {
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    background: transparent;
    border: none;
    text-align: left;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: var(--bg-secondary);
    color: var(--cnh-red);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-content.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Modal Variants */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}

.modal-sm {
    max-width: 400px;
}

/* Alerts */
.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert {
    position: relative;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.alert-close:hover {
    opacity: 1;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Progress */
.progress-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C3231E 0%, #000000 100%);
    transition: width 1s ease;
    border-radius: 20px;
}

.progress-fill-striped {
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%,
        transparent 75%,
        transparent
    ),
    linear-gradient(90deg, #C3231E 0%, #000000 100%);
    background-size: 1rem 1rem, 100% 100%;
    animation: stripes 1s linear infinite;
}

@keyframes stripes {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 1rem 0, 0 0; }
}

.progress-fill-success {
    background: linear-gradient(90deg, #27AE60 0%, #1E8449 100%);
}

/* Spinner Group */
.spinner-group {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.spinner-sm {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.spinner-lg {
    width: 70px;
    height: 70px;
    border-width: 5px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item:hover {
    color: var(--cnh-red);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

/* Badges */
.badge-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge-primary {
    background: var(--cnh-red);
    color: white;
}

.badge-info {
    background: #3498DB;
    color: white;
}

.badge-dark {
    background: var(--cnh-black);
    color: white;
}

/* Chips */
.chip-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.chip-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.chip-remove:hover {
    background: var(--cnh-red);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1.2rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--cnh-red);
    color: var(--cnh-red);
}

.pagination-btn.active {
    background: var(--cnh-red);
    color: white;
    border-color: var(--cnh-red);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: var(--text-secondary);
}

/* Dropdown */
.dropdown-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item-danger {
    color: #E74C3C;
}

.dropdown-item-danger:hover {
    background: rgba(231,76,60,0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #C3231E 0%, #000000 100%);
    color: white;
}

.data-table th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Steppers */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.stepper-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.stepper-item.active .stepper-number,
.stepper-item.completed .stepper-number {
    background: var(--cnh-red);
    color: white;
    box-shadow: 0 4px 15px rgba(195,35,30,0.4);
}

.stepper-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}

.stepper-item.active .stepper-label {
    color: var(--cnh-red);
}

.stepper-line {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    margin: 0 1rem;
    position: relative;
    top: -25px;
}

.stepper-line.completed {
    background: var(--cnh-red);
}

/* Range Sliders */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.slider-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--cnh-red);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(195,35,30,0.3);
    transition: all 0.3s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--cnh-red);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(195,35,30,0.3);
    transition: all 0.3s;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Switches */
.switch-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.switch-input {
    position: absolute;
    opacity: 0;
}

.switch-slider {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    background: var(--bg-tertiary);
    border-radius: 30px;
    transition: background 0.3s;
}

.switch-slider::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-input:checked + .switch-slider {
    background: var(--cnh-red);
}

.switch-input:checked + .switch-slider::after {
    transform: translateX(26px);
}

.switch-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Timeline */
.timeline-item {
    position: relative;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cnh-red);
    position: absolute;
    left: -8px;
    top: 0;
}

.timeline-item.active .timeline-marker {
    animation: pulse 2s ease infinite;
}

.timeline-item.upcoming {
    opacity: 0.6;
}

.timeline-item.upcoming .timeline-marker {
    background: var(--bg-tertiary);
}

.timeline-content {
    margin-left: 1.5rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--cnh-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Carousel */
.carousel {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.carousel-inner {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    display: none;
    padding: 3rem 2rem;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(195,35,30,0.1) 0%, transparent 100%);
}

.carousel-item.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    text-align: center;
    max-width: 600px;
}

.carousel-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.carousel-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(195,35,30,0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--cnh-red);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Video Player */
.video-player {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-wrapper {
    position: relative;
    background: #000;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: rgba(195,35,30,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.video-play-button:hover {
    background: var(--cnh-red);
    transform: scale(1.1);
}

.video-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: white;
}

.video-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    font-size: 1rem;
    opacity: 0.9;
}

.video-controls {
    padding: 1rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-control-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.video-control-btn:hover {
    color: var(--cnh-red);
}

.video-progress {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.video-progress-bar {
    width: 30%;
    height: 100%;
    background: var(--cnh-red);
    border-radius: 3px;
}

.video-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 80px;
    text-align: center;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, rgba(195,35,30,0.1) 0%, transparent 100%);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.875rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Pricing Tables */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    border: 3px solid var(--cnh-red);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--cnh-red);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    background: var(--bg-secondary);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--cnh-red);
    font-weight: 700;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--cnh-red);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 2rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card button {
    margin: 0 2rem 2rem;
}

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(195,35,30,0.1) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-info {
    text-align: center;
    padding: 2rem;
}

.map-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.map-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Loading States */
.loading-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.loading-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
}

.skeleton-text:last-of-type {
    width: 80%;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    margin-top: 1rem;
    border-radius: 6px;
}

.skeleton-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.skeleton-image {
    height: 200px;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* Tooltips */
.tooltip-demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--cnh-black);
    color: white;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 0.5rem;
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--cnh-black);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: -6px;
    z-index: 1000;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
}

[data-tooltip-position="right"]::before {
    left: 100%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin-left: 0.5rem;
    margin-bottom: 0;
}

[data-tooltip-position="right"]::after {
    left: 100%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--cnh-black);
    border-top-color: transparent;
    margin-left: -6px;
    margin-bottom: 0;
}

[data-tooltip-position="left"]::before {
    left: auto;
    right: 100%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin-right: 0.5rem;
    margin-bottom: 0;
}

[data-tooltip-position="left"]::after {
    left: auto;
    right: 100%;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--cnh-black);
    border-top-color: transparent;
    margin-right: -6px;
    margin-bottom: 0;
}

/* Advanced Table */
.advanced-table-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-header {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.data-table-advanced {
    width: 100%;
}

.data-table-advanced th.sortable {
    cursor: pointer;
    user-select: none;
}

.sort-icon {
    margin-left: 0.5rem;
    opacity: 0.5;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s;
}

.btn-icon:hover {
    color: var(--cnh-red);
}

.table-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Calendar */
.calendar-month {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: var(--cnh-red);
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid transparent;
}

.calendar-day:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.calendar-day-today {
    border-color: var(--cnh-red);
    font-weight: 700;
}

.calendar-day-selected {
    background: var(--cnh-red);
    color: white;
}

.calendar-day-other {
    opacity: 0.3;
}

/* Dual Range Slider */
.dual-range-container {
    padding: 2rem 1rem;
}

.dual-range-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.dual-range-slider {
    position: relative;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin: 2rem 0;
}

.dual-range-track {
    position: absolute;
    height: 100%;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.dual-range-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #C3231E 0%, #000000 100%);
    border-radius: 3px;
}

.dual-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    pointer-events: none;
}

.dual-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Lightbox */
.lightbox-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.lightbox-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.lightbox-thumb:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.lightbox-thumb-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(195,35,30,0.1) 0%, transparent 100%);
}

/* File Upload */
.file-upload-container {
    width: 100%;
}

.file-upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: var(--cnh-red);
    background: rgba(195,35,30,0.05);
}

.file-upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.file-upload-area h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.file-upload-area p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.file-upload-list {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* Sidebar Demo */
.sidebar-demo {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
}

.sidebar {
    width: 280px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    transition: width 0.3s;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #C3231E 0%, #000000 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s;
}

.sidebar.collapsed .sidebar-header h3 {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.sidebar-link:hover {
    background: var(--bg-secondary);
    border-left: 4px solid var(--cnh-red);
}

.sidebar-link.active {
    background: rgba(195,35,30,0.1);
    border-left: 4px solid var(--cnh-red);
    color: var(--cnh-red);
    font-weight: 600;
}

.sidebar-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sidebar-text {
    transition: opacity 0.3s;
}

.sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-content {
    flex: 1;
    padding: 2rem;
}

/* Rating System */
.rating-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 2rem;
    color: #CCCCCC;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.star.active {
    color: #FFD700;
}

.star.half {
    background: linear-gradient(90deg, #FFD700 50%, #CCCCCC 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars.interactive .star:hover {
    transform: scale(1.1);
}

.rating-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Notification Center */
.notification-center {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 400px;
}

.notification-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #C3231E 0%, #000000 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.notification-badge {
    background: white;
    color: var(--cnh-red);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 1rem;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: rgba(195,35,30,0.05);
    border-left: 4px solid var(--cnh-red);
}

.notification-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.notification-icon-info { color: #3498DB; }
.notification-icon-warning { color: #F39C12; }
.notification-icon-success { color: #27AE60; }
.notification-icon-default { color: var(--text-secondary); }

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.notification-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    text-align: center;
}

.notification-footer a {
    color: var(--cnh-red);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Search Autocomplete */
.search-autocomplete-container {
    position: relative;
    max-width: 500px;
}

.search-autocomplete-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: Verdana, sans-serif;
    transition: all 0.3s;
}

.search-autocomplete-input:focus {
    outline: none;
    border-color: var(--cnh-red);
    box-shadow: 0 0 0 3px rgba(195,35,30,0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.search-result-group {
    padding: 0.5rem 0;
}

.search-result-label {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Gauge */
.gauge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.gauge {
    width: 100%;
    max-width: 200px;
}

.gauge-background {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 20;
}

.gauge-fill {
    fill: none;
    stroke: var(--cnh-red);
    stroke-width: 20;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.gauge-value {
    font-size: 2.5rem;
    font-weight: 700;
    fill: var(--cnh-red);
    text-anchor: middle;
}

.gauge-label {
    font-size: 0.875rem;
    fill: var(--text-secondary);
    text-anchor: middle;
}

/* AGRO Components - Additional Styles */
.weather-widget {
    max-width: 600px;
    margin: 0 auto;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.weather-icon {
    font-size: 5rem;
}

.weather-temp {
    font-size: 4rem;
    font-weight: 700;
    color: var(--cnh-red);
}

.weather-location {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.weather-detail-item {
    text-align: center;
}

.weather-detail-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.weather-detail-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.weather-detail-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.weather-detail-value.ideal {
    color: #27AE60;
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.forecast-day {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s;
}

.forecast-day:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.forecast-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.forecast-icon {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.forecast-temp {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Equipment Dashboard */
.equipment-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.equipment-card-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.equipment-card-title h3 {
    margin: 0;
    font-size: 1.25rem;
}

.status-online {
    color: #27AE60;
}

.status-maintenance {
    color: #F39C12;
}

.status-offline {
    color: #666666;
}

/* Timeline Harvest Specific */
.timeline-item-harvest {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item-left {
    justify-content: flex-end;
}

.timeline-item-right {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.timeline-content-harvest {
    width: calc(50% - 3rem);
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.timeline-content-harvest:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.timeline-date-harvest {
    font-size: 0.875rem;
    color: var(--cnh-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content-harvest h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content-harvest p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
    display: grid;
    grid-template-rows: auto;
    gap: 1px;
    background: var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.comparison-header {
    background: transparent;
}

.comparison-cell {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
}

.comparison-header .comparison-cell {
    background: linear-gradient(135deg, #C3231E 0%, #000000 100%);
    color: white;
    font-weight: 700;
}

.comparison-header .comparison-cell:first-child {
    background: var(--bg-secondary);
    color: var(--text-primary);
    justify-content: flex-start;
}

.comparison-row .comparison-cell:first-child {
    justify-content: flex-start;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.comparison-cell.featured {
    background: rgba(195,35,30,0.05);
}

.comparison-cell.highlighted {
    color: var(--cnh-red);
    font-weight: 700;
}

/* Interactive Map */
.map-legend {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.map-legend h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.map-filters {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 10;
}

.map-canvas {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    position: relative;
}

.map-pin {
    position: absolute;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s;
}

.pin-icon {
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-pin.tractor .pin-icon::before {
    content: '📍';
    color: var(--cnh-red);
}

.map-pin:hover {
    transform: scale(1.2);
    z-index: 100;
}

.map-popup {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.map-popup.active {
    display: block;
}

.popup-header {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.popup-body p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.popup-close:hover {
    background: var(--bg-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
   
}

@media (max-width: 768px) {
    .header-top-content,
    .header-main {
        padding: 0 20px;
    }

    .hero-variant2 {
        padding: 60px 30px;
    }

    .hero-title-variant2 {
        font-size: 28px;
    }

    .main-container {
        padding: 2rem 1rem;
    }

    .weather-forecast {
        grid-template-columns: repeat(3, 1fr);
    }

    .equipment-dashboard {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .timeline-item-harvest {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }

    .timeline-content-harvest {
        width: 100%;
    }

    .harvest-timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px !important;
        transform: none !important;
    }
}

/* ========================================================================
   GLOBAL UI POLISH OVERRIDES (2026-06)
   Improves cross-page readability, spacing rhythm, forms, tables and focus
   ======================================================================== */

:root {
    --ui-radius-sm: 10px;
    --ui-radius-md: 14px;
    --ui-radius-lg: 18px;
    --ui-space-1: 0.25rem;
    --ui-space-2: 0.5rem;
    --ui-space-3: 0.75rem;
    --ui-space-4: 1rem;
    --ui-space-5: 1.25rem;
    --ui-space-6: 1.5rem;
    --ui-space-8: 2rem;
    --ui-focus-ring: 0 0 0 3px rgba(225, 6, 0, 0.22);
    --ui-focus-border: rgba(225, 6, 0, 0.55);
}

html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4 {
    line-height: 1.22;
    letter-spacing: -0.01em;
}

p,
li,
label,
input,
select,
textarea,
button {
    font-size: 0.95rem;
}

a {
    text-underline-offset: 2px;
}

a,
button,
input,
select,
textarea,
.btn,
.tab-button,
.sim-link,
.nav-main a {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

:focus-visible {
    outline: none;
    box-shadow: var(--ui-focus-ring);
    border-color: var(--ui-focus-border) !important;
}

.main-container,
.container {
    max-width: 1460px;
}

.cards-grid,
.stats-grid,
.toolbar,
.button-group,
.card-stats {
    gap: clamp(0.75rem, 1.8vw, 1.35rem);
}

.card,
.stat-card,
.content-card,
.card-body,
.advanced-table-wrapper,
.table-container,
.data-table-card,
.settings-card,
.modal-content {
    border-radius: var(--ui-radius-md);
}

.card,
.stat-card,
.content-card,
.data-table-card,
.settings-card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.card:hover,
.stat-card:hover,
.content-card:hover,
.data-table-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn,
button,
input[type="button"],
input[type="submit"] {
    min-height: 40px;
    border-radius: var(--ui-radius-sm);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn:disabled,
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.form-input,
.form-select,
.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea,
select,
.search-input,
.table-search,
.search-autocomplete-input {
    min-height: 42px;
    border-radius: var(--ui-radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}

textarea {
    min-height: 110px;
    line-height: 1.5;
}

.table,
.data-table,
.advanced-table,
.data-table-advanced {
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td,
.data-table th,
.data-table td,
.advanced-table th,
.advanced-table td,
.data-table-advanced th,
.data-table-advanced td {
    padding: 0.78rem 0.85rem;
    vertical-align: middle;
}

.table thead th,
.data-table thead th,
.advanced-table thead th,
.data-table-advanced thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even),
.advanced-table tbody tr:nth-child(even),
.data-table-advanced tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--bg-secondary) 55%, transparent);
}

.table tbody tr:hover,
.data-table tbody tr:hover,
.advanced-table tbody tr:hover,
.data-table-advanced tbody tr:hover {
    background: color-mix(in srgb, var(--cnh-red) 7%, var(--bg-primary));
}

.card-title,
.stat-label,
.form-label,
.table th,
.data-table th,
.advanced-table th {
    letter-spacing: 0.01em;
}

.card-description,
.card-subtitle,
.muted,
.text-muted {
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .main-container,
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .table th,
    .table td,
    .data-table th,
    .data-table td,
    .advanced-table th,
    .advanced-table td,
    .data-table-advanced th,
    .data-table-advanced td {
        padding: 0.7rem 0.65rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: clamp(1.35rem, 5.8vw, 1.85rem); }
    h2 { font-size: clamp(1.15rem, 5vw, 1.5rem); }

    .btn,
    button,
    input[type="button"],
    input[type="submit"] {
        min-height: 42px;
    }

    .toolbar,
    .button-group,
    .form-row {
        gap: 0.65rem;
    }

    .mobile-stack,
    .button-group.mobile-stack {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nav-main {
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .nav-main a {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
