* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2d6e96;         /* Brighter blue to match mountain image */
  --primary-light: #4a90e2;   /* Even brighter blue accent */
  --primary-dark: #1e4d6b;    /* Darker blue for depth */
  --surface: rgba(45, 110, 150, 0.5); /* More transparent surface */
  --background: #0a1824;      /* Dark background matching mountain image */
  --text: #ecf0f1;            /* Light text */
  --text-secondary: #b0c4de;  /* Lighter blue-grey text */
  --border: rgba(255, 255, 255, 0.3);  /* More visible border */
  --hover: #4a90e2;           /* Bright blue accent */
  
  /* @tweakable Sidebar dimensions */
  --sidebar-width: 350px;
  --sidebar-width-mobile: 300px;
}

/* @tweakable Disable horizontal scrolling completely on body and html elements */
html, body {
  overflow-x: hidden !important;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  background-color: var(--background); /* Set background color directly */
  color: var(--text);
  min-height: 100vh;
  position: relative;
  /* @tweakable Disable horizontal scrolling on body */
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/483015-3013178136.jpg') no-repeat center center fixed;
  background-size: cover;
  z-index: -2; /* Position below the overlay and content */
  /* @tweakable Background image filter effects */
  filter: brightness(1.2) blur(2px); /* Apply filter ONLY to the background image */
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* @tweakable Background overlay opacity */
  background: rgba(10, 24, 36, 0.4); /* Lighter overlay */
  pointer-events: none;
  z-index: -1; /* Position below content but above the background image */
}

/* @tweakable App container with horizontal overflow prevention */
.app-container {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* @tweakable Main content area positioning to prevent overlap with fixed sidebar */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
}

/* @tweakable Unified SVG background for sidebar and top bar seamless blending */
.app-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><defs><linearGradient id="sidebarGrad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:rgba(45,110,150,0.4);stop-opacity:1" /><stop offset="35%" style="stop-color:rgba(45,110,150,0.3);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(45,110,150,0.1);stop-opacity:0" /></linearGradient><linearGradient id="topbarGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:rgba(45,110,150,0.3);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(45,110,150,0.1);stop-opacity:0" /></linearGradient></defs><rect x="0" y="0" width="35" height="100" fill="url(%23sidebarGrad)" /><rect x="35" y="0" width="65" height="15" fill="url(%23topbarGrad)" /></svg>') no-repeat;
  background-size: cover;
  /* @tweakable Remove backdrop blur from unified background to prevent content blurring */
  backdrop-filter: none;
  pointer-events: none;
  z-index: 50;
}

/* @tweakable Sidebar styling and layout */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: transparent;
  backdrop-filter: blur(20px);
  /* @tweakable Add back sidebar border outline for visual definition */
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  z-index: 100;
  overflow-y: auto;
}

/* Fix blur glitches by using transform3d */
.sidebar {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

/* @tweakable Top bar with search and tabs */
.top-bar {
  position: fixed;
  top: 0;
  /* @tweakable Left margin to account for sidebar when topbar is fixed */
  left: var(--sidebar-width);
  /* @tweakable Width calculation for fixed topbar to account for sidebar */
  width: calc(100% - var(--sidebar-width));
  background: transparent;
  backdrop-filter: blur(20px);
  /* @tweakable Add back topbar border outline for visual definition */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  /* @tweakable Z-index for fixed topbar to ensure it stays above all content */
  z-index: 100;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

/* @tweakable Search container styling and positioning */
.search-container {
  position: relative;
  /* @tweakable Search container flex behavior - reduced width to make room for tabs */
  flex: 0 0 200px;
  /* @tweakable Width of search container - reduced significantly to prevent tab overflow */
  width: 200px;
  /* @tweakable Search container layout - flexbox with proper icon positioning */
  display: flex;
  align-items: center;
  /* @tweakable Gap between search icon and input field */
  gap: 0.75rem;
  /* @tweakable Search container background and blur fix */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(10px);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  /* @tweakable Left margin to position search bar close to sidebar edge */
  margin-left: 0.5rem;
}

.search-container i {
  /* @tweakable Search icon visibility and styling */
  display: block;
  /* @tweakable Search icon size */
  width: 20px;
  height: 20px;
  /* @tweakable Search icon color */
  color: var(--text-secondary);
  flex-shrink: 0;
}

#search-input {
  /* @tweakable Search input flex behavior to take remaining space */
  flex: 1;
  /* @tweakable Search input padding - reduced since container has padding */
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  /* @tweakable Z-index for search input to ensure proper layering */
  position: relative;
  z-index: 0;
}

#search-input::placeholder {
  color: var(--text-secondary);
}

#search-input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* @tweakable Content area with strict horizontal overflow prevention */
.content-area {
  flex: 1;
  padding: 2rem;
  /* @tweakable Top margin to account for fixed topbar height */
  margin-top: 120px;
  /* @tweakable Prevent horizontal overflow in content area */
  overflow-x: hidden !important;
  max-width: 100vw;
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Remove old grid layout properties */
}

.avatar-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(74, 144, 226, 0.6);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  margin: 0 auto;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.profile-info h1 {
  font-size: 1.8rem;
  color: var(--text);
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat {
  /* @tweakable Stat card styling in sidebar */
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  /* @tweakable Additional blur stability fix */
  will-change: transform;
}

.stat i {
  /* @tweakable Icon size in stat cards */
  width: 24px;
  height: 24px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.stat div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat span {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text);
}

.stat label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

#quote-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#profile-quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  word-break: break-word;
  /* These styles are now controlled by JS based on tweakable values */
  /* overflow: hidden; */
  /* text-overflow: ellipsis; */
  /* display: -webkit-box; */
  /* -webkit-box-orient: vertical; */
  /* -webkit-line-clamp is applied via JS */
}

.toggle-quote-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  align-self: flex-end;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-quote-btn:hover {
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.1);
}

.toggle-quote-btn i {
  width: 16px;
  height: 16px;
}

/* @tweakable Tab wrapping behavior - prevent wrapping to keep tabs in single row */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  border: none;
  padding: 0;
  position: relative; /* Ensure content is above the pseudo-element */
  z-index: 1; /* Ensure content is above the pseudo-element */
  /* @tweakable Tabs flex behavior - take remaining space after search container */
  flex: 1;
  /* @tweakable Minimum width for tabs container to prevent overcrowding */
  min-width: 0;
  /* @tweakable Tabs alignment to prevent overlap */
  justify-content: flex-start;
  /* @tweakable Prevent horizontal overflow of tabs - disable horizontal scrolling completely */
  overflow-x: hidden;
}

.tab {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  /* @tweakable Tab flex behavior - allow tabs to shrink slightly when needed */
  flex: 0 1 auto;
  /* @tweakable Minimum width for individual tabs to prevent over-shrinking */
  min-width: fit-content;
  /* @tweakable Text wrapping for tab content */
  white-space: nowrap;
  /* @tweakable Blur fix for tabs */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.tab i {
  width: 16px;
  height: 16px;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-light);
}

.tab.active {
  background: rgba(74, 144, 226, 0.3);
  color: var(--text);
  border-color: var(--primary-light);
}

/* @tweakable Tab content areas with horizontal overflow prevention */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  overflow-x: hidden !important;
  max-width: 100%;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Profile follow button styles */
.profile-follow-btn {
  /* @tweakable background color and opacity for profile follow button */
  background: rgba(255, 255, 255, 0.1);
  /* @tweakable text color for profile follow button */
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* @tweakable border radius for profile follow button */
  border-radius: 12px;
  /* @tweakable padding for profile follow button */
  padding: 1rem;
  /* @tweakable font size for profile follow button */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  /* @tweakable maximum width for profile follow button */
  max-width: 200px;
  /* @tweakable blur amount for profile follow button */
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  /* @tweakable Additional blur stability fix */
  will-change: transform;
  /* @tweakable Force hardware acceleration for blur stability */
  backface-visibility: hidden;
}

.profile-follow-btn i {
  width: 20px;
  height: 20px;
}

.profile-follow-btn:hover {
  /* @tweakable hover background color for profile follow button */
  background: rgba(255, 255, 255, 0.2);
  transform: translate3d(0, -2px, 0) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-light);
}

.profile-follow-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: translate3d(0, 0, 0);
}

.profile-follow-btn.followed {
  /* @tweakable background color when following */
  background: rgba(46, 204, 113, 0.2);
  border-color: rgba(46, 204, 113, 0.5);
}

.profile-follow-btn.followed:hover {
  /* @tweakable hover background when following */
  background: rgba(231, 76, 60, 0.2);
  border-color: rgba(231, 76, 60, 0.5);
}

.profile-follow-btn.own-profile {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: default;
}

.profile-follow-btn.followed:hover .icon {
  content: '❌';
}

.profile-follow-btn.followed:hover::after {
  content: 'Unfollow';
  position: absolute;
  /* @tweakable positioning for unfollow tooltip */
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
}

.other-projects-section {
  margin-bottom: 2rem;
}

.other-projects-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--text);
}

/* @tweakable Project card blur fixes */
.project-card {
  background: rgba(45, 110, 150, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  height: 350px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  position: relative; /* Establish a stacking context for z-index */
  z-index: 1; /* Default z-index for cards */
}

.project-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  flex-shrink: 0;
  max-height: 180px;
}

.project-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.project-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-meta i {
  /* @tweakable Icon size for project meta - made smaller for better visual balance */
  width: 16px;
  height: 16px;
}

.followers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid for followers */
  gap: 1rem;
  /* @tweakable Padding to prevent follower cards from being cut off when hovered - top and sides */
  padding: 20px 10px 1rem 10px;
  border-radius: 15px;
  margin-top: 1rem;
}

.follower-card {
  /* @tweakable background color and opacity for follower cards */
  background: rgba(45, 110, 150, 0.4);
  /* @tweakable blur amount for follower cards */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* @tweakable border radius for follower cards */
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  position: relative; /* Establish a stacking context for z-index */
  z-index: 1; /* Default z-index for cards */
}

.follower-card:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-light);
  /* @tweakable Z-index for hovered follower cards to appear above others */
  z-index: 10;
}

.follower-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid rgba(74, 144, 226, 0.5);
  flex-shrink: 0;
}

.follower-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.follower-info {
  flex-grow: 1;
  overflow: hidden; /* Hide overflowing content */
  /* @tweakable Maximum width for the follower info section before truncating username */
  max-width: 200px; /* Adjust as needed */
}

.follower-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  display: block; /* Use block to make max-width and truncation effective */
  align-items: center;
  margin-bottom: 0.25rem;
  overflow: hidden; /* Apply truncation */
  text-overflow: ellipsis; /* Apply truncation */
  white-space: nowrap; /* Apply truncation */
}

.follower-name:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.follower-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* @tweakable Socials container blur fixes */
.socials-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(45, 110, 150, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 20px; /* @tweakable border radius for social cards */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  /* @tweakable Additional blur stability fix */
  will-change: transform;
  /* @tweakable Force hardware acceleration for blur stability */
  backface-visibility: hidden;
}

.socials-container h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary-light), var(--hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.socials-container ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.socials-container li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  position: relative;
  z-index: 1;
}

.socials-container li i {
  width: 24px;
  height: 24px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.socials-container a {
  /* @tweakable Text color for social media links - changed to blue */
  color: var(--primary-light);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

.socials-container a[href*="youtube"]::before {
  content: '🎥';
}

.socials-container a[href*="roblox"]::before {
  content: '🎮';
}

.socials-container a[href*="github"]::before {
  content: '💻';
}

.socials-container a[href*="websim.com"]::before {
  content: '🌐';
}

.socials-container a::before {
  content: '🔗';
  font-size: 1.2rem;
}

.socials-container li:not(:has(a))::before {
  content: '💬';
  position: static;
  margin-right: 0.75rem;
  font-size: 1.2rem;
  background: none;
  width: auto;
  height: auto;
  left: auto;
}

.socials-container a:hover {
  color: var(--text);
}

.socials-container li span {
  /* @tweakable Text color for non-link social items - changed to blue */
  color: var(--primary-light);
  font-size: 1.1rem;
  font-weight: 600;
}

#json-data {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 2rem;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 70vh;
  overflow-y: auto;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px; /* Ensure spinner is visible */
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--primary-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* @tweakable Infinite loading indicator styling for scroll loading */
.infinite-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.infinite-loading .loading-spinner {
  min-height: 100px;
}

.infinite-loading .spinner {
  width: 30px;
  height: 30px;
  margin-bottom: 0.5rem;
}

.infinite-loading .loading-text {
  font-size: 0.9rem;
}

/* @tweakable Settings container blur fixes */
.settings-container {
  /* @tweakable background color and opacity for settings container */
  background: rgba(45, 110, 150, 0.4);
  /* @tweakable blur amount for settings container */
  backdrop-filter: blur(15px);
  /* @tweakable border radius for settings container */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  /* @tweakable Additional blur stability fix */
  will-change: transform;
  /* @tweakable Force hardware acceleration for blur stability */
  backface-visibility: hidden;
}

.settings-container h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary-light), var(--hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* @tweakable background color for individual setting items */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* @tweakable border radius for setting items */
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.setting-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-light);
}

.setting-item label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  flex-grow: 1;
}

/* Custom toggle switch */
.setting-toggle {
  appearance: none;
  /* @tweakable width of the toggle switch */
  width: 60px;
  /* @tweakable height of the toggle switch */
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  /* @tweakable border radius for toggle switch */
  border-radius: 15px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.setting-toggle:checked {
  /* @tweakable background color when toggle is checked */
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.setting-toggle::before {
  content: '';
  position: absolute;
  /* @tweakable size of the toggle slider circle */
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.setting-toggle:checked::before {
  /* @tweakable position of slider when checked */
  transform: translateX(30px);
}

/* Blur disabled styles */
body.blur-disabled .sidebar,
body.blur-disabled .top-bar,
body.blur-disabled .stat,
body.blur-disabled .project-card,
body.blur-disabled .follower-card,
body.blur-disabled .socials-container,
body.blur-disabled .settings-container,
body.blur-disabled .file-viewer-container,
body.blur-disabled .profile-follow-btn,
body.blur-disabled #search-input,
body.blur-disabled .tab {
  backdrop-filter: none !important;
}

.file-viewer-container {
  /* @tweakable File viewer container styling with blur fix */
  background: rgba(45, 110, 150, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  margin: 1rem 0;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  /* @tweakable Additional blur stability fix */
  will-change: transform;
  /* @tweakable Force hardware acceleration for blur stability */
  backface-visibility: hidden;
}

.file-breadcrumb {
  /* @tweakable background color for breadcrumb navigation */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* @tweakable border radius for breadcrumb */
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  color: var(--text-secondary);
}

.breadcrumb-segment {
  color: var(--primary-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.breadcrumb-segment:hover {
  color: var(--text);
  text-decoration: underline;
}

/* @tweakable Grid layouts with strict width constraints to prevent overflow */
.file-grid {
  display: grid;
  /* @tweakable grid layout for file items */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  /* @tweakable gap between file items */
  gap: 1rem;
  margin-top: 1rem;
  overflow-x: hidden !important;
  max-width: 100%;
}

/* @tweakable File item blur fixes */
.file-item {
  /* @tweakable background color and opacity for file items */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* @tweakable border radius for file items */
  border-radius: 12px;
  /* @tweakable padding for file items */
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  /* @tweakable Additional blur stability fix */
  will-change: transform;
  /* @tweakable Force hardware acceleration for blur stability */
  backface-visibility: hidden;
}

.file-item:hover {
  /* @tweakable hover transform for file items */
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.1);
}

.file-item.folder:hover {
  /* @tweakable folder hover color */
  border-color: #ffd700;
}

.file-icon {
  /* @tweakable file icon size */
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.file-icon i {
  /* @tweakable File icon size */
  width: 40px;
  height: 40px;
  color: var(--primary-light);
}

.file-item:hover .file-icon {
  /* @tweakable file icon hover transform */
  transform: scale(1.1);
}

.file-item.folder .file-icon i {
  color: #ffd700;
}

.file-name {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  word-break: break-word;
  line-height: 1.3;
  /* @tweakable maximum lines for file names before truncation */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item.folder .file-name {
  color: var(--primary-light);
  font-weight: 600;
}

/* @tweakable Grid layout for project cards */
.grid, #projects-grid, #likes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  /* @tweakable Padding to prevent cards from being cut off when hovered - top and sides */
  padding: 20px 15px 0 15px;
  overflow-x: hidden !important;
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sidebar {
    width: var(--sidebar-width-mobile);
  }
  
  /* @tweakable Main content responsive margin for tablet screens */
  .main-content {
    margin-left: var(--sidebar-width-mobile);
  }
  
  /* @tweakable Fixed topbar responsive width adjustment for tablets */
  .top-bar {
    left: var(--sidebar-width-mobile);
    width: calc(100% - var(--sidebar-width-mobile));
  }
  
  .search-container {
    /* @tweakable Reduced search container width on tablets */
    flex: 0 0 180px;
    width: 180px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
    min-height: auto;
  }
  
  /* @tweakable Main content margin reset for mobile when sidebar becomes relative */
  .main-content {
    margin-left: 0;
  }
  
  /* @tweakable Fixed topbar mobile adjustment - full width when sidebar is collapsed */
  .top-bar {
    left: 0;
    width: 100%;
  }
  
  .app-container {
    flex-direction: column;
  }
  
  .top-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  /* @tweakable Content area top margin adjustment for mobile with fixed topbar */
  .content-area {
    margin-top: 160px;
  }
  
  /* @tweakable Full width search on mobile */
  .search-container {
    flex: 1;
    width: auto;
    max-width: none;
    margin-left: 0;
  }
  
  .search-container {
    /* @tweakable Search container flex behavior - fixed width to prevent overlap */
    flex: 0 0 280px;
    /* @tweakable Width of search container - increased to accommodate icon and input */
    width: 280px;
    /* @tweakable Search container layout - flexbox with proper icon positioning */
    display: flex;
    align-items: center;
    /* @tweakable Gap between search icon and input field */
    gap: 0.75rem;
    /* @tweakable Search container background and blur fix */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  
  .tabs {
    justify-content: center;
  }
  
  .content-area {
    padding: 1rem;
  }
  
  /* @tweakable Mobile grid layout - single column on small screens */
  .grid, #projects-grid, #likes-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 1rem;
  }
  
  .profile-info h1 {
    font-size: 1.5rem;
  }
  
  .avatar-container {
    width: 100px;
    height: 100px;
  }
  
  .tabs {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .tab span {
    display: none;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  /* @tweakable Mobile grid layout - full width cards on very small screens */
  .grid, #projects-grid, #likes-grid {
    grid-template-columns: 1fr;
  }
}