/* Base styles */
.base, .smooth-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background-color: #000;
  color: #f5f5f7 ;
  text-shadow: none;
  transition: all 0.2s ease;
}

.smooth-text {
  border-radius: 6px;
}

/* Container style */ 
.container {
  display: flex;
  justify-content: flex-start;
  overflow-y: auto;
  height: 100vh;
  max-width: 100%;
  margin: 0;
  background-color: #000;
}

/* Table styles */
.table-outline, .table-active {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  background-color: #111;
  border-radius: 6px;
  overflow: hidden;
}

.table-outline th, .table-outline td,
.table-active th, .table-active td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #333;
}

.table-outline th {
  background-color: #222;
  font-weight: 500;
  color: #fff;
}

/* Sidemenu styles */
.sidemenu {
  margin-top: 1.5rem;
  flex: 0 0 260px;
  background-color: #000;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  border-right: 1px solid #333;
  overflow-y: auto;
  height: 100vh;
  position: relative;
  transition: margin-left 0.3s ease;
}

.sidemenu.collapsed {
  margin-left: -260px;
}

/* Toggle button styles */
.menu-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  width: 32px;
  height: 32px;
  background-color: #2779F5;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  transition: all 0.3s ease;
  box-shadow: 0 1px 6px rgba(238, 130, 238, 0.2);
  backdrop-filter: blur(10px);
}

.menu-toggle:hover {
  background-color: #F5F527;
  transform: scale(1.02);
}


/* Hamburger icon */
.menu-toggle::before {
  content: "☰";
  font-size: 16px;
  font-weight: normal;
}

.menu-toggle.collapsed::before {
  content: "☰";
}

/* Adjust content when menu is collapsed */
.container.menu-collapsed .content {
  margin-left: 0;
  max-width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
  .sidemenu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    margin-left: -260px;
    transition: margin-left 0.3s ease;
  }
  
  .sidemenu:not(.collapsed) {
    margin-left: 0;
  }
  
  .menu-toggle {
    left: 15px !important;
    top: 12px;
  }
  
  .content {
    margin-left: 0;
    padding: 3rem 1.5rem 2rem;
  }
  
  .container.menu-collapsed .content {
    margin-left: 0;
  }
}

.sidemenu a {
  display: block;
  padding: 0.4rem 1.5rem;
  color: #f5f5f7;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.sidemenu a:hover {
   color: #2779F5;
}

.sidemenu a.active {
  color: #ee82ee;
  background-color: rgba(238, 130, 238, 0.1);
}

.sidemenu ul {
  list-style-type: none;
  padding: 0;
  margin: 0.5rem 0;
}

.sidemenu ul ul {
  margin: 0;
  padding-left: 1rem;
}

.sidemenu ul li a {
  padding: 0.3rem 1.5rem;
  font-size: 0.8125rem;
}

/* Content styles */
.content {
  flex: 1;
  padding: 2rem 3rem;
  padding-top: 2.5rem;
  max-width: 900px;
  line-height: 1.6;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.content h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.content h2 {
  font-size: 1.75rem;
  font-weight: 500;
  margin: 2rem 0 1rem;
}

.content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 1.5rem 0 0.75rem;
}

.content p {
  margin: 0 0 1rem;
}

.content a {
  color: white;
  text-decoration: none;
}

.content a:hover {
  color: #2779F5;
  text-decoration: underline;
}

.content code {
  background-color: #111;
  border-radius: 4px;
  padding: 0.2em 0.4em;
  font-size: 0.875em;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  color: #ff7ab2;
}

/* Warning banner styles */
.warning-banner {
  background-color: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.2);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.warning-banner p {
  color: #F5F5F7;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Add these new styles for navigation and structure */
.nav-breadcrumb {
  font-size: 0.875rem;
  color: #8E8E93;
  margin-bottom: 1rem;
}

.nav-breadcrumb a {
  color: #ee82ee;
  text-decoration: none;
}

.nav-breadcrumb a:hover {
  text-decoration: underline;
}

.nav-breadcrumb span::before {
  content: "›";
  margin: 0 0.5rem;
}

/* Image styling */
.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
}

@media (min-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

figure {
    margin: 1rem 0;
    text-align: center;
    width: 100%;
}

figure a {
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

figure a:hover {
    transform: scale(1.02);
}

figure a:hover img {
    border-color: #ee82ee;
}

figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    transition: border-color 0.2s ease;
}

figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #666;
    padding: 0 1rem;
}

/* For images inside list items */
li figure {
    margin: 1rem 0;
}

li img {
    max-width: 100%;
    height: auto;
}

.rainbow-text {
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, violet, #8b00ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: rainbow-text-animation 10s linear infinite;
}

@keyframes rainbow-text-animation {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Documentation section styling */
.sidemenu .doc-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.sidemenu .doc-header {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
}

.sidemenu .doc-category {
    color: #ccc;
    font-size: 13px;
    margin-bottom: 5px;
    margin-left: 10px;
    margin-top: 10px;
}

.sidemenu .doc-category:first-child {
    margin-top: 0;
}

.sidemenu .doc-links {
    margin-left: 5px;
}

.sidemenu .doc-links a {
    font-size: 12px;
    color: #aaa;
    display: block;
    margin-bottom: 3px;
    text-decoration: none;
}

.sidemenu .doc-links a:hover {
    color: #ddd;
}

/* Navigation section styling */
.sidemenu .nav-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.sidemenu .nav-section:not(:last-child) {
    border-bottom: 1px solid #333;
}

.sidemenu .nav-section:first-child {
    border-bottom: 2px solid #444;
}

.sidemenu .nav-header {
    color: #888;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    margin-top: 5px;
}

.sidemenu .nav-section a {
    display: block;
    margin-bottom: 5px;
}
