/**
 * CodeTM - Clean White & Gray Mobile Stylesheet
 * 100% Pristine White Background, Slate Gray Borders, Crisp Monospace Typography.
 * Zero Neon Glows, Zero Dark Backgrounds.
 */

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04) !important;
}

.nav-tab-item {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  flex: 1;
  text-decoration: none;
  box-shadow: none !important;
  outline: none !important;
}

.nav-tab-item svg {
  width: 18px;
  height: 18px;
  stroke: #64748b !important;
  stroke-width: 1.8;
  transition: stroke 0.15s ease;
  display: block;
}

.nav-tab-item.active {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700;
}

.nav-tab-item.active svg {
  stroke: #0f172a !important;
  stroke-width: 2.2;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .desktop-tab-bar {
    display: none !important;
  }

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

  .main-workspace {
    padding-bottom: 74px !important;
    background-color: #f8fafc !important;
  }

  .tab-pane {
    padding: 14px 12px !important;
  }

  .problem-card {
    padding: 16px 14px !important;
    border-radius: 6px !important;
  }

  .problem-title {
    font-size: 20px !important;
  }

  .score-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .complexity-charts-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .notes-container {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .notes-editor-pane, .notes-preview-pane {
    min-height: 280px !important;
  }

  .code-editor-wrapper {
    height: 340px !important;
  }

  .app-header {
    padding: 0 14px !important;
    height: 54px !important;
  }

  .brand-logo {
    font-size: 17px !important;
  }

  .brand-logo .logo-badge {
    display: none !important;
  }

  .header-center .btn-throw span {
    display: none !important;
  }

  .header-center .btn-throw {
    padding: 7px 10px !important;
  }

  .header-center .btn-secondary span {
    display: none !important;
  }

  .header-center .btn-secondary {
    padding: 7px 10px !important;
  }
}
