/* ==========================================================================
   PulmoSense-AI - Mobile Android Responsive Stylesheet
   Breakpoint: < 992px
   ========================================================================== */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 15px rgba(15, 23, 42, 0.08);
  z-index: 1050;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.25rem;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--muted-color);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--primary-color);
  font-weight: 700;
}

.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  z-index: 990;
  padding: 0 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    display: none !important;
  }
  
  .app-header {
    display: none !important;
  }

  .mobile-header {
    display: flex !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
    padding-bottom: calc(var(--mobile-nav-height) + 0.75rem);
  }

  .main-content {
    padding: 1rem 0.85rem !important;
  }

  /* Risk Hero Card Mobile Layout Adjustments */
  .risk-hero-card {
    padding: 1.25rem 1rem;
    text-align: center;
  }

  .risk-hero-card .risk-circle-wrapper {
    margin-bottom: 1rem;
  }

  /* Table Cards Transformation on Mobile */
  .table-mobile-cards thead {
    display: none;
  }

  .table-mobile-cards tbody tr {
    display: block;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-sm);
  }

  .table-mobile-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.85rem;
  }

  .table-mobile-cards tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted-color);
    font-size: 0.75rem;
    text-transform: uppercase;
  }

  .stat-card {
    padding: 0.85rem 1rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
}
