/* ==========================================
   CropPilot AI — PROFESSIONAL GLASS DASHBOARD
   Designed for the current index.html
   ========================================== */

:root {
    --green: #173f2b;
    --green-dark: #102d20;
    --green2: #287447;
    --green-light: #e7f4e5;
    --text: #26372d;
    --muted: #78877d;
    --glass: rgba(255, 255, 255, 0.76);
    --border: rgba(255, 255, 255, 0.9);
    --shadow: 0 12px 35px rgba(27, 67, 39, 0.08);
    --shadow-hover: 0 18px 42px rgba(27, 67, 39, 0.14);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at 5% 5%, #e1f1df 0%, transparent 35%),
        radial-gradient(ellipse at 95% 35%, #e4efd8 0%, transparent 32%),
        linear-gradient(135deg, #f3f7f0, #eaf2e9);
    background-attachment: fixed;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

a {
    color: inherit;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #dce7dc;
    border-radius: 11px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #55a46b;
    box-shadow: 0 0 0 4px rgba(62, 145, 83, 0.1);
}

label {
    display: block;
    color: #43594a;
    font-size: 12px;
    font-weight: 700;
}

/* APP LAYOUT */

.app-shell {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-self: start;
    height: 100vh;
    min-height: 600px;
    padding: 28px 17px 20px;
    overflow-y: auto;

    color: #edf7ee;
    background: linear-gradient(175deg, #173f2b, #102d20 90%);
    box-shadow: 8px 0 30px rgba(16, 45, 32, 0.08);
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 5px 40px;
    color: white;
    text-decoration: none;
}

.brand-icon {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 25px;
}

.brand-name {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.brand-ai {
    margin-left: 4px;
    color: #a8e6a9;
}

.brand-name small {
    display: block;
    margin-top: 5px;
    color: #a6c4ae;
    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15px;
    white-space: nowrap;
}

.sidebar-label {
    margin: 0 12px 12px;
    color: #87a993;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.tools-label {
    margin-top: 30px;
}

.side-nav {
    display: grid;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 12px;

    color: #c8d9cc;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;

    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-item > span {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    font-size: 17px;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.nav-item.active {
    color: white;
    background: linear-gradient(
        100deg,
        rgba(113, 181, 117, 0.24),
        rgba(113, 181, 117, 0.08)
    );
    border-color: rgba(175, 226, 176, 0.13);
}

.sidebar-bottom {
    margin-top: auto;
    padding: 20px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
}

.sidebar-plant {
    margin-bottom: 10px;
    font-size: 27px;
}

.sidebar-bottom h4 {
    margin: 0 0 8px;
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
}

.sidebar-bottom p {
    margin: 0;
    color: #a9c1af;
    font-size: 11px;
    line-height: 1.7;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: #d0e4d3;
    font-size: 10px;
}

.sidebar-status span,
.prototype-pill span,
.status-dot,
.welcome-badge span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #70d18a;
    box-shadow: 0 0 0 4px rgba(112, 209, 138, 0.12);
}

.sidebar-footer {
    margin-top: 20px;
    padding: 0 5px;
    color: #779b83;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

/* MAIN CONTENT */

.main-content {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: 76px;
    padding: 15px 4.5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-brand {
    display: none;
    color: var(--green);
    font-size: 17px;
}

.mobile-brand span {
    color: var(--green2);
}

.breadcrumb {
    color: #849087;
    font-size: 12px;
}

.breadcrumb span {
    margin: 0 9px;
    color: #aeb8af;
}

.breadcrumb strong {
    color: var(--green);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid #dfe9df;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.user-chip-avatar {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e4f7e7, #cfe7d2);
    font-size: 10px;
    font-weight: 800;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #617166;
    font-size: 11px;
    font-weight: 600;
}

.notification-shortcut {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #dfe9df;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
    font-size: 16px;
    color: var(--green);
    text-decoration: none;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d94d4d;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.status-dot {
    width: 7px;
    height: 7px;
}
.voice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 15px;

    color: var(--green);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #d8e6d8;
    border-radius: 11px;

    font-size: 11px;
    font-weight: 750;
}

.voice-button:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* PAGE CONTENT */

.page-content {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    padding: 32px 4.5% 50px;
}

/* WELCOME BANNER */

.welcome-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 355px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 44px 48px;
    margin-bottom: 36px;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 27px;

    background: linear-gradient(
        115deg,
        rgba(224, 243, 220, 0.97),
        rgba(241, 247, 226, 0.9)
    );

    box-shadow: 0 15px 40px rgba(37, 86, 44, 0.07);
}

.welcome-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green2);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.6px;
    line-height: 1.8;
}

.welcome-badge span {
    width: 6px;
    height: 6px;
}

.welcome-banner h1 {
    margin: 17px 0 14px;
    color: var(--green);
    font-family: "Manrope", sans-serif;
    font-size: clamp(39px, 4.1vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2.4px;
}

.welcome-banner h1 span {
    color: #287447;
}

.welcome-banner p {
    max-width: 550px;
    margin: 0 0 23px;
    color: #65766a;
    font-size: 13px;
    line-height: 1.9;
}

.welcome-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;

    color: white;
    background: linear-gradient(135deg, #173f2b, #287447);
    border-radius: 11px;
    box-shadow: 0 7px 18px rgba(23, 63, 43, 0.17);

    text-decoration: none;
    font-size: 11px;
    font-weight: 750;
}

.welcome-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(23, 63, 43, 0.22);
}

.welcome-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 19px;
    color: #607666;
    font-size: 10px;
}

.welcome-trust span {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #d0e9ce;
    color: var(--green2);
    font-weight: 900;
}

/* WELCOME ILLUSTRATION */

.welcome-visual {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 38%;
    min-width: 200px;
    min-height: 255px;
}

.visual-circle {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(155px, 18vw, 225px);
    height: clamp(155px, 18vw, 225px);

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.37);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.65),
        0 18px 40px rgba(41, 91, 46, 0.08);

    animation: plantFloat 5s ease-in-out infinite;
}

.visual-emoji {
    font-size: clamp(80px, 9vw, 118px);
}

.visual-orbit {
    position: absolute;
    border: 1px solid rgba(65, 133, 73, 0.16);
    border-radius: 50%;
}

.orbit-one {
    width: 275px;
    height: 275px;
}

.orbit-two {
    width: 330px;
    height: 330px;
    border-style: dashed;
    opacity: 0.65;
}

.visual-sun {
    position: absolute;
    top: 12px;
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 45px rgba(241, 197, 95, 0.28);
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.77);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 28px rgba(36, 78, 41, 0.1);
}

.floating-card > span {
    font-size: 24px;
}

.floating-card strong {
    display: block;
    color: var(--green);
    font-size: 10px;
}

.floating-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.floating-weather {
    top: 16px;
    left: -5px;
}

.floating-growth {
    right: -8px;
    bottom: 20px;
}

.banner-decoration {
    position: absolute;
    z-index: -1;
    right: -80px;
    bottom: -150px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(124, 182, 105, 0.09);
}

@keyframes plantFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* SECTION HEADINGS */

.overview-heading,
.dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.overview-heading {
    margin-bottom: 22px;
}

.section-eyebrow {
    color: var(--green2);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.7px;
}

.overview-heading h2,
.dashboard-heading h2 {
    margin: 8px 0 6px;
    color: var(--green);
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.overview-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.date-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.58);
    color: #64766a;

    font-size: 10px;
    white-space: nowrap;
}

/* FEATURE CARDS */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 42px;
}

.feature-card {
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;

    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: var(--shadow);
    text-decoration: none;

    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-green {
    background: linear-gradient(145deg, rgba(234, 247, 229, 0.92), var(--glass));
}

.feature-lime {
    background: linear-gradient(145deg, rgba(242, 247, 220, 0.92), var(--glass));
}

.feature-blue {
    background: linear-gradient(145deg, rgba(226, 242, 248, 0.92), var(--glass));
}

.feature-orange {
    background: linear-gradient(145deg, rgba(250, 239, 221, 0.92), var(--glass));
}

.feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.66);
    font-size: 22px;
}

.feature-arrow {
    color: #8da394;
    font-size: 19px;
}

.feature-label {
    margin-bottom: 8px;
    color: #6b8973;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.3px;
}

.feature-card h3 {
    margin: 0 0 8px;
    color: var(--green);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.feature-card p {
    margin: 0 0 18px;
    color: #718078;
    font-size: 10px;
    line-height: 1.8;
}

.feature-bottom {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: #62776a;
    font-size: 9px;
}

.mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #55a96c;
}

/* DASHBOARD HEADING */

.dashboard-heading {
    margin-bottom: 21px;
}

.prototype-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(54, 129, 70, 0.1);
    border-radius: 30px;
    background: rgba(229, 244, 225, 0.8);
    color: var(--green2);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.prototype-pill span {
    width: 6px;
    height: 6px;
}

/* DASHBOARD GRID */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 23px;
}

/* GLASS PANELS */

.panel {
    min-width: 0;
    padding: 25px;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);

    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 12px 35px rgba(27, 67, 39, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);

    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.panel:hover {
    background: rgba(255, 255, 255, 0.84);
    box-shadow:
        0 18px 42px rgba(27, 67, 39, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 47px;
    margin-bottom: 22px;
}

.panel-icon {
    display: grid;
    place-items: center;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    font-size: 21px;
}

.icon-purple {
    background: #eee9fb;
    color: #6d54aa;
}

.icon-yellow {
    background: #fff3d8;
    color: #9a751f;
}

.icon-brown {
    background: #f4e8dc;
    color: #926744;
}

.icon-green {
    background: #e3f3df;
    color: #39784a;
}

.panel-heading-text {
    flex: 1;
    min-width: 0;
}

.panel-heading h3 {
    margin: 0;
    color: var(--green);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.panel-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.panel-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 30px;
    background: #e9f6e7;
    color: var(--green2);
    font-size: 8px;
    font-weight: 850;
}

.panel-live span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4eaa64;
}

.panel-live--offline {
    background: #fbe7e7;
    color: #8b4949;
}

.panel-live--offline span {
    background: #d96a6a;
}

.panel-number {
    color: #a8b8ab;
    font-size: 11px;
    font-weight: 800;
}

.weather-decoration {
    color: #e3c16c;
    font-size: 25px;
}

/* CHAT ASSISTANT */

.assistant-intro {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    background: rgba(241, 248, 238, 0.8);
}

.assistant-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    border-radius: 12px;
    background: white;
    font-size: 21px;
}

.assistant-intro strong {
    display: block;
    color: var(--green);
    font-size: 11px;
}

.assistant-intro p {
    margin: 5px 0 0;
    color: #708075;
    font-size: 10px;
    line-height: 1.7;
}

.chat-window {
    height: 225px;
    overflow-y: auto;
    padding: 15px;

    border: 1px solid rgba(224, 235, 223, 0.95);
    border-radius: 14px;
    background: rgba(248, 251, 246, 0.82);
}

.chat-window::-webkit-scrollbar {
    width: 6px;
}

.chat-window::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #cbdcc9;
}

.bubble {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.bubble > span {
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: #e5f2e2;
    font-size: 18px;
}

.bubble > div {
    min-width: 0;
}

.bubble b {
    color: var(--green);
    font-size: 11px;
}

.bubble p {
    margin: 5px 0;
    color: #526458;
    font-size: 12px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.user-bubble {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0;
}

.user-bubble p {
    max-width: 86%;
    margin: 0;
    padding: 10px 13px;
    border-radius: 14px 14px 4px 14px;
    background: #e2f2df;
    color: #284d33;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.quick-question-label {
    margin: 18px 0 9px;
    color: #829087;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.3px;
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.quick-questions button {
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce9da;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--green2);
    font-size: 9px;
    line-height: 1.5;
    text-align: left;
}

.quick-questions button:hover {
    background: #e7f4e5;
    transform: translateY(-1px);
}

.chat-form {
    display: flex;
    align-items: stretch;
    gap: 9px;
}

.chat-form input {
    flex: 1;
    min-width: 0;
}

.chat-form button {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #173f2b, #287447);
    color: white;
    font-size: 19px;
    box-shadow: 0 5px 13px rgba(23, 63, 43, 0.14);
}

.chat-form button:hover {
    transform: translateY(-2px);
}

.hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.8;
}

/* WEATHER */

.form-stack {
    display: grid;
    gap: 12px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon > span {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    color: #78917d;
    transform: translateY(-50%);
}

.input-with-icon input {
    padding-left: 36px;
}

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 44px;
    padding: 12px 15px;

    border: 1px solid rgba(23, 63, 43, 0.08);
    border-radius: 11px;

    background: linear-gradient(135deg, #173f2b, #287447);
    color: white;

    font-size: 11px;
    font-weight: 750;
    line-height: 1.6;

    box-shadow: 0 6px 15px rgba(23, 63, 43, 0.12);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.primary:hover {
    background: linear-gradient(135deg, #205b39, #359052);
    box-shadow: 0 9px 20px rgba(23, 63, 43, 0.18);
    transform: translateY(-2px);
}

.weather-empty-state {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 20px;
    padding: 17px;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    background: rgba(242, 248, 239, 0.83);
}

.weather-empty-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: white;
    font-size: 27px;
}

.weather-empty-state strong {
    display: block;
    color: var(--green);
    font-size: 11px;
}

.weather-empty-state p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.weather-footnote {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #87958a;
    font-size: 9px;
}

/* SOIL ANALYSIS */

.panel-description {
    margin: -5px 0 20px;
    color: #718078;
    font-size: 11px;
    line-height: 1.8;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.field-group {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.field-group label span {
    margin-left: 4px;
    color: #819486;
    font-size: 10px;
}

.form-grid input {
    padding: 12px;
}

.nutrient-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, 118px);
    gap: 7px;
    align-items: stretch;
    min-width: 0;
}

.nutrient-input-row input,
.nutrient-input-row select {
    min-width: 0;
    padding: 10px 8px;
}

.exact-unit {
    margin-top: 2px;
}

.unit-help {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.span-two {
    grid-column: 1 / -1;
}

.advanced-soil {
    padding: 12px;
    border: 1px solid #dcebd9;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
}

.advanced-soil summary {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.advanced-soil > p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.advanced-soil .form-grid {
    margin-top: 12px;
}

.notification-preferences {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin-top: 16px;
    padding: 13px;
    border-top: 1px solid #e3ebe1;
}

.notification-preferences label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.notification-preferences input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--green2);
}

.notification-preferences button {
    grid-column: 1 / -1;
}

.weather-alerts-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.weather-alert {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid #dcebd9;
    border-left: 4px solid #689c6c;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.weather-alert--high { border-left-color: #b74435; }
.weather-alert--moderate { border-left-color: #d39532; }
.weather-alert--low { border-left-color: #4b82a0; }
.weather-alert.is-unread { background: #f1f8ee; }
.weather-alert.is-dismissed { opacity: 0.65; }
.weather-alert p { margin: 0; line-height: 1.6; }
.weather-alert small { color: var(--muted); line-height: 1.5; }
.weather-alert button { justify-self: start; padding: 5px 9px; font-size: 10px; }

#weatherResult {
    white-space: pre-line;
}

.information-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(244, 248, 239, 0.85);
}

.information-note > span {
    color: var(--green2);
    font-size: 15px;
}

.information-note p {
    margin: 0;
    color: #738176;
    font-size: 9px;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .nutrient-input-row {
        grid-template-columns: minmax(0, 1fr) minmax(88px, 104px);
    }

    .notification-preferences {
        grid-template-columns: 1fr;
    }

    .weather-alert button {
        min-height: 36px;
    }
}

/* CROP ADVISOR */

.crop-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 16px;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    background: linear-gradient(
        110deg,
        rgba(232, 246, 225, 0.95),
        rgba(248, 249, 235, 0.85)
    );
}

.crop-highlight strong {
    display: block;
    color: var(--green);
    font-size: 11px;
}

.crop-highlight p {
    margin: 5px 0 0;
    color: #728176;
    font-size: 10px;
    line-height: 1.7;
}

.crop-highlight-icon {
    flex-shrink: 0;
    font-size: 33px;
}

.location-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;

    border: 1px solid #cfe2cf;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--green2);

    font-size: 11px;
    font-weight: 750;
}

.location-button:hover {
    background: #edf7e9;
    transform: translateY(-1px);
}

/* RESULTS */

.result {
    margin-top: 16px;
    padding: 15px;

    border: 1px solid #dcebd9;
    border-radius: 13px;

    background: rgba(242, 249, 238, 0.92);
    color: #455a49;

    font-size: 11px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.result strong {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 12px;
}

.result p {
    margin: 6px 0;
}

.hidden {
    display: none !important;
}

/* PLANT DOCTOR */

.upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 175px;
    padding: 24px;

    border: 1.5px dashed #a8c8a8;
    border-radius: 15px;
    background: rgba(246, 251, 244, 0.8);
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.upload:hover {
    border-color: var(--green2);
    background: #edf7e9;
}

.upload span {
    font-size: 38px;
}

.upload b {
    color: var(--green);
    font-size: 12px;
}

.upload small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.preview {
    display: block;
    width: 100%;
    max-height: 280px;
    margin-top: 14px;
    border-radius: 13px;
    object-fit: contain;
    background: #f4f7f3;
}

.full {
    width: 100%;
    margin-top: 12px;
}

/* NOTIFICATIONS */

.reminder {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    background: rgba(244, 249, 241, 0.85);
}

.reminder > span {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #e3f2df;
    font-size: 25px;
}

.reminder > div {
    min-width: 0;
}

.reminder b {
    display: block;
    color: var(--green);
    font-size: 11px;
}

.reminder p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

/* FOOTER */

footer {
    margin-top: 35px;
    padding: 30px 12px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
    line-height: 1.9;
}

footer a {
    color: var(--green);
    font-weight: 800;
    text-decoration: none;
}

footer p {
    margin: 5px;
}

/* GENERAL ELEMENTS */

img {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid rgba(55, 145, 79, 0.4);
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 1200px) {
    .app-shell {
        grid-template-columns: 225px minmax(0, 1fr);
    }

    .sidebar {
        padding-right: 13px;
        padding-left: 13px;
    }

    .page-content {
        padding-right: 3%;
        padding-left: 3%;
    }

    .welcome-banner {
        padding: 35px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card {
        min-height: 205px;
    }

    .panel {
        padding: 21px;
    }
}

/* SMALL TABLET */

@media (max-width: 850px) {
    .app-shell {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .sidebar {
        align-items: center;
        padding: 20px 9px;
    }

    .brand {
        justify-content: center;
        margin: 0 0 30px;
    }

    .brand-name,
    .sidebar-label,
    .nav-item:not(.active) {
        font-size: 0;
    }

    .brand-name,
    .sidebar-bottom,
    .sidebar-footer,
    .nav-item:not(.active) {
        display: none;
    }

    .side-nav {
        width: 100%;
    }

    .nav-item {
        justify-content: center;
        padding: 12px 8px;
    }

    .nav-item > span {
        flex-basis: auto;
        font-size: 19px;
    }

    .welcome-banner {
        padding: 30px;
    }

    .welcome-visual {
        flex-basis: 30%;
        min-width: 130px;
    }

    .floating-card {
        display: none;
    }

    .orbit-two {
        width: 240px;
        height: 240px;
    }

    .orbit-one {
        width: 205px;
        height: 205px;
    }

    .dashboard-grid {
        gap: 17px;
    }

    .panel {
        padding: 18px;
    }

    .panel-heading {
        gap: 9px;
    }

    .panel-live {
        display: none;
    }

    .breadcrumb {
        display: none;
    }

    .mobile-brand {
        display: block;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        min-height: 68px;
        padding: 12px 5%;
    }

    .mobile-brand {
        font-size: 16px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .system-status {
        display: none;
    }

    .voice-button {
        padding: 10px;
        font-size: 10px;
    }

    .page-content {
        padding: 20px 4% 35px;
    }

    .welcome-banner {
        min-height: 0;
        padding: 29px 23px;
        margin-bottom: 28px;
        border-radius: 22px;
    }

    .welcome-banner h1 {
        font-size: clamp(36px, 10vw, 48px);
        letter-spacing: -1.5px;
    }

    .welcome-banner p {
        font-size: 12px;
    }

    .welcome-visual {
        display: none;
    }

    .welcome-badge {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .overview-heading,
    .dashboard-heading {
        align-items: flex-start;
    }

    .overview-heading h2,
    .dashboard-heading h2 {
        font-size: 22px;
    }

    .overview-heading p {
        max-width: 260px;
    }

    .date-chip {
        display: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 32px;
    }

    .feature-card {
        min-height: 200px;
        padding: 15px;
        border-radius: 15px;
    }

    .feature-card h3 {
        font-size: 12px;
    }

    .feature-card p {
        font-size: 10px;
    }

    .feature-top {
        margin-bottom: 17px;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
    }

    .prototype-pill {
        font-size: 8px;
        padding: 7px 9px;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .panel {
        padding: 19px;
        border-radius: 17px;
    }

    .panel-heading {
        margin-bottom: 18px;
    }

    .panel-heading h3 {
        font-size: 14px;
    }

    .form-grid {
        gap: 12px;
    }

    .chat-window {
        height: 220px;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 360px) {
    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-card {
        min-height: 175px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .span-two {
        grid-column: auto;
    }

    .welcome-banner h1 {
        font-size: 35px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ==========================================
   CropPilot AI — UI ALIGNMENT ENHANCEMENT
   Floating glass cards and responsive layout
   ========================================== */

/* Consistent sizing */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 10% 5%, rgba(198, 231, 190, 0.38), transparent 35%),
        radial-gradient(ellipse at 90% 40%, rgba(216, 235, 205, 0.34), transparent 32%),
        linear-gradient(135deg, #f4f8f2, #eaf2e8);
    background-attachment: fixed;
}

/* Main application alignment */
.app-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
}

.main-content {
    min-width: 0;
    width: 100%;
}

.page-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px clamp(20px, 4vw, 60px) 50px;
}

/* Header */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 14px clamp(20px, 4vw, 60px);
    background: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    align-self: start;
}

.side-nav {
    display: grid;
    gap: 7px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    border-radius: 12px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.nav-item:hover {
    transform: translateX(3px);
}

/* Welcome banner */
.welcome-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 320px;
    padding: clamp(28px, 4vw, 52px);
    margin-bottom: 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    background:
        radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.65), transparent 35%),
        linear-gradient(120deg, rgba(222, 242, 218, 0.94), rgba(244, 247, 224, 0.9));
    box-shadow: 0 15px 40px rgba(31, 77, 39, 0.07);
}

.welcome-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.welcome-banner h1 {
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.12;
    letter-spacing: -1.8px;
    margin: 16px 0;
}

.welcome-banner p {
    max-width: 540px;
    line-height: 1.9;
}

.welcome-visual {
    flex: 0 0 35%;
    min-width: 180px;
    position: relative;
    display: grid;
    place-items: center;
}

.visual-circle {
    display: grid;
    place-items: center;
    width: clamp(160px, 18vw, 225px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.6),
        0 20px 45px rgba(40, 80, 40, 0.08);
    animation: agriFloat 5s ease-in-out infinite;
}

.visual-emoji {
    font-size: clamp(75px, 9vw, 115px);
}

.visual-orbit {
    position: absolute;
    border: 1px solid rgba(40, 116, 71, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-one {
    width: 250px;
    height: 250px;
}

.orbit-two {
    width: 300px;
    height: 300px;
    border-style: dashed;
}

@keyframes agriFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 42px;
}

.feature-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 21px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(28, 70, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(28, 70, 39, 0.12);
}

.feature-green {
    background: linear-gradient(145deg, rgba(230, 246, 224, 0.82), rgba(255, 255, 255, 0.65));
}

.feature-lime {
    background: linear-gradient(145deg, rgba(244, 247, 222, 0.82), rgba(255, 255, 255, 0.65));
}

.feature-blue {
    background: linear-gradient(145deg, rgba(226, 242, 248, 0.82), rgba(255, 255, 255, 0.65));
}

.feature-orange {
    background: linear-gradient(145deg, rgba(250, 239, 222, 0.82), rgba(255, 255, 255, 0.65));
}

.feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-card h3 {
    line-height: 1.5;
}

.feature-card p {
    line-height: 1.8;
}

.feature-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dashboard alignment */
.dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

/* Floating transparent panels */
.panel {
    min-width: 0;
    padding: clamp(18px, 2vw, 27px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 12px 34px rgba(25, 65, 35, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.panel:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 19px 42px rgba(25, 65, 35, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.panel-heading-text {
    flex: 1;
    min-width: 0;
}

.panel-heading h3 {
    line-height: 1.5;
}

.panel-heading p {
    line-height: 1.6;
}

/* Consistent icons */
.panel-icon,
.feature-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Chat */
.chat-window {
    height: 235px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(225, 236, 222, 0.95);
    border-radius: 15px;
    background: rgba(247, 251, 245, 0.82);
    scroll-behavior: smooth;
}

.chat-window::-webkit-scrollbar {
    width: 6px;
}

.chat-window::-webkit-scrollbar-thumb {
    background: #c9dcc8;
    border-radius: 20px;
}

.bubble p,
.user-bubble p {
    overflow-wrap: anywhere;
    line-height: 1.75;
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.quick-questions button {
    max-width: 100%;
    border: 1px solid #dce9da;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    transition: background 0.2s ease, transform 0.2s ease;
}

.quick-questions button:hover {
    background: #e7f4e5;
    transform: translateY(-1px);
}

.chat-form {
    display: flex;
    align-items: stretch;
    gap: 9px;
}

.chat-form input {
    flex: 1;
    min-width: 0;
}

.chat-form button {
    flex: 0 0 46px;
    width: 46px;
}

/* Forms */
.form-stack,
.form-grid,
.field-group {
    min-width: 0;
}

.form-stack {
    display: grid;
    gap: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.field-group {
    display: grid;
    align-content: start;
    gap: 8px;
}

.span-two {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    max-width: 100%;
    min-width: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.86);
}

.primary {
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #173f2b, #287447);
    color: #fff;
    box-shadow: 0 6px 16px rgba(23, 63, 43, 0.13);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(23, 63, 43, 0.2);
}

.location-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid #d2e4d1;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.82);
    color: #287447;
    font-weight: 700;
}

.location-button:hover {
    background: #edf7e9;
}

/* Result areas */
.result {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #dcebd9;
    border-radius: 13px;
    background: rgba(242, 249, 238, 0.92);
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.result p {
    margin: 5px 0;
}

.hidden {
    display: none !important;
}

/* Image upload */
.upload {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px;
    border: 1.5px dashed #a8c8a8;
    border-radius: 15px;
    background: rgba(246, 251, 244, 0.8);
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.upload:hover {
    border-color: #287447;
    background: #edf7e9;
}

.preview {
    display: block;
    width: 100%;
    max-height: 280px;
    margin-top: 14px;
    border-radius: 13px;
    object-fit: contain;
}

/* Notifications */
.reminder {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    background: rgba(244, 249, 241, 0.85);
}

.reminder > div {
    min-width: 0;
}

.reminder p {
    line-height: 1.7;
}

/* Footer */
footer {
    padding: 32px 12px;
    text-align: center;
    line-height: 1.9;
}

/* TABLET */
@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 215px minmax(0, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-banner {
        padding: 32px;
    }

    .dashboard-grid {
        gap: 17px;
    }
}

/* SMALL TABLET */
@media (max-width: 800px) {
    .app-shell {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .sidebar {
        padding: 20px 8px;
    }

    .brand {
        justify-content: center;
        margin: 0 0 30px;
    }

    .brand-name,
    .sidebar-label,
    .sidebar-bottom,
    .sidebar-footer {
        display: none;
    }

    .side-nav {
        width: 100%;
    }

    .nav-item {
        justify-content: center;
        padding: 12px 7px;
    }

    .nav-item > span {
        margin: 0;
        font-size: 19px;
    }

    .welcome-visual {
        min-width: 120px;
    }

    .dashboard-grid {
        gap: 14px;
    }

    .panel {
        padding: 17px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        min-height: 65px;
        padding: 12px 4%;
    }

    .topbar-actions {
        gap: 8px;
    }

    .system-status,
    .breadcrumb {
        display: none;
    }

    .mobile-brand {
        display: block;
    }

    .page-content {
        padding: 18px 4% 35px;
    }

    .welcome-banner {
        min-height: 0;
        padding: 28px 22px;
        margin-bottom: 28px;
        border-radius: 21px;
    }

    .welcome-banner h1 {
        font-size: clamp(35px, 9vw, 46px);
        letter-spacing: -1.3px;
    }

    .welcome-visual {
        display: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 32px;
    }

    .feature-card {
        padding: 15px;
        border-radius: 15px;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .panel {
        padding: 18px;
        border-radius: 17px;
    }

    .dashboard-heading {
        align-items: flex-start;
    }

    .prototype-pill {
        font-size: 8px;
    }

    .form-grid {
        gap: 12px;
    }

    .chat-window {
        height: 220px;
    }
}

/* VERY SMALL MOBILE */
@media (max-width: 360px) {
    .feature-grid,
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .span-two {
        grid-column: auto;
    }

    .welcome-banner h1 {
        font-size: 34px;
    }
}

/* REDUCED MOTION ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}




/* ==========================================
   CropPilot AI — ANIMATED GLASS THEME
   ========================================== */

:root {
    --agri-green: #72f0a1;
    --agri-dark-green: #0b593d;
    --agri-glass: rgba(255, 255, 255, 0.68);
    --agri-border: rgba(255, 255, 255, 0.65);
    --agri-shadow: 0 14px 40px rgba(19, 85, 55, 0.10);
}

/* Smooth page movement */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

/* Animated background */
body {
    background:
        radial-gradient(ellipse at 10% 10%, rgba(128, 255, 177, 0.23), transparent 38%),
        radial-gradient(ellipse at 90% 35%, rgba(106, 221, 170, 0.18), transparent 35%),
        linear-gradient(135deg, #f4fff7, #e9f8ef, #f8fff9);

    background-size: 180% 180%;
    animation: agriBackground 18s ease infinite;
    color: #173d2d;
}

@keyframes agriBackground {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Top navigation */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(248, 255, 250, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(40, 130, 78, 0.12);
    box-shadow: 0 5px 25px rgba(24, 90, 53, 0.05);
}

/* Main page container */
.container {
    position: relative;
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;

    background:
        linear-gradient(
            120deg,
            rgba(15, 101, 65, 0.96),
            rgba(33, 147, 91, 0.91),
            rgba(72, 181, 113, 0.87)
        );

    background-size: 200% 200%;
    animation: heroGradient 12s ease infinite;

    box-shadow: 0 22px 55px rgba(16, 107, 66, 0.18);
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    top: -110px;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);

    box-shadow:
        0 0 0 35px rgba(255, 255, 255, 0.035),
        0 0 0 75px rgba(255, 255, 255, 0.025);

    pointer-events: none;
}

/* Dashboard cards — translucent glass */
.card,
.stats > div {
    position: relative;
    overflow: hidden;

    background: var(--agri-glass);
    border: 1px solid var(--agri-border);
    border-radius: 22px;

    box-shadow: var(--agri-shadow);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Subtle light moving across cards */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );

    transform: skewX(-18deg);
    pointer-events: none;
    transition: left 0.7s ease;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 48px rgba(20, 100, 61, 0.14);
        border-color: rgba(68, 175, 108, 0.35);
    }

    .card:hover::before {
        left: 150%;
    }

    .stats > div:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 35px rgba(20, 100, 61, 0.12);
    }
}

/* Statistics */
.stats > div {
    animation: agriFloatIn 0.7s ease both;
}

.stats > div:nth-child(2) {
    animation-delay: 0.1s;
}

.stats > div:nth-child(3) {
    animation-delay: 0.2s;
}

.stats > div:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes agriFloatIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card headings */
.card-title {
    color: #145c3c;
    letter-spacing: -0.3px;
}

/* Buttons */
button,
.primary {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

button:hover,
.primary:hover {
    filter: brightness(1.04);
}

button:active,
.primary:active {
    transform: scale(0.97);
}

/* Inputs */
input,
select,
textarea {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #40ad72 !important;
    box-shadow: 0 0 0 4px rgba(64, 173, 114, 0.13);
    background: rgba(255, 255, 255, 0.95);
}

/* Chat window */
.chat-window {
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
}

/* Result panels */
.result,
.preview {
    background: rgba(232, 250, 237, 0.7);
    border: 1px solid rgba(69, 170, 105, 0.18);
    border-radius: 16px;
}

/* Upload area */
.upload {
    border-radius: 18px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.upload:hover {
    background: rgba(222, 249, 230, 0.75);
    border-color: #50b779;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #edf8f0;
}

::-webkit-scrollbar-thumb {
    background: #8bcea4;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #399963;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero {
        border-radius: 20px;
    }

    .card,
    .stats > div {
        border-radius: 18px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================
   CropPilot AI — COLORFUL CREATIVE THEME
   ========================================== */

:root {
    --forest: #103d2b;
    --mint: #c8ffad;
    --cream: #fff7dc;
    --lavender: #eadbff;
    --sky: #cceeff;
    --coral: #ffb9a4;
    --pink: #ffd5f5;
}

/* Animated page background */
body {
    background:
        radial-gradient(ellipse at 8% 10%, #d8ffdf 0%, transparent 30%),
        radial-gradient(ellipse at 90% 45%, #f1ddff 0%, transparent 28%),
        linear-gradient(135deg, #f7fff5, #edf9f0, #fff8ed);

    background-size: 160% 160%;
    animation: pageFlow 18s ease infinite;
}

@keyframes pageFlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Left sidebar */
.sidebar {
    background: linear-gradient(165deg, #103d2b, #14583c 65%, #23734b);
    color: #fff;
    box-shadow: 8px 0 35px rgba(16, 61, 43, 0.12);
}

.brand-icon {
    animation: leafBreathe 3s ease-in-out infinite;
}

@keyframes leafBreathe {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.1); }
}

/* Sidebar navigation */
.nav-item {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: background .3s ease, transform .3s ease;
}

.nav-item.active {
    background: linear-gradient(100deg, #c9ffad, #8cf0a9);
    color: #123d2b !important;
    border-color: rgba(255,255,255,.4);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    font-weight: 800;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 4px;
    border-radius: 8px;
    background: #f6ffcf;
}

@media (hover: hover) {
    .nav-item:hover {
        background: rgba(255,255,255,.12);
        transform: translateX(4px);
    }

    .nav-item.active:hover {
        background: #c9ffad;
    }
}

/* ==========================================
   HERO — DEEP GREEN EDITORIAL STYLE
   ========================================== */

.welcome-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(120deg, #103d2b, #16754c, #37a96b);
    background-size: 200% 200%;
    animation: heroFlow 12s ease infinite;
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 25px 55px rgba(16,80,48,.18);
}

@keyframes heroFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.visual-circle {
    animation: circleFloat 5s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0,0,0,.13);
}

@keyframes circleFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.floating-card {
    animation: floatCard 5s ease-in-out infinite;
    box-shadow: 0 14px 35px rgba(0,0,0,.13);
}

.floating-growth {
    animation-delay: -2.5s;
}

@keyframes floatCard {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

/* ==========================================
   FEATURE CARDS — EACH HAS ITS OWN IDENTITY
   ========================================== */

.feature-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 12px 28px rgba(25,65,43,.09);
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-radius .35s ease;
}

/* AI Assistant — mint green */
.feature-green {
    background: linear-gradient(145deg, #c9ffd8, #7de9a5);
    color: #123e2b;
    border-radius: 26px 8px 26px 8px;
}

/* Crop Advisor — warm yellow */
.feature-lime {
    background: linear-gradient(145deg, #fff1a8, #ffd77c);
    color: #594014;
    border-radius: 8px 26px 8px 26px;
}

/* Weather — cool blue */
.feature-blue {
    background: linear-gradient(145deg, #d8f3ff, #8bd8ff);
    color: #153d58;
    border-radius: 26px;
}

/* Plant Health — soft coral */
.feature-orange {
    background: linear-gradient(145deg, #ffd1b8, #ff9e88);
    color: #632f26;
    border-radius: 8px 26px 26px 26px;
}

/* Unique decorative shapes */
.feature-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 150px;
    height: 150px;
    right: -55px;
    bottom: -65px;
    border-radius: 45%;
    background: rgba(255,255,255,.28);
    transform: rotate(-25deg);
    transition: transform .5s ease;
}

.feature-lime::before {
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

.feature-blue::before {
    border-radius: 50% 50% 0 50%;
    transform: rotate(35deg);
}

.feature-orange::before {
    border-radius: 50% 0 50% 50%;
    transform: rotate(-25deg);
}

.feature-icon {
    transition: transform .35s ease;
}

.feature-arrow {
    transition: transform .35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        transform: translateY(-7px) rotate(-.5deg);
        box-shadow: 0 24px 42px rgba(25,65,43,.16);
    }

    .feature-lime:hover {
        transform: translateY(-7px) rotate(.5deg);
    }

    .feature-card:hover::before {
        transform: rotate(20deg) scale(1.25);
    }

    .feature-card:hover .feature-icon {
        transform: rotate(-8deg) scale(1.12);
    }

    .feature-card:hover .feature-arrow {
        transform: translate(4px,-4px);
    }
}

/* ==========================================
   DASHBOARD PANELS — DISTINCT COLOR THEMES
   ========================================== */

.panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: rgba(255,255,255,.77);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 15px 40px rgba(25,65,43,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

/* Thin coloured strip at top of each panel */
.panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--panel-accent, #66bd84);
}

/* AI Assistant — lavender */
.assistant-panel {
    --panel-accent: #a78bfa;
    background: linear-gradient(145deg, rgba(248,244,255,.95), rgba(255,255,255,.8));
}

/* Weather — sunny yellow */
.weather-panel {
    --panel-accent: #f5bd42;
    background: linear-gradient(145deg, rgba(255,250,224,.95), rgba(255,255,255,.8));
}

/* Soil — earthy beige */
#soilCard {
    --panel-accent: #b9895b;
    background: linear-gradient(145deg, rgba(250,240,226,.95), rgba(255,255,255,.82));
}

/* Crop Advisor — fresh green */
.crop-panel {
    --panel-accent: #45bb79;
    background: linear-gradient(145deg, rgba(229,255,234,.96), rgba(255,255,255,.82));
}

/* Plant Doctor — pink */
#plantCard {
    --panel-accent: #ed8ec9;
    background: linear-gradient(145deg, rgba(255,237,249,.96), rgba(255,255,255,.82));
}

/* Notifications — sky blue */
.notification-panel {
    --panel-accent: #69bce8;
    background: linear-gradient(145deg, rgba(231,247,255,.96), rgba(255,255,255,.82));
}

.panel-icon {
    transition: transform .35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .panel:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 50px rgba(25,65,43,.13);
        border-color: rgba(85,177,117,.35);
    }

    .panel:hover .panel-icon {
        transform: rotate(-8deg) scale(1.08);
    }
}

/* Panel headings */
.panel-heading-text h3 {
    letter-spacing: -.45px;
}

/* Inputs and selects */
input,
select,
textarea {
    background: rgba(255,255,255,.82);
    border-color: rgba(54,112,77,.17);
    transition: border-color .25s, box-shadow .25s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #45b978 !important;
    box-shadow: 0 0 0 4px rgba(69,185,120,.15);
}

/* Primary buttons */
.primary,
.welcome-button,
.voice-button {
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

@media (hover: hover) {
    .primary:hover,
    .welcome-button:hover,
    .voice-button:hover {
        transform: translateY(-2px);
        filter: brightness(1.04);
        box-shadow: 0 10px 22px rgba(20,95,55,.15);
    }
}

/* Scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keep anchor destinations visible below the top bar */
#dashboard,
#assistant,
#cropCard,
#weatherCard,
#soilCard,
#plantCard,
#notifications {
    scroll-margin-top: 90px;
}

/* Mobile */
@media (max-width: 768px) {
    .feature-card,
    .panel {
        border-radius: 20px;
    }

    .welcome-banner {
        border-radius: 22px;
    }
}

/* Respect accessibility settings */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}
/* Farm Profile */
.farm-profile {
    max-width: 700px;
    margin: 25px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.farm-profile h2 {
    color: #237a3b;
    margin-bottom: 8px;
}

.farm-profile label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600;
}

.farm-profile input,
.farm-profile select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
}

.farm-profile button {
    margin-top: 18px;
    margin-right: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    background: #237a3b;
    color: white;
    cursor: pointer;
}

.farm-profile button:hover {
    background: #195d2b;
}

.farm-profile input:disabled,
.farm-profile select:disabled {
    background: #f0f0f0;
}

#farmProfileMessage {
    margin-top: 12px;
}
.farm-profile {
    position: relative;
    max-width: 700px;
    margin: 25px auto;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card-edit-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid #d8e7dc;
    border-radius: 10px;
    background: #f0f8f1;
    cursor: pointer;
    font-size: 17px;
}

.farm-profile label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}

.farm-profile input,
.farm-profile select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.farm-profile form button {
    margin: 16px 8px 0 0;
    padding: 11px 17px;
    border: 0;
    border-radius: 8px;
    background: #237a3b;
    color: white;
    cursor: pointer;
}

.farm-profile form button[type="button"] {
    background: #68766c;
}

.farm-profile [hidden] {
    display: none !important;
}

.farm-overview-panel {
    margin-bottom: 18px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.overview-metric {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(118, 209, 146, 0.12);
    border: 1px solid rgba(39, 112, 67, 0.12);
}

.overview-metric small {
    display: block;
    color: #4b6d5d;
    margin-bottom: 5px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overview-metric strong {
    font-size: 1rem;
    word-break: break-word;
}

#farmProfileMessage {
    margin-top: 12px;
}

.farm-profile-form {
    margin-top: 10px;
}

.farm-profile-row {
    margin: 10px 0;
}

.farm-profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

#cropName {
    min-height: 44px;
}

@media (max-width: 800px) {
    .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
}
/* Account menu */
#account-menu {
position: fixed;
top: 15px;
left: 20px;
right: auto;
z-index: 99999;
display: block;
visibility: visible;
opacity: 1;
font-family: inherit;
}


#account-button {
    display: block;
    visibility: visible;
    opacity: 1;
    position: relative;
    padding: 10px 16px;
    border: 1px solid #d5e4d5;
    border-radius: 10px;
    background: #ffffff;
    color: #245c36;
    cursor: pointer;
    font-size: 14px;
}

#account-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    min-width: 160px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e0e8e0;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

#account-dropdown[hidden],
#account-dropdown a[hidden],
#account-dropdown button[hidden] {
    display: none !important;
}

#account-dropdown a,
#account-dropdown button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #245c36;
    text-align: left;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

#account-dropdown a:hover,
#account-dropdown button:hover {
    background: #edf6ed;
}

#logout-button {
    color: #b42318 !important;
}
.header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
flex-wrap: wrap;
}

#account-menu {
position: relative;
top: auto;
right: auto;
left: auto;
z-index: 1000;
flex-shrink: 0;
}

#account-button {
white-space: nowrap;
}

#account-dropdown {
position: absolute;
top: calc(100% + 8px);
right: 0;
z-index: 1001;
}
