html {
  font-size: 16px;
}

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

body {
  font-weight: 700;
}

.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: 0;
  padding-bottom: 80px;
}

/* ===== Common Pagination ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 4px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: white;
    color: #1a1a2e;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.page-link:hover:not(.disabled):not(.active) {
    border-color: #b8860b;
    color: #b8860b;
}

.page-link.active {
    background: linear-gradient(135deg, #b8860b, #daa520);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(184,134,11,0.3);
}

.page-link.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Fixed Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 24px rgba(184, 134, 11, 0.18);
    z-index: 1000;
    border-radius: 22px 22px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #c5b88a;
    transition: all 0.2s ease;
    gap: 3px;
    padding: 6px 8px;
    border-radius: 16px;
    min-width: 44px;
    position: relative;
}

.nav-item:hover {
    text-decoration: none;
    color: #b8860b;
    background: rgba(184,134,11,0.07);
}

.nav-item.active {
    color: #b8860b;
    background: rgba(184,134,11,0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #b8860b, #daa520);
    border-radius: 0 0 6px 6px;
}

.nav-item i {
    font-size: 1.4rem;
}

.nav-item span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.empty-state {
  text-align: center;
  padding: 32px 18px;
  color: #999;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.55;
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #1a1a2e;
  color: white;
  padding: 14px 20px;
  border-radius: 30px;
  text-align: center;
  font-size: 16px;
  z-index: 2000;
  transition: opacity 0.25s ease;
}

.toast-notification.success {
  background: #28a745;
}

.toast-notification.error {
  background: #dc3545;
}

.toast-notification.warning {
  background: #ff9800;
}

/* ===== Responsive containers (mobile → tablet) ===== */
.page-wrapper { max-width: 500px; margin: 0 auto; }

@media (min-width: 560px) {
    .mobile-container,
    .page-wrapper { max-width: 640px; padding-left: 20px; padding-right: 20px; }
}

@media (min-width: 768px) {
    .mobile-container,
    .page-wrapper { max-width: 760px; padding-left: 24px; padding-right: 24px; }
}

/* ===== Tablet bottom nav ===== */
@media (min-width: 768px) {
    .bottom-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 760px;
        max-width: 100%;
    }
}
