* {
  margin: 0; /* Remove default spacing around elements */
  padding: 0; /* Remove default inner spacing */
  box-sizing: border-box; /* Include padding/border in element width */
}

/* BODY STYLING - Sets defaults for the entire page */
body {
  background: rgb(0, 0, 0)
    url("https://res.cloudinary.com/dlyycwdgp/image/upload/v1745770052/cherryblossom_caaafl.jpg")
    no-repeat center fixed;
  background-size: cover;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  color: rgb(247, 237, 247);
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

html {
  overflow-x: hidden; /* Prevent horizontal scrolling at root level */
}

/* ==========================
   DRAWER SYSTEM STYLES
   ========================== */

/* Drawer Root Container */
.drawer {
  position: relative;
  display: flex;
  min-height: 100vh;
}

/* Hidden Checkbox Toggle */
.drawer-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Drawer Content - Main page content */
.drawer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

/* Drawer Side - Sidebar wrapper */
.drawer-side {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

/* Enable pointer events when drawer is open */
.drawer-toggle:checked ~ .drawer-side {
  pointer-events: auto;
}

/* Drawer Overlay - Dark overlay when drawer is open */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  cursor: pointer;
  z-index: 1000;
}

/* When checkbox is checked - show drawer */
.drawer-toggle:checked ~ .drawer-side {
  transform: translateX(0);
}

.drawer-toggle:checked ~ .drawer-side .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

/* Pulse animation for overlay to indicate it's clickable */
@media (max-width: 768px) {
  .drawer-toggle:checked ~ .drawer-side .drawer-overlay {
    animation: overlayPulse 2s ease-in-out 0.5s 2;
  }
}

@keyframes overlayPulse {
  0%,
  100% {
    background-color: rgba(0, 0, 0, 0.85);
  }
  50% {
    background-color: rgba(0, 0, 0, 0.75);
  }
}

/* ==========================
   NAVIGATION & HEADER
   ========================== */

/* HERO SECTION - The big title at the top */
.hero {
  background: rgba(138, 20, 105, 0.695);
  color: white;
  text-align: center;
  padding: 2rem;
  font-size: 2.5rem;
  font-weight: bold;
  border-bottom: double rgb(248, 246, 246);
}

/* NAVIGATION BAR - Enhanced for devlogs navigation */
.navbar {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(20, 10, 30, 0.9) 100%
  );
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 3px solid rgba(243, 104, 243, 0.5);
  box-shadow: 0 4px 20px rgba(243, 104, 243, 0.3);
}

/* Hamburger Menu Button */
.drawer-button {
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  border-radius: 4px;
  border: 2px solid rgb(243, 104, 243);
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.drawer-button:hover {
  background-color: rgba(243, 104, 243, 0.3);
  box-shadow: 0 2px 12px rgba(243, 104, 243, 0.5);
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  stroke: rgb(243, 104, 243);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 3px rgba(243, 104, 243, 0.8));
}

/* SESSION DROPDOWN - Compact selectors for projects and sessions */
.project-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-selector label {
  color: rgb(138, 20, 105);
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(138, 20, 105, 0.5);
}

.project-dropdown {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.4) 0%,
    rgba(102, 126, 234, 0.3) 100%
  );
  color: white;
  border: 2px solid rgba(138, 20, 105, 0.6);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  max-width: 300px;
}

.project-dropdown:hover {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.6) 0%,
    rgba(102, 126, 234, 0.5) 100%
  );
  border-color: rgb(138, 20, 105);
  box-shadow: 0 4px 12px rgba(138, 20, 105, 0.4);
  transform: translateY(-1px);
}

.project-dropdown:focus {
  border-color: rgb(138, 20, 105);
  box-shadow:
    0 0 0 3px rgba(138, 20, 105, 0.2),
    0 4px 16px rgba(138, 20, 105, 0.5);
}

.project-dropdown option {
  background: rgb(20, 10, 30);
  color: white;
  padding: 0.5rem;
}

/* SESSION DROPDOWN - Compact selector for sessions */
.session-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.session-selector label {
  color: rgb(243, 104, 243);
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(243, 104, 243, 0.5);
}

.session-dropdown {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.4) 0%,
    rgba(102, 126, 234, 0.3) 100%
  );
  color: white;
  border: 2px solid rgba(243, 104, 243, 0.5);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 300px;
  max-width: 500px;
}

.session-dropdown:hover {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.6) 0%,
    rgba(102, 126, 234, 0.5) 100%
  );
  border-color: rgb(243, 104, 243);
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.4);
  transform: translateY(-1px);
}

.session-dropdown:focus {
  border-color: rgb(243, 104, 243);
  box-shadow:
    0 0 0 3px rgba(243, 104, 243, 0.2),
    0 4px 16px rgba(243, 104, 243, 0.5);
}

.session-dropdown option {
  background: rgb(20, 10, 30);
  color: white;
  padding: 0.5rem;
}

/* RESUME TABS - For about.html section filtering */
#resume-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
}

.session-tab {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.6) 0%,
    rgba(102, 126, 234, 0.4) 100%
  );
  color: white;
  border: 2px solid rgba(243, 104, 243, 0.7);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.session-tab:hover {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.6) 0%,
    rgba(102, 126, 234, 0.5) 100%
  );
  border-color: rgb(243, 104, 243);
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.4);
  transform: translateY(-1px);
}

.session-tab.active {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.8) 0%,
    rgba(102, 126, 234, 0.7) 100%
  );
  border-color: rgb(243, 104, 243);
  box-shadow: 0 0 15px rgba(243, 104, 243, 0.6);
}

.session-tab i {
  margin-right: 0.3rem;
}

/* PDF DOWNLOAD BUTTON */
.pdf-download-btn {
  background: linear-gradient(
    135deg,
    rgba(243, 104, 243, 0.8) 0%,
    rgba(138, 20, 105, 0.8) 100%
  );
  color: white;
  border: 2px solid rgb(243, 104, 243);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(243, 104, 243, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.pdf-download-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(243, 104, 243, 1) 0%,
    rgba(138, 20, 105, 1) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 104, 243, 0.6);
}

.pdf-download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(243, 104, 243, 0.4);
}

.pdf-download-btn i {
  font-size: 1.1rem;
}

/* NAVIGATION LIST - Remove default list styling */
.navbar ul {
  list-style: none; /* Remove bullet points */
  display: flex; /* Use flexbox for horizontal layout */
  gap: 2rem; /* Space between navigation items */
  flex: 1;
  justify-content: center;
}

/* NAVIGATION LINKS - Style the clickable links */
.navbar a {
  color: white; /* White text */
  text-decoration: none; /* Remove underline */
  padding: 0.5rem 1rem; /* Add space around text */
  border-radius: 4px; /* Rounded corners */
  transition: all 0.3s; /* Smooth color change on hover */
  font-weight: bold;
}

/* HOVER EFFECT - What happens when you hover over navigation */
.navbar a:hover {
  background-color: rgba(243, 104, 243, 0.2);
  color: rgb(243, 104, 243);
}

/* ==========================
   MAIN CONTENT LAYOUT
   ========================== */

/* MAIN CONTAINER - Holds main content */
.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Page Title */
.page-title {
  color: rgb(255, 255, 255);
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: thick double rgba(248, 246, 246, 0.688);
  text-align: center;
}

/* MAIN CONTENT AREA - Main column for content */
.main-content {
  background-color: rgba(0, 0, 0, 0.822);
  padding: 2rem;
  border-radius: 10px;
  border: thick double rgba(248, 246, 246, 0.688);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.397);
}

/* MAIN TITLE - The h2 in main content */
.main-content h2 {
  color: rgb(243, 104, 243);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 2px solid rgb(243, 104, 243);
  padding-bottom: 0.5rem;
}

/* Main content text styling for readability */
.main-content p {
  color: rgb(240, 240, 240);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.main-content h3 {
  color: rgb(255, 255, 255);
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
}

.main-content h3 strong {
  color: rgb(255, 255, 255);
}

.main-content ul,
.main-content ol {
  color: rgb(240, 240, 240);
  margin-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.main-content li {
  color: rgb(240, 240, 240);
  margin-bottom: 0.5rem;
}

.main-content strong {
  color: rgb(243, 104, 243);
  font-weight: 600;
}

.main-content hr {
  border: none;
  border-top: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
}

.main-content section {
  margin-bottom: 2rem;
}

.main-content section h2,
.main-content section h3 {
  color: rgb(243, 104, 243);
}

.main-content a {
  color: rgb(150, 200, 255);
  text-decoration: none;
}

.main-content a:hover {
  color: rgb(243, 104, 243);
}

.main-content i.bi {
  color: rgb(243, 104, 243);
}

/* DEV LOG ARTICLE ENTRIES */
#dev-logs article {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-left: 4px solid rgb(243, 104, 243);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#dev-logs article h3 {
  color: rgb(243, 104, 243);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: bold;
}

#dev-logs article small {
  color: rgb(180, 180, 180);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1rem;
}

#dev-logs article p {
  color: rgb(230, 230, 230);
  margin-bottom: 0.75rem;
  line-height: 1.8;
  font-size: 1.1em;
}

#dev-logs article p:last-child {
  margin-bottom: 0;
}

/* Clear floats after article content */
#dev-logs article::after {
  content: "";
  display: table;
  clear: both;
}

/* TEXT FORMATTING WITHIN DEV LOGS */
#dev-logs article strong,
#dev-logs article b {
  color: rgb(243, 104, 243);
  font-weight: 600;
}

#dev-logs article em,
#dev-logs article i {
  font-style: italic;
  color: rgb(200, 150, 200);
}

#dev-logs article code {
  background-color: rgba(138, 20, 105, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  color: rgb(255, 180, 255);
  border: 1px solid rgba(243, 104, 243, 0.3);
}

#dev-logs article ul,
#dev-logs article ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: rgb(230, 230, 230);
}

#dev-logs article li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#dev-logs article blockquote {
  border-left: 3px solid rgb(243, 104, 243);
  padding-left: 1rem;
  margin: 1rem 0;
  color: rgb(230, 230, 230);
  font-style: italic;
  background-color: rgba(138, 20, 105, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

#dev-logs article hr {
  border: none;
  border-top: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
}

/* Article Images */
.article-image {
  margin: 1.5rem 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
}

/* Image Alignment Classes */
#dev-logs article img.img-full {
  max-width: 100%;
  width: 100%;
  max-height: 600px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
  display: block;
}

#dev-logs article img.img-center {
  max-width: 80%;
  max-height: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem auto;
  display: block;
}

#dev-logs article img.img-float-left {
  max-width: 45%;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 0.5rem 1.5rem 1rem 0;
  float: left;
}

#dev-logs article img.img-float-right {
  max-width: 45%;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 0.5rem 0 1rem 1.5rem;
  float: right;
}

#dev-logs article img {
  max-width: 100%;
  max-height: 600px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
  display: block;
}

/* Paragraphs with inline images */
#dev-logs article p img.img-float-left,
#dev-logs article p img.img-float-right {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  max-height: 300px;
}

#dev-logs article p:has(img.img-float-left),
#dev-logs article p:has(img.img-float-right) {
  overflow: auto; /* Clearfix for floating images within paragraphs */
  min-height: 150px; /* Ensure paragraph has enough height for image */
}

.article-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgb(180, 180, 180);
  font-style: italic;
}

/* Content Card Styles */
#dev-logs article .content-card {
  margin: 1.5rem 0;
  overflow: auto;
}

#dev-logs article .content-card .card-section-title {
  color: rgba(243, 104, 243, 0.9);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(243, 104, 243, 0.4);
}

#dev-logs article .content-card .card-text {
  color: rgb(200, 200, 200);
  line-height: 1.8;
  font-size: 1.05rem;
  text-align: justify;
}

#dev-logs article .content-card img.img-card-left {
  max-width: 45%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 0.5rem 1.5rem 1rem 0;
  float: left;
}

#dev-logs article .content-card img.img-card-right {
  max-width: 45%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 0.5rem 0 1rem 1.5rem;
  float: right;
}

#dev-logs article .content-card img.img-card-center {
  max-width: 80%;
  max-height: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem auto;
  display: block;
}

#dev-logs article .content-card img.img-card-full {
  max-width: 100%;
  width: 100%;
  max-height: 600px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
  display: block;
}

/* ==========================
   SIDEBAR STYLES
   ========================== */

/* SIDEBAR - Left drawer sidebar */
.sidebar {
  background: rgba(138, 20, 105, 0.9);
  padding: 2rem;
  width: 300px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 1002;
  border-right: thick double rgba(248, 246, 246, 0.688);
  pointer-events: auto;
}

/* Close hint for mobile users */
.sidebar::before {
  content: "Tap outside to close";
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: rgb(243, 104, 243);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  border: 2px solid rgb(243, 104, 243);
  opacity: 0;
  animation: fadeInHint 0.5s ease 0.8s forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes fadeInHint {
  to {
    opacity: 1;
  }
}

/* Hide hint on desktop */
@media (min-width: 769px) {
  .sidebar::before {
    display: none;
  }
}

/* PROFILE IMAGE - The profile picture */
.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem auto;
  border: 3px solid rgba(248, 246, 246, 0.688);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* SIDEBAR HEADINGS - h2 elements in the sidebar */
.sidebar h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
}

/* SIDEBAR PARAGRAPHS - Text in the sidebar */
.sidebar p {
  color: rgb(247, 237, 247);
  line-height: 1.5;
}

/* SIDEBAR NAVIGATION - Styled navigation links */
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.sidebar-nav li {
  margin: 0.5rem 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-nav a i {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */

/* RESPONSIVE DESIGN - Make it work on smaller screens */
/* @media is a "media query" - it applies styles only when conditions are met */
@media (max-width: 1000px) {
  body {
    background-size: cover;
    background-attachment: scroll;
  }

  .container {
    margin: 1rem;
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* When screen is 768px or smaller (tablets/phones) */

  body {
    background-size: cover;
    background-attachment: scroll;
  }

  /* Make hamburger menu more visible on mobile */
  .drawer-button {
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.85);
    border: 3px solid rgb(243, 104, 243);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
  }

  .hamburger-icon {
    width: 28px;
    height: 28px;
    stroke-width: 3;
  }

  .hero {
    font-size: 1.8rem; /* Smaller text on small screens */
    padding: 1rem; /* Less padding */
    background: rgba(138, 20, 105, 0.9); /* More opaque on mobile */
  }

  .navbar ul {
    gap: 1rem; /* Less space between items */
  }

  .navbar {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.9); /* More opaque on mobile */
    flex-wrap: wrap;
  }

  /* Resume tabs responsive */
  #resume-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .session-tab {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
  }

  /* PDF button responsive */
  .pdf-download-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .pdf-download-btn span {
    display: none; /* Hide text on smaller screens, show icon only */
  }

  .project-selector {
    width: 100%;
  }

  .session-selector {
    width: 100%;
  }

  .project-dropdown {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  .session-dropdown {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  .container {
    margin: 1rem;
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.92); /* More opaque on mobile */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  }

  .page-title {
    font-size: 1.8rem;
    background: rgba(138, 20, 105, 0.9);
    padding: 0.75rem;
    border-radius: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  /* Sidebar takes full width on mobile */
  .drawer-side {
    width: 85%;
    max-width: 320px;
  }

  /* Stronger overlay on mobile */
  .drawer-overlay {
    background-color: rgba(0, 0, 0, 0.85);
  }

  .sidebar {
    width: 100%;
  }

  #dev-logs article {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.92); /* More opaque on mobile */
  }

  /* Make all images full-width on mobile (no floating) */
  #dev-logs article img.img-float-left,
  #dev-logs article img.img-float-right,
  #dev-logs article .content-card img.img-card-left,
  #dev-logs article .content-card img.img-card-right {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
    display: block;
  }

  #dev-logs article img.img-center {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .drawer-side {
    width: 90%;
    max-width: 100%;
  }

  /* Even stronger overlay on small phones */
  .drawer-overlay {
    background-color: rgba(0, 0, 0, 0.9);
  }

  /* Extra visible hamburger on small phones */
  .drawer-button {
    padding: 0.85rem;
    background-color: rgba(0, 0, 0, 0.95);
    border: 3px solid rgb(243, 104, 243);
  }

  .hamburger-icon {
    width: 32px;
    height: 32px;
    stroke-width: 3.5;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .hero {
    font-size: 1.5rem;
    background: rgba(138, 20, 105, 0.95);
  }

  .navbar {
    background-color: rgba(0, 0, 0, 0.95);
  }

  /* Resume tabs - smaller on small phones */
  .session-tab {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }

  /* PDF button - smaller on small phones */
  .pdf-download-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .main-content {
    background-color: rgba(0, 0, 0, 0.95);
  }

  .project-selector {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .project-dropdown {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .session-selector {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .session-dropdown {
    min-width: unset;
    width: 100%;
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .navbar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-selector {
    width: 100%;
    justify-content: flex-start;
  }

  .session-selector {
    width: 100%;
    justify-content: flex-start;
  }

  #dev-logs article {
    background-color: rgba(
      0,
      0,
      0,
      0.95
    ); /* Even more opaque on small phones */
  }

  #dev-logs article p {
    font-size: 1em;
  }
}

/* ==========================
   LEGACY COMPATIBILITY STYLES
   ========================== */

/* Legacy: Company Slogan Color */
#comSlo {
  color: rgb(243, 104, 243);
}

/* Legacy: Main Content Box */
.logTex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(247, 237, 247);
  border: thick double rgba(248, 246, 246, 0.688);
  background-color: rgba(0, 0, 0, 0.822);
  font-family: "Courier New", Courier, monospace;
  padding: 20px;
  margin: 20px auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.397);
}

.logTex h1 {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  color: rgb(255, 255, 255);
}

.logTex h2 {
  color: rgb(243, 104, 243);
  font-size: 1.8em;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.logTex h3 {
  color: white;
  font-size: 1.4em;
  margin-top: 1rem;
}

.logTex p {
  font-size: 1.6em;
  line-height: 1.8;
  text-align: center;
  color: rgb(230, 230, 230);
  margin-bottom: 15px;
}

.logTex ul {
  text-align: left;
  color: rgb(230, 230, 230);
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.logTex a {
  text-decoration: none;
}

/* Legacy: Hero Banner */
#hero_banner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: rgba(138, 20, 105, 0.695);
  border: double black;
  padding: 20px;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.hero-content > div {
  flex: 1;
  text-align: center;
}

#hero_banner img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

#hero_banner h1 {
  font-size: 2.5em;
  margin: 10px 0;
  color: white;
}

#hero_banner p {
  font-size: 1.2em;
  color: white;
  margin: 0;
}

/* Legacy: Navigation Bar */
.navigation_bar {
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  margin-bottom: 20px;
}

.navigation_bar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.navigation_bar li {
  display: inline;
}

.navigation_bar a {
  text-decoration: none;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navigation_bar a:hover {
  color: #f0a500;
}

/* Legacy: Buttons */
.button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: white;
  background-color: rgba(138, 20, 105, 0.7);
  border: 3px solid rgb(243, 104, 243);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.button:hover {
  background-color: rgba(243, 104, 243, 0.3);
  color: white;
  border-color: rgb(255, 180, 255);
}

.home-button {
  background-color: #9c20778c;
  color: white;
  border: 2px solid rgb(255, 255, 255);
  padding-left: 5px;
  padding-right: 5px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.home-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Legacy: Footer Styles */
footer.app-footer {
  background-color: #1a1a1ad7;
  color: #ffffff;
  padding: 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 100%;
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

.footer-center {
  text-align: center;
}

.footer-icons a {
  margin: 0 5px;
  color: #ffffff;
  text-decoration: none;
}

.footer-icons a:hover {
  color: #f0f0f0;
}

.footer-right {
  text-align: right;
}

/* Legacy: Utility Classes */
.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

img.responsive {
  max-width: 100%;
  height: auto;
}

.mainContent {
  display: flex;
  flex-direction: row;
  background-color: rgba(188, 90, 212, 0.695);
  margin: 5% auto;
  border: 5cap inset rgb(49, 8, 57);
  color: rgb(80, 221, 10);
}

#trippy {
  background-color: rgba(193, 128, 203, 0.351);
  display: flex;
  justify-content: space-around;
}

img.lazyload {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazyload[src] {
  opacity: 1;
}

/* Legacy: Mobile Overrides */
@media (max-width: 700px) {
  .logTex {
    flex-direction: column;
    font-size: smaller;
    padding: 5px;
    margin: 20px;
  }

  .responsive,
  #hero_banner img {
    display: none;
  }

  #hero_banner {
    flex-direction: column;
    height: auto;
  }

  .navigation_bar {
    flex-direction: column;
    font-size: medium;
  }

  #trippy img {
    width: 100%;
    height: auto;
  }

  #hero_banner > div {
    margin-bottom: 20px;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
    margin-top: 10px;
  }
}

/* ==========================
   APP PREVIEW MODAL STYLES
   ========================== */

.app-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.app-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-modal-content {
  position: relative;
  width: 95%;
  height: 95%;
  max-width: 1400px;
  max-height: 900px;
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.95) 0%,
    rgba(102, 126, 234, 0.95) 100%
  );
  border-radius: 12px;
  border: 3px solid rgb(243, 104, 243);
  box-shadow: 0 8px 32px rgba(243, 104, 243, 0.5);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.app-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(243, 104, 243, 0.5);
  border-radius: 12px 12px 0 0;
}

.app-modal-title {
  color: rgb(243, 104, 243);
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-modal-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.app-modal-btn {
  background: rgba(138, 20, 105, 0.8);
  color: white;
  border: 2px solid rgb(243, 104, 243);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.app-modal-btn:hover {
  background: rgb(243, 104, 243);
  color: black;
  transform: scale(1.05);
}

.app-modal-close {
  background: rgba(220, 53, 69, 0.8);
  padding: 0.5rem 1rem;
}

.app-modal-close:hover {
  background: rgb(220, 53, 69);
  color: white;
}

.app-modal-body {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

.app-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.app-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(243, 104, 243);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.app-loading i {
  font-size: 3rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .app-modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .app-modal-header {
    border-radius: 0;
  }

  .app-modal-title {
    font-size: 1rem;
  }

  .app-modal-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }
}

/* ==========================
   UTILITY CLASSES FOR REUSABILITY
   ========================== */

/* Logo and image effects */
.logo-link {
  display: block;
  cursor: default;
}

.logo-image-hover {
  cursor: pointer;
  transition: opacity 0.2s;
}

.logo-image-hover:hover {
  opacity: 0.8;
}

.centered-image {
  display: block;
  text-align: center;
  margin: 0 auto;
}

/* Error message styling for dynamic content */
.iframe-error-container {
  text-align: center;
  padding: 2rem;
}

.iframe-error-icon {
  font-size: 4rem;
  color: rgb(243, 104, 243);
  margin-bottom: 1rem;
}

.iframe-error-title {
  color: rgb(243, 104, 243);
  margin-bottom: 1rem;
}

.iframe-error-message {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.iframe-error-link {
  display: inline-block;
  background: rgb(243, 104, 243);
  color: black;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s;
  border: 2px solid rgb(243, 104, 243);
}

.iframe-error-link:hover {
  background: white;
  color: rgb(243, 104, 243);
}

.iframe-error-note {
  color: #aaa;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* ==========================
   ADMIN PAGE STYLES
   ========================== */

.admin-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.admin-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  border: 2px solid rgba(243, 104, 243, 0.3);
}

.admin-header {
  text-align: center;
  color: rgb(243, 104, 243);
  margin-bottom: 2rem;
}

.admin-header-no-margin {
  margin: 0;
}

.login-form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  border: 2px solid rgba(243, 104, 243, 0.3);
}

.form-section {
  background: rgba(138, 20, 105, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(243, 104, 243, 0.2);
}

.form-section h3 {
  color: rgb(243, 104, 243);
  margin-bottom: 1rem;
}

.form-label {
  color: white;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(243, 104, 243, 0.3);
  color: white;
  margin-bottom: 1rem;
}

.form-control:focus,
.form-select:focus {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgb(243, 104, 243);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(243, 104, 243, 0.25);
}

textarea.form-control {
  min-height: 150px;
  font-family: monospace;
}

.btn-admin {
  background-color: rgb(138, 20, 105);
  color: white;
  border: 2px solid rgb(243, 104, 243);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-admin:hover {
  background-color: rgb(243, 104, 243);
  color: white;
}

.btn-secondary {
  background-color: rgba(100, 100, 100, 0.5);
  color: white;
  border: 2px solid rgba(150, 150, 150, 0.5);
}

.btn-secondary:hover {
  background-color: rgba(150, 150, 150, 0.7);
  color: white;
}

.project-list,
.session-list {
  list-style: none;
  padding: 0;
}

.project-item,
.session-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(243, 104, 243, 0.2);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-item:hover,
.session-item:hover {
  background: rgba(243, 104, 243, 0.1);
  border-color: rgb(243, 104, 243);
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgb(40, 167, 69);
  color: rgb(40, 167, 69);
}

.alert-error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgb(220, 53, 69);
  color: rgb(220, 53, 69);
}

.hidden {
  display: none;
}

.tab-navigation {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(243, 104, 243, 0.3);
}

.tab-btn {
  background: rgba(138, 20, 105, 0.3);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s;
  font-weight: bold;
}

.tab-btn:hover {
  background: rgba(138, 20, 105, 0.5);
}

.tab-btn.active {
  background: rgba(243, 104, 243, 0.3);
  border-bottom: 3px solid rgb(243, 104, 243);
}

.manage-list {
  list-style: none;
  padding: 0;
}

.manage-project-item {
  background: rgba(138, 20, 105, 0.2);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 2px solid rgba(243, 104, 243, 0.3);
}

.manage-project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(243, 104, 243, 0.2);
}

.manage-project-title {
  color: rgb(243, 104, 243);
  font-size: 1.3rem;
  margin: 0;
}

.manage-session-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(243, 104, 243, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: white;
}

.manage-session-item:hover {
  background: rgba(243, 104, 243, 0.1);
  border-color: rgb(243, 104, 243);
}

.session-info {
  flex: 1;
  width: 100%;
}

.session-title {
  font-weight: bold;
  color: rgb(243, 104, 243);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.session-meta {
  font-size: 0.85rem;
  color: #aaa;
}

.session-meta-small {
  color: #aaa;
  display: block;
  margin-bottom: 0.5rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Desktop: side-by-side layout */
@media (min-width: 768px) {
  .manage-session-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .session-info {
    width: auto;
  }

  .action-buttons {
    width: auto;
    flex-wrap: nowrap;
  }
}

.btn-edit,
.btn-delete,
.btn-view {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: bold;
  transition: all 0.3s;
  white-space: nowrap;
  flex: 1;
  min-width: 80px;
}

/* Desktop: fixed width buttons */
@media (min-width: 768px) {
  .btn-edit,
  .btn-delete,
  .btn-view {
    flex: 0;
    min-width: auto;
  }
}

.btn-edit {
  background: rgba(0, 123, 255, 0.7);
  color: white;
}

.btn-edit:hover {
  background: rgb(0, 123, 255);
}

.btn-view {
  background: rgba(40, 167, 69, 0.7);
  color: white;
}

.btn-view:hover {
  background: rgb(40, 167, 69);
}

.btn-delete {
  background: rgba(220, 53, 69, 0.7);
  color: white;
}

.btn-delete:hover {
  background: rgb(220, 53, 69);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: linear-gradient(
    135deg,
    rgba(138, 20, 105, 0.95) 0%,
    rgba(102, 126, 234, 0.95) 100%
  );
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid rgb(243, 104, 243);
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.modal-content h3 {
  color: rgb(243, 104, 243);
  margin-bottom: 1rem;
}

.modal-content p {
  color: white;
  margin-bottom: 1.5rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-cancel {
  background: rgba(100, 100, 100, 0.7);
  color: white;
  padding: 0.5rem 1.5rem;
  border: 2px solid rgba(150, 150, 150, 0.5);
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-cancel:hover {
  background: rgba(150, 150, 150, 0.7);
}

.btn-confirm-delete {
  background: rgba(220, 53, 69, 0.8);
  color: white;
  padding: 0.5rem 1.5rem;
  border: 2px solid rgb(220, 53, 69);
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-confirm-delete:hover {
  background: rgb(220, 53, 69);
}

.empty-message {
  text-align: center;
  color: #aaa;
  padding: 2rem;
  font-style: italic;
}

.content-card {
  background: rgba(138, 20, 105, 0.15);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 2px solid rgba(243, 104, 243, 0.3);
  position: relative;
}

.content-card h6 {
  color: rgb(243, 104, 243);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(220, 53, 69, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 12px;
  z-index: 10;
}

.remove-btn:hover {
  background: rgb(220, 53, 69);
}

.layout-type-radio {
  margin: 0.5rem 0;
}

.layout-type-radio label {
  margin-right: 1.5rem;
  cursor: pointer;
  color: #f0f0f0;
  font-size: 0.9rem;
}

.layout-type-radio input[type="radio"] {
  margin-right: 0.3rem;
}

.card-content-area {
  margin-top: 0.5rem;
}

.image-position-select {
  margin-top: 0.5rem;
}

/* Formatting Toolbar */
.format-toolbar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(243, 104, 243, 0.3);
  border-radius: 4px 4px 0 0;
  padding: 0.4rem;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.format-btn {
  background: rgba(138, 20, 105, 0.5);
  color: white;
  border: 1px solid rgba(243, 104, 243, 0.4);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.format-btn:hover {
  background: rgba(243, 104, 243, 0.6);
  border-color: rgb(243, 104, 243);
}

.format-btn:active {
  transform: scale(0.95);
}

.format-btn i {
  font-size: 0.9rem;
}

.format-separator {
  width: 1px;
  background: rgba(243, 104, 243, 0.3);
  margin: 0 0.25rem;
}

.format-toolbar + textarea.form-control {
  border-radius: 0 0 4px 4px;
  border-top: none;
  margin-top: 0;
}

/* Preview images styling */
#previewContent img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
}

#previewContent img.img-full {
  max-height: 400px;
  width: 100%;
}

#previewContent img.img-center {
  max-height: 350px;
  max-width: 80%;
  display: block;
  margin: 1rem auto;
}

#previewContent img.img-float-left {
  max-height: 250px;
  max-width: 45%;
  float: left;
  margin-right: 1rem;
}

#previewContent img.img-float-right {
  max-height: 250px;
  max-width: 45%;
  float: right;
  margin-left: 1rem;
}

#previewContent p {
  overflow: auto;
  line-height: 1.6;
}

#previewContent p:has(img) {
  min-height: 200px;
}

/* Preview card styles */
#previewContent .content-card {
  margin: 1.5rem 0;
  overflow: auto;
  clear: both;
}

#previewContent .content-card .card-section-title {
  color: rgba(243, 104, 243, 1);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

#previewContent .content-card .card-text {
  line-height: 1.8;
  color: #333;
}

#previewContent .content-card img.img-card-left {
  max-width: 45%;
  max-height: 300px;
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

#previewContent .content-card img.img-card-right {
  max-width: 45%;
  max-height: 300px;
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

#previewContent .content-card img.img-card-center {
  max-width: 80%;
  max-height: 400px;
  display: block;
  margin: 1rem auto;
}

#previewContent .content-card img.img-card-full {
  max-width: 100%;
  width: 100%;
  max-height: 450px;
  display: block;
  margin: 1rem 0;
}

/* Preview text formatting styles */
#previewContent strong {
  font-weight: bold;
  color: rgb(243, 104, 243);
}

#previewContent em {
  font-style: italic;
  color: #ffd700;
}

#previewContent u {
  text-decoration: underline;
}

#previewContent h2,
#previewContent h3,
#previewContent h4 {
  color: rgb(243, 104, 243);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
}

#previewContent h2 {
  font-size: 1.8rem;
}

#previewContent h3 {
  font-size: 1.5rem;
}

#previewContent h4 {
  font-size: 1.2rem;
}

#previewContent ul,
#previewContent ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

#previewContent li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#previewContent code {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  color: #88ff88;
  border: 1px solid rgba(243, 104, 243, 0.3);
}

#previewContent a {
  color: rgb(100, 200, 255);
  text-decoration: underline;
}

#previewContent a:hover {
  color: rgb(150, 220, 255);
}

#backToSite {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.code-details {
  color: #ddd;
}

.code-summary {
  cursor: pointer;
  background: rgba(243, 104, 243, 0.1);
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.code-instructions {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 4px;
  border-left: 3px solid rgb(243, 104, 243);
  margin-bottom: 0.5rem;
}

.code-instructions-title {
  margin-bottom: 0.5rem;
}

.code-instructions-list {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.admin-note {
  color: white;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.btn-preview {
  margin-right: 0.5rem;
}

.preview-content-area {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 4px;
  color: #f0f0f0;
  line-height: 1.6;
}

.code-instructions-content {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}
