/* ===================================================
   Verdant Field Theme — SLP Application
   Agricultural Tech, Refined
   =================================================== */

:root {
    /* Primary — Emerald */
    --v-primary-50:  #ecfdf5;
    --v-primary-100: #d1fae5;
    --v-primary-200: #a7f3d0;
    --v-primary-300: #6ee7b7;
    --v-primary-400: #34d399;
    --v-primary-500: #10b981;
    --v-primary-600: #059669;
    --v-primary-700: #047857;
    --v-primary-800: #065f46;
    --v-primary-900: #064e3b;

    /* Accent — Warm Amber */
    --v-accent-400: #fbbf24;
    --v-accent-500: #f59e0b;
    --v-accent-600: #d97706;
    --v-accent-700: #b45309;

    /* Surface — Warm Stone */
    --v-surface-50:  #fafaf9;
    --v-surface-100: #f5f5f4;
    --v-surface-200: #e7e5e4;
    --v-surface-300: #d6d3d1;
    --v-surface-700: #44403c;
    --v-surface-800: #292524;
    --v-surface-900: #1c1917;

    /* Forest — Sidebar */
    --v-forest-800: #1a2e23;
    --v-forest-900: #0f1a14;
    --v-forest-950: #0a1210;

    /* Transitions */
    --v-transition-fast: 150ms ease;
    --v-transition-base: 250ms ease;
    --v-transition-slow: 400ms ease;
}

/* ── Gradient Utilities ── */

.verdant-gradient-primary {
    background: linear-gradient(135deg, #10b981 0%, #047857 50%, #064e3b 100%);
}

.verdant-gradient-soft {
    background: linear-gradient(to bottom, #ecfdf5, #d1fae5);
}

.verdant-gradient-card {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.verdant-gradient-accent {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.verdant-gradient-hero {
    background: linear-gradient(135deg, #065f46 0%, #047857 40%, #064e3b 100%);
}

.verdant-gradient-sidebar {
    background: linear-gradient(180deg, #0f1a14 0%, #1a2e23 100%);
}

/* ── Button Styles ── */

.btn-verdant {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all var(--v-transition-base);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-verdant:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

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

.btn-accent {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #78350f;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all var(--v-transition-base);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--v-surface-700);
    border: 1px solid var(--v-surface-200);
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all var(--v-transition-base);
}

.btn-ghost:hover {
    background: var(--v-surface-100);
    border-color: var(--v-surface-300);
}

/* ── Card Styles ── */

.card-verdant {
    background: #ffffff;
    border: 1px solid var(--v-surface-200);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.06);
    transition: all var(--v-transition-base);
}

.card-verdant:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
}

/* ── Status Badges ── */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1.25rem;
    gap: 0.375rem;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}
.badge-success::before {
    background: #059669;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}
.badge-warning::before {
    background: #d97706;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}
.badge-danger::before {
    background: #dc2626;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}
.badge-info::before {
    background: #2563eb;
}

/* ── Sidebar Styles ── */

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--v-transition-fast);
    text-decoration: none;
    position: relative;
}

.sidebar-nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav-item.active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #34d399;
    border-radius: 0 3px 3px 0;
}

/* ── Form Styles ── */

.input-verdant {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: #ffffff;
    border: 1.5px solid var(--v-surface-200);
    border-radius: 0.625rem;
    font-size: 0.875rem;
    color: var(--v-surface-800);
    transition: all var(--v-transition-fast);
}

.input-verdant::placeholder {
    color: var(--v-surface-400);
}

.input-verdant:focus {
    outline: none;
    border-color: var(--v-primary-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.input-verdant.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ── Table Styles ── */

.table-verdant thead {
    background: var(--v-surface-50);
    border-bottom: 2px solid var(--v-surface-200);
}

.table-verdant thead th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--v-surface-500);
}

.table-verdant tbody tr {
    border-bottom: 1px solid var(--v-surface-100);
    transition: background var(--v-transition-fast);
}

.table-verdant tbody tr:hover {
    background: var(--v-primary-50);
}

.table-verdant tbody td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: var(--v-surface-700);
}

/* ── Glow Effects ── */

.glow-emerald {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.glow-emerald-hover:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.glow-amber {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

/* ── Noise Texture Overlay ── */

.noise-texture::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ── Stagger Animation Delays ── */

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* ── Scrollbar (WebKit) ── */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--v-surface-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--v-surface-400);
}

/* ── Print Styles ── */

@media print {
    .sidebar, .mobile-bottom-nav, .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
}
