/* ==========================================================================
   SmartFarm Design System 2026 - Linear & Apple Inspired Minimalist AgTech
   ========================================================================== */

:root {
    /* Pure Modern Backgrounds */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-hover: #f8fafc;
    
    /* Modern Hairline & Focus Borders */
    --border-subtle: #e2e8f0;
    --border-card: #e2e8f0;
    --border-focus: #0f766e;
    
    /* Unified Enterprise Forest AgTech Accent */
    --primary: #0f766e;
    --primary-hover: #115e59;
    --primary-light: #f0fdfa;
    --primary-border: #ccfbf1;
    --primary-glow: rgba(15, 118, 110, 0.15);

    /* Controlled Semantic Status */
    --status-active: #059669;
    --status-active-bg: #ecfdf5;
    --status-active-border: #a7f3d0;

    --status-inactive: #64748b;
    --status-inactive-bg: #f8fafc;
    --status-inactive-border: #e2e8f0;

    --status-danger: #e11d48;
    --status-danger-bg: #fff1f2;
    --status-danger-border: #fecdd3;

    /* Refined Typography Hierarchy */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Modern Rounded Corners */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Layered Smooth Shadows */
    --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 4px 12px 0 rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 0 0 3px var(--primary-glow);
    
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Modern Card Component */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Modern Minimalist Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.25;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: #cbd5e1;
}

/* Modern Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-success {
    background: var(--status-active-bg);
    color: var(--status-active);
    border: 1px solid var(--status-active-border);
}

.badge-danger {
    background: var(--status-danger-bg);
    color: var(--status-danger);
    border: 1px solid var(--status-danger-border);
}

.badge-info,
.badge-neutral {
    background: var(--status-inactive-bg);
    color: var(--status-inactive);
    border: 1px solid var(--status-inactive-border);
}
