:root {
    --fp-green: #1f8a4c;
    --fp-green-dark: #166b3a;
    --fp-green-light: #e8f6ee;
    --fp-green-soft: #d4f0e0;
    --fp-text: #1f2937;
    --fp-muted: #6b7280;
    --fp-border: #e5e7eb;
    --fp-shadow: 0 8px 24px rgba(31, 138, 76, 0.08);
}

body.fp-calls-body {
    background: #f4faf6;
}

.calls-page {
    color: var(--fp-text);
}

/* Hero */
.calls-hero {
    background: linear-gradient(135deg, #f8fdf9 0%, #eef8f1 55%, #e3f3ea 100%);
    border-bottom: 1px solid var(--fp-green-soft);
    padding: 2.5rem 0 1.5rem;
    overflow: hidden;
}

.calls-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .calls-hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.calls-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    color: #0f3d24;
    margin-bottom: 0.5rem;
}

.calls-hero-subtitle {
    color: var(--fp-muted);
    font-size: 1.05rem;
    max-width: 34rem;
    margin-bottom: 0;
}

.calls-hero-visual {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calls-farm-scene {
    width: min(100%, 360px);
    height: auto;
}

.calls-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 280px;
}

@media (min-width: 992px) {
    .calls-stats {
        margin-top: 0;
        max-width: 420px;
        margin-left: auto;
    }
}

.calls-stat-card {
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: var(--fp-shadow);
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.calls-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--fp-green-light);
    color: var(--fp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calls-stat-label {
    font-size: 0.82rem;
    color: var(--fp-muted);
    margin-bottom: 0.15rem;
}

.calls-stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f3d24;
}

.calls-stat-link {
    font-size: 0.82rem;
    color: var(--fp-green);
    text-decoration: none;
    font-weight: 600;
}

.calls-stat-link:hover {
    color: var(--fp-green-dark);
}

/* List section */
.calls-list-section {
    padding: 2rem 0 3rem;
}

.calls-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calls-toolbar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f3d24;
    margin: 0;
}

.calls-toolbar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.calls-search-wrap {
    position: relative;
}

.calls-search-wrap svg {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fp-muted);
    pointer-events: none;
}

.calls-search {
    padding-left: 2.5rem;
    min-width: 220px;
    border-radius: 10px;
    border: 1px solid var(--fp-border);
}

.calls-select {
    min-width: 180px;
    border-radius: 10px;
    border: 1px solid var(--fp-border);
}

/* Cards grid */
.calls-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .calls-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.call-card {
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: 18px;
    box-shadow: var(--fp-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.call-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 138, 76, 0.12);
}

.call-card-body {
    padding: 1.25rem 1.35rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    flex: 1;
}

.call-card-main {
    min-width: 0;
}

.call-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.call-badge {
    background: var(--fp-green-light);
    color: var(--fp-green-dark);
    border: 1px solid var(--fp-green-soft);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.call-id {
    font-size: 0.78rem;
    color: var(--fp-muted);
    font-weight: 600;
}

.call-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f3d24;
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.call-desc {
    color: var(--fp-muted);
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.call-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.call-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #374151;
}

.call-meta-item svg {
    color: var(--fp-green);
    flex-shrink: 0;
}

.call-illustration {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, #edf9f1, #d8f0e2);
    border: 2px solid var(--fp-green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.call-illustration svg {
    width: 52px;
    height: 52px;
}

.call-info-box {
    margin: 0 1.35rem 1rem;
    background: var(--fp-green-light);
    border: 1px solid var(--fp-green-soft);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.86rem;
    color: #245c3a;
    line-height: 1.4;
}

.call-info-box svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--fp-green);
}

.call-card-footer {
    padding: 0 1.35rem 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.btn-call-view {
    background: var(--fp-green);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-call-view:hover {
    background: var(--fp-green-dark);
    color: #fff;
}

.calls-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--fp-muted);
    background: #fff;
    border-radius: 16px;
    border: 1px dashed var(--fp-border);
}

/* Footer */
.fp-footer {
    background: #fff;
    border-top: 1px solid var(--fp-border);
    padding: 1.5rem 0;
    margin-top: auto;
}

.fp-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.fp-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--fp-green-dark);
}

.fp-footer-tagline {
    font-size: 0.85rem;
    color: var(--fp-muted);
    margin: 0.15rem 0 0;
}

.fp-footer-help {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--fp-text);
    font-weight: 600;
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fp-footer-help:hover {
    border-color: var(--fp-green-soft);
    background: var(--fp-green-light);
    color: var(--fp-green-dark);
}

.fp-footer-help small {
    display: block;
    font-weight: 400;
    color: var(--fp-muted);
}

/* Navbar enhancements */
.fp-navbar {
    background: var(--fp-green) !important;
    padding: 0.65rem 0;
}

.fp-navbar .navbar-brand {
    font-size: 1.15rem;
}

.fp-brand-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 2px 4px;
}

.fp-brand-logo--footer {
    height: 28px;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.fp-brand-logo--login {
    height: 64px;
    max-width: 180px;
    margin: 0 auto;
    display: block;
}

.fp-brand-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--fp-green, #2e7d32);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.fp-brand-initials--nav {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
}

.fp-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.fp-nav-link {
    font-weight: 500;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
}

.fp-nav-link.active,
.fp-nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.fp-user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.75rem 0.25rem 0.35rem;
    color: #fff;
    font-size: 0.9rem;
}

.fp-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.d-none.d-lg-grid {
    display: none;
}

@media (min-width: 992px) {
    .d-none.d-lg-grid {
        display: grid;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 100%;
    }
}
