/* ===== MOBILE APP LAYOUT ===== */

.app-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(140deg, #1f2f6b, #3b60dd);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header i vogėl lart */
.app-header {
    height: 56px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    color: #ffffff;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .app-brand img {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        object-fit: contain;
    }

    .app-brand span {
        font-weight: 600;
        font-size: 16px;
    }

.app-top-nav a {
    margin-left: 10px;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
}

/* Main  centra pėrmbajtjen si app */
.app-main {
    flex: 1;
    padding: 10px 16px 70px; /* 70px pėr tabbar-in poshtė */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== LOGIN SCREEN ===== */

.login-screen {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.login-logo {
    text-align: center;
    margin-bottom: 16px;
}

    .login-logo img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: contain;
        margin-bottom: 6px;
    }

    .login-logo h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

    .login-logo p {
        margin: 2px 0 0;
        font-size: 14px;
        color: #555;
    }

.login-form .form-group {
    margin-bottom: 14px;
}

.login-form label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

/* Textbox-at mobile */
.login-input {
    width: 80%;
    height: 38px; /* mė i ultė */
    border-radius: 12px; /* jo shumė oval */
    border: 1px solid #c7cbd7;
    padding: 6px 12px; /* padding mė i vogėl */
    font-size: 13px; /* font mė i vogėl */
    background: #fafbff;
}

    .login-input:focus {
        border-color: #1f2f6b;
        box-shadow: 0 0 0 2px rgba(31, 47, 107, 0.15);
    }

/* Remember me */
.login-remember {
    margin: 4px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Butoni Hyr */
.login-btn {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: #1f2f6b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

    .login-btn:active {
        opacity: 0.9;
    }

/* Gabimet */
.login-error {
    font-size: 12px;
}

.login-validation {
    font-size: 13px;
    margin-bottom: 10px;
}

/* API response box */
.login-api {
    margin-top: 10px;
    font-size: 11px;
    max-height: 120px;
    overflow: auto;
    background: #f7f9fc;
    border-radius: 8px;
    padding: 6px;
}

/* ===== TABBAR POSHTĖ (kur ėshtė i loguar) ===== */
.mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    background: #ffffff;
    border-top: 1px solid #dee1ec;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.tab-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    color: #1f2f6b;
}

.tab-icon {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 2px;
}

/* Buton Instalo kur nuk ėshtė i loguar */
.floating-install-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #1f2f6b;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nė desktop, thjesht mos me u prish, por fokus ėshtė mobile */
@media (min-width: 768px) {
    .app-body {
        max-width: 420px;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
    }
}
.farmer-header {
    height: 64px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #00AEEF, #0066CC);
    color: #ffffff;
}

/* dy anėt (majtas/djathtas)  pėr balancim */
.farmer-header-side {
    width: 70px; /* sa pėr tė mbajtur titullin nė qendėr */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* qendra me logon & tekstin */
.farmer-header-center {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* logo mė e vogėl */
.farmer-header-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    object-fit: contain;
}

.farmer-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.farmer-header-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
}

.farmer-header-sub {
    font-size: 10px;
    opacity: 0.9;
}

/* butoni Dalje nė tė djathtė */
.farmer-header-right {
    justify-content: flex-end;
}

.farmer-logout-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.8);
    background: transparent;
    color: #ffffff;
    text-decoration: none;
}
/* Karta pėr Analizėn e Fundit */
.analysis-last-card {
    background: #fdf7fb;
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    border-top: 4px solid #00AEEF; /* vija blu sipėr */
}

.analysis-last-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .analysis-last-header h3 {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
    }

.analysis-last-extra {
    font-size: 12px;
    font-weight: 600;
    color: #00AEEF;
}

/* Grid 2 kolona: majtas label, djathtas vlera */
.analysis-last-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    column-gap: 8px;
    row-gap: 4px;
    font-size: 12px;
}

    .analysis-last-grid .label {
        color: #555;
    }

    .analysis-last-grid .value {
        text-align: right;
        font-weight: 600;
    }
/* NAV POSHTĖ  container */
.farmer-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    display: flex;
    justify-content: center;
    background: transparent;
    z-index: 1000;
}

/* Shufra e bardhė me hijė si nė screenshot */
.farmer-bottom-inner {
    width: 100%;
    max-width: 420px;
    height: 56px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: stretch;
}

/* Ēdo tab */
.farmer-tab {
    flex: 1;
    margin: 4px 3px;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #9ba3b5; /* gri e qetė */
}

/* Ikona & label */
.farmer-tab-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.farmer-tab-label {
    line-height: 1;
}

/* Tab aktiv  pilule blu nė mes */
.farmer-tab.active {
    background: #27b5ff;
    color: #ffffff;
    font-weight: 600;
}

/* qė pėrmbajtja tė mos mbulohet prej nav-it */
.farmer-main {
    padding-bottom: 80px;
}
