/* ============================================================
   Plant Nursery Inventory — Mobile-First Stylesheet
   ============================================================ */

/* === BASE === */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}
@media (min-width: 768px) {
    html { font-size: 15px; }
}
body {
    margin-bottom: 0;
    background: #f5f6fa;
    color: #333;
}

/* === FOCUS RING (brand green) === */
.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus, .form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(46,125,50,0.4);
    outline: none;
}

/* === PAGE HEADER === */
.page-header {
    padding: 16px 0 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.page-header h1,
.page-header .h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2e7d32;
    margin: 0;
}
@media (max-width: 767.98px) {
    .page-header { padding: 10px 0 8px; margin-bottom: 14px; }
    .page-header h1, .page-header .h2 { font-size: 1.1rem; }
}

/* === CARDS === */
.card {
    border: none;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
}
.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}
@media (max-width: 767.98px) {
    .card { border-radius: 8px; }
    .card-body { padding: 14px; }
}

/* === STAT CARDS === */
.stat-card .card-body { padding: 18px 16px; }
.stat-card h2, .stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 4px 0 0;
}
.stat-card .stat-icon { font-size: 2.5rem; opacity: 0.45; }
@media (max-width: 767.98px) {
    .stat-card h2, .stat-card .stat-number { font-size: 1.3rem; }
    .stat-card .card-body { padding: 12px; }
    .stat-card .stat-icon { font-size: 1.8rem !important; }
}

/* === TABLES === */
.table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    white-space: nowrap;
}
.table td { vertical-align: middle; font-size: 0.9rem; }
@media (max-width: 767.98px) {
    .table th { font-size: 0.72rem; padding: 8px 6px; }
    .table td { padding: 7px 6px; font-size: 0.82rem; }
}

/* === FORMS === */
.form-control, .form-select {
    border-radius: 8px;
    border-color: #ced4da;
}
.form-label { font-weight: 500; font-size: 0.88rem; color: #495057; }
@media (max-width: 767.98px) {
    /* Prevent iOS auto-zoom on focus */
    .form-control, .form-select { font-size: 16px !important; }
    .form-label { font-size: 0.85rem; }
}

/* === BUTTONS === */
.btn { border-radius: 8px; font-weight: 500; }
@media (max-width: 767.98px) {
    .btn-sm { min-height: 32px; padding: 4px 10px; font-size: 0.8rem; }
}

/* === BADGES === */
.badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

/* === ALERTS === */
.alert { border-radius: 8px; border: none; }

/* === ACTION BUTTON GROUPS IN TABLES === */
.action-btns { display: flex; gap: 4px; justify-content: center; }
