html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ── Shared budget modal form styling ──────────────────────────────────────── */
/* Used by Create Budget modal (Index.cshtml) and Add/Edit Budget Item modal   */

/* Rounded, shadowed modal chrome */
.budget-modal-dialog .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
}

.budget-modal-header {
    background: #060F14;
    color: #fff;
    border-bottom: 1px solid #0A2530;
    padding: 1rem 1.25rem;
}

.budget-modal-header .modal-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.budget-modal-header .modal-title img {
    height: 22px;
    width: 22px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Form labels */
.budget-modal .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

/* Form text (hints) */
.budget-modal .form-text {
    font-size: 0.8rem;
    color: #6b7280;
}

.budget-modal .input-group-text {
    background: #f8fafc;
    border-right: none;
    color: #9ca3af;
    min-width: 42px;
    justify-content: center;
}

.budget-modal .input-group .form-control,
.budget-modal .input-group .form-select,
.budget-modal-body .form-control,
.budget-modal-body .form-select {
    border-left: none;
}

.budget-modal .input-group:focus-within .input-group-text,
.budget-modal-body .input-group:focus-within .input-group-text {
    border-color: #5CE8C0;
    color: #2EA882;
}

.budget-modal .input-group:focus-within .form-control,
.budget-modal .input-group:focus-within .form-select,
.budget-modal-body .input-group:focus-within .form-control,
.budget-modal-body .input-group:focus-within .form-select {
    border-color: #5CE8C0;
    box-shadow: none;
}

.budget-modal .form-control:focus,
.budget-modal .form-select:focus,
.budget-modal-body .form-control:focus,
.budget-modal-body .form-select:focus {
    border-color: #5CE8C0;
    box-shadow: none;
}

.btn-budget-modal {
    background: #5CE8C0;
    color: #060F14;
    border: none;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.btn-budget-modal:hover, .btn-budget-modal:focus {
    background: #2EA882;
    color: #fff;
}