:root {
    /* Primary Colors - Modern Agri Theme */
    --primary: #166534;
    /* Forest Green */
    --primary-hover: #14532d;
    --primary-blue: #0066FF;
    /* Sky Blue for As Fed */
    --primary-blue-hover: #005ce6;
    --primary-cvb: #9333ea;
    /* Purple for CVB Data */
    --secondary: #eab308;
    /* Golden Yellow */
    --accent: #ca8a04;

    /* Light Theme Palette */
    --background: #f8fafc;
    /* Very light slate */
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --surface-glass: rgba(255, 255, 255, 0.95);

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Borders & Dividers */
    --border: rgba(0, 0, 0, 0.1);
    --border-bright: rgba(0, 0, 0, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Typography Gradient */
.text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Base Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--surface);
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Feedsoft Excel-like Table styles */
.feedsoft-table {
    font-size: 0.78rem;
}

.feedsoft-table th {
    padding: 0.35rem 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.72rem;
    border-bottom: 2px solid var(--border-bright);
    white-space: nowrap;
}

.feedsoft-table td {
    padding: 0.28rem 0.5rem;
    border-bottom: 1px solid var(--border);
}

.table-input {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    border-radius: 0.25rem;
    outline: none;
    transition: all 0.2s;
}

.table-input:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--border-bright);
}

.table-input:focus {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

/* Tab UI for Edit Profile Modal */
.nutrient-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-bright);
    margin-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.nutrient-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    /* Pull down to overlap the container border */
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.2s ease;
}

.tab-pane.active {
    display: block;
}