/* General styling */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #f5f5f5;
}

#root {
  min-height: 100vh;
}

/* Hide scrollbar for cleaner UI but maintain functionality */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Chart styling */
.recharts-wrapper {
  margin: 0 auto;
}

.recharts-default-tooltip {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Table styling enhancements */
.MuiTableRow-root:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.table-cell-numeric {
  text-align: right !important;
}

.table-cell-highlight {
  font-weight: 500;
}

/* Markdown content styling */
.markdown-content h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.markdown-content h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
}

.markdown-content h3 {
  font-size: 1.3rem;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
}

.markdown-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.markdown-content ul, .markdown-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content code {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.markdown-content pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.markdown-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  margin-left: 0;
  color: #666;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.markdown-content th, .markdown-content td {
  border: 1px solid #ddd;
  padding: 0.5rem;
}

.markdown-content th {
  background-color: #f5f5f5;
  font-weight: 500;
}

/* Mermaid diagram styling */
.mermaid {
  text-align: center;
}

.mermaid svg {
  max-width: 100%;
  height: auto !important;
}

/* Animation for loading and transitions */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Paper elevation subtle enhancement */
.MuiPaper-elevation1 {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.MuiPaper-elevation2 {
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hide-on-mobile {
    display: none !important;
  }
  
  .markdown-content h1 {
    font-size: 1.8rem;
  }
  
  .markdown-content h2 {
    font-size: 1.4rem;
  }
}
