/* Reset & Scrollbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #222;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Base HTML, Body */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
body {
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: row;
}

/* Allow scrolling on mobile */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
  }
}

/* Background Blobs */
.blobs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: all 4s ease-in-out;
  filter: blur(80px);
}

/* SIDEBAR */
.sidebar {
  position: relative;
  width: 60px; /* Collapsed width */
  background-color: rgba(255, 255, 255, 0.07);
  padding: 1rem;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.sidebar.expanded {
  width: 200px; /* Expanded width */
}

/* Expand/Collapse Button - fixed position */
.expand-sidebar-btn {
  position: absolute;
  top: 1rem;
  left: 0;
  width: 60px; /* Fixed width same as collapsed sidebar */
  text-align: center;
  font-size: 1.5rem;
  color: #bbb;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Separator */
.sidebar-separator {
  margin-top: 4rem;  /* Leave space for the fixed collapse button */
  width: 100%;
  border: 0;
  height: 1px;
  background: #555;
  margin-bottom: 1rem;
}

/* Sidebar Icons Container */
.sidebar-icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each Icon Button */
.sidebar-icons button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.2rem;
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  line-height: 1;
}

/* Label for Icon Buttons with enhanced animation */
.sidebar-icons button .label {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.sidebar.expanded .sidebar-icons button .label {
  opacity: 1;
  transform: translateX(0);
}

/* MAIN CONTENT */
.main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: flex-start;
  padding-top: 3rem;
}
.page-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}
.page-header p {
  font-size: 1.3rem;
  color: #ccc;
}
.cards-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
}

/* Updated Columns for Cards */
.left-column,
.center-column,
.right-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 300px;
  height: 300px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.editor-card:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}
.color-bar {
  height: 8px;
  width: 100%;
}
.editor-card-header {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}
.editor-card-content {
  flex: 1;
  padding: 1rem;
  text-align: center;
  font-size: 1.1rem;
}

/* MOBILE-FRIENDLY */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: 60px;
    padding: 0.5rem;
    flex-direction: row;
  }
  .sidebar.expanded {
    height: auto;
    flex-direction: column;
  }
  .expand-sidebar-btn {
    position: static;
    width: auto;
    text-align: center;
  }
  .sidebar-separator {
    margin-top: 0;
    width: 100%;
  }
  .sidebar-icons button {
    justify-content: flex-start;
  }
  .main-content {
    width: 100%;
    padding-top: 1rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .page-header p {
    font-size: 1rem;
  }
  .cards-container {
    flex-direction: column;
    gap: 1rem;
  }
  .editor-card {
    width: 90%;
    aspect-ratio: 1 / 1;
  }
}
