/* LawnLedger Lite - forest green theme on top of Bootstrap 5 */
:root {
    --ll-green: #228b22;
    --ll-green-dark: #1a6b1a;
    --ll-green-soft: #e8f3e8;
    --ll-bg: #f6f8f6;
}

body {
    background: var(--ll-bg);
    color: #1f2a1f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
.ll-container { max-width: 960px; }

/* Navigation */
.ll-nav { background: #fff; border-bottom: 1px solid #e2e8e2; }
.ll-nav .navbar-brand { color: var(--ll-green-dark); font-weight: 700; }
.ll-nav .navbar-brand small { font-weight: 500; color: #6b7a6b; }
.ll-nav .nav-link { color: #4a5a4a; border-radius: 999px; padding: .4rem .8rem; }
.ll-nav .nav-link:hover { background: var(--ll-green-soft); }
.ll-nav .nav-link.active { background: var(--ll-green); color: #fff; }

/* Cards */
.ll-card {
    border: 1px solid #e2e8e2;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

/* Dashboard hero */
.ll-hero {
    background: linear-gradient(135deg, var(--ll-green-dark), var(--ll-green));
    color: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.ll-hero .btn-light { color: var(--ll-green-dark); }
.ll-stat { font-size: 2.5rem; font-weight: 700; color: var(--ll-green-dark); line-height: 1.1; }

/* Buttons and badges */
.btn-ll { background: var(--ll-green); border-color: var(--ll-green); color: #fff; }
.btn-ll:hover, .btn-ll:focus { background: var(--ll-green-dark); border-color: var(--ll-green-dark); color: #fff; }
.ll-badge { background: var(--ll-green-soft); color: var(--ll-green-dark); font-weight: 600; }

.form-control:focus, .form-select:focus {
    border-color: var(--ll-green);
    box-shadow: 0 0 0 .2rem rgba(34, 139, 34, .2);
}

.ll-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.ll-empty-icon { color: var(--ll-green); }
.ll-footer { border-top: 1px solid #e2e8e2; margin-top: 2rem; }

@media (max-width: 575.98px) {
    .ll-hero { padding: 1.25rem; }
    .ll-hero .btn { width: 100%; justify-content: center; }
}

/* Login page */
.ll-login { max-width: 400px; padding-top: 1.5rem; }
.ll-login-brand { color: var(--ll-green-dark); }
.ll-login-brand small { font-weight: 500; color: #6b7a6b; }
.ll-nav button.nav-link { color: #4a5a4a; }

/* Photos (v0.2) */
.ll-photo-box { background: var(--ll-green-soft); border-radius: .75rem; padding: 1rem; }
.ll-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .6rem; display: block; background: #e9efe9; }
.ll-thumb-sm { width: 84px; height: 84px; object-fit: cover; border-radius: .5rem; display: block; background: #e9efe9; }
.ll-compare-img { width: 100%; height: auto; border-radius: .6rem; display: block; background: #e9efe9; }
.ll-modal img { max-height: 80vh; width: auto; max-width: 100%; }

/* Five nav links + Logout: let the menu wrap onto its own row on narrow phones */
.ll-nav .container { flex-wrap: wrap; }
@media (max-width: 575.98px) {
    .ll-nav .navbar-nav { width: 100%; justify-content: space-around; padding-bottom: .25rem; }
}
