/* Wrapper utama */
.agro-app-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 70px; /* ruang untuk bottom nav */
    background: #f5f7fb;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* HEADER */
.agro-app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.agro-app-logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #256d3b;
}

.agro-app-header-right {
    display: flex;
    gap: 6px;
}

.agro-app-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #f3f4f6;
    text-decoration: none;
    font-size: 16px;
}

/* SECTIONS */
.agro-app-section {
    padding: 14px 14px 6px;
}

.agro-app-welcome {
    padding-top: 12px;
}

.agro-app-greeting {
    margin: 0 0 4px;
    font-size: 16px;
}

.agro-app-subtitle {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.agro-app-section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
}

/* QUICK ACTIONS */
.agro-app-quick-actions {
    padding-top: 6px;
}

/* Quick Actions: align semua ikon ke kiri */
.agro-app-quick-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important; /* rapat kiri */
    gap: 14px; /* jarak antara item */
}

/* Set keluasan setiap ikon */
.agro-app-quick-item {
    width: 80px; /* Sham boleh ubah 70–90px */
    text-align: center;
}

.agro-app-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.agro-app-quick-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 4px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
}

.agro-app-quick-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.agro-app-quick-label {
    display: block;
    font-size: 11px;
    color: #374151;
}

/* CARD GRID */
.agro-app-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.agro-app-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
}

.agro-app-card.small {
    flex-direction: row;
}

.agro-app-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #ecfdf3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.agro-app-card-body {
    flex: 1;
}

.agro-app-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #111827;
}

.agro-app-card-desc {
    font-size: 11px;
    color: #6b7280;
}

/* Card grid compact untuk profil */
.agro-app-card-grid-compact .agro-app-card {
    padding: 8px;
}

/* BOTTOM NAV */
.agro-app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: space-around;
    padding: 6px 4px 8px;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -1px 6px rgba(0,0,0,0.06);
}

.agro-app-nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 10px;
    color: #6b7280;
}

.agro-app-nav-icon {
    display: block;
    font-size: 18px;
}

.agro-app-nav-label {
    display: block;
    margin-top: 1px;
}

.agro-app-nav-item--active .agro-app-nav-icon,
.agro-app-nav-item--active .agro-app-nav-label {
    color: #256d3b;
    font-weight: 600;
}

/* DESKTOP – bagi nampak macam web biasa sikit */
@media (min-width: 768px) {
    .agro-app-wrapper {
        max-width: 960px;
        padding-bottom: 0;
        margin-top: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .agro-app-bottom-nav {
        position: static;
        margin: 10px 14px 16px;
        border-radius: 999px;
    }
}
