body {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  background-color: #b3e5fc;
  min-height: 100vh;
  overflow: hidden;
}

.background-clouds {
  display: block;
  position: fixed;
  top: -5vh;
  left: -5vw;
  width: 110vw;
  height: 110vh;
  z-index: 0;
  background: url('../Sky.png') center center / cover no-repeat;
  pointer-events: none;
}

.sidebar {
  width: 400px;
  background: url('../Sidebar.png') center center / 100% 100% no-repeat;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  height: 88vh;
}

.layout-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 1800px;
    width: 95vw;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-top: 20px;
    height: 100vh;
    overflow: hidden;
}

.container {
    margin: 0;
    flex-grow: 1;
    padding: 20px;
    background: url('../Page.png') center center / 100% 100% no-repeat;
    border: none;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.main-content {
    flex: 1;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.logo-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}
.logo-text-img {
  height: 50px;
  width: auto;
}

.nav-buttons {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-auth-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.nav-auth-buttons .nav-btn {
  width: 100%;
  padding: 8px 45px;
  font-size: 1rem;
}

.nav-btn {
  width: 100%;
  padding: 12px 0; /* Homepage-style compact padding */
  font-size: 1rem; /* Homepage-style font size */
  font-family: 'Baloo 2', cursive;
  border: none;
  border-radius: 8px;
  background: url('../GreyButton.png') center center / 100% 100% no-repeat;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  outline: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.nav-btn.active, .nav-btn:hover {
  background: url('../GreenButton.png') center center / 100% 100% no-repeat;
  color: #fff;
  border: none;
  transform: scale(1.05);
}

.nav-auth-buttons .nav-btn:hover {
  background: url('../GreyButton.png') center center / 100% 100% no-repeat;
  filter: brightness(1.2);
}

.greeting-avatar {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.greeting {
  font-size: 2.5rem;
  color: #000;
  margin: 0;
}
.username {
  color: #000;
}

.avatar-edit-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #000;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
}
.avatar-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-text {
  position: absolute;
  bottom: 5px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 4px;
}


.featured-projects h2 {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 25px;
}
/* Projects Section */
.projects-section {
  width: 100%;
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  width: 100%;
  justify-items: center;
}
.project-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: 2px solid #d4d4d4;
  border-radius: 15px;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%; /* Ensure card fills its grid cell */
  display: flex; /* Use flexbox for internal alignment */
  flex-direction: column; /* Stack thumbnail and info vertically */
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e0e0e0;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-card-info {
  padding: 12px;
  text-align: left;
  flex-grow: 1; /* Allow info to take up remaining space */
  display: flex;
  flex-direction: column;
}

.project-card-info h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
  line-height: 1.3;
}

.project-card-info p {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 auto; /* Pushes badge to the bottom */
}

.project-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  margin-top: 8px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  align-self: flex-start; /* Align badge to the left */
  margin-top: 8px; /* Space above the badge */
}

.project-type-badge.art { background-color: #e74c3c; color: white; }
.project-type-badge.game { background-color: #3498db; color: white; }
.project-type-badge.music {
  background: linear-gradient(145deg, #a8e6cf, #88d8b0);
}

.search-container {
  width: 100%;
  margin-bottom: 20px;
}

#search-bar {
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
  border-radius: 8px;
  border: 2px solid #ccc;
}

@media (max-width: 1200px) {
  .sidebar {
    width: 300px;
  }
  .greeting {
    font-size: 2.2rem;
  }
  .featured-projects h2 {
    font-size: 1.6rem;
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .layout-wrapper {
    flex-direction: column;
    height: auto;
    width: 100%;
    gap: 0;
    align-items: flex-start;
    padding-top: 10px;
  }
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
  }
  .logo {
    margin-bottom: 0;
  }
  .logo-text {
    font-size: 1.5rem;
  }
  .nav-buttons {
    flex-direction: row;
    width: auto;
    gap: 8px;
    align-items: center;
  }
  .nav-btn {
    padding: 10px 15px;
    font-size: 1rem;
    white-space: nowrap;
  }
  .nav-auth-buttons {
    display: contents;
  }
  .container {
    width: 100%;
    min-height: auto;
    border-radius: 0;
    justify-content: center;
    align-items: flex-start;
  }
  .main-content {
    padding: 20px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .greeting-avatar {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }
  .greeting {
    font-size: 1.8rem;
  }
  .sidebar {
    padding: 10px;
  }
  .logo-img {
      display: none;
  }
  .nav-buttons {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
  }
  .nav-buttons::-webkit-scrollbar { 
    display: none; /* Safari and Chrome */
  }
  .projects-section {
    margin-top: 15px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-items: center;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px;
  }
  .greeting {
    font-size: 1.5rem;
  }
  .featured-projects h2 {
    font-size: 1.3rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Tab Navigation */
.explore-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  width: 100%;
  justify-content: center;
}

/* Skeuomorphic button (from DESIGN_RULES.md) */
.skeuomorphic-btn {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border: 2px solid #d4d4d4;
  border-radius: 8px;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.2s ease;
}

.skeuomorphic-btn:hover {
  background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transform: translateY(1px);
}

.skeuomorphic-btn:active {
  background: linear-gradient(145deg, #d9d9d9, #f0f0f0);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.8);
  transform: translateY(2px);
}

.tab-btn {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 8px; /* keep radius to match skeuomorphic */
  font-family: 'Baloo 2', cursive;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.tab-btn:hover {
  transform: translateY(-1px);
}

/* Apply skeuomorphic skin via class composition */
.tab-btn.skeuomorphic-btn:hover { transform: translateY(1px); }

.tab-btn.active {
  transform: translateY(0);
}

.tab-btn.active::before { opacity: 0.9; }

/* Tab Content */
.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: block;
}

/* Filter Container */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
  align-items: stretch;
}

/* Filter Toggle Section */
.filter-toggle-section {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  width: 100%;
}

.filter-toggle-section .filter-toggle-btn {
  width: auto;
  min-width: 80px;
  max-width: 120px;
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  min-width: auto;
  max-width: 120px;
}

.filter-toggle-btn:hover {
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.filter-toggle-btn.active {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: white;
  border-color: #1d4ed8;
}

/* Filters Panel */
.filters-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border-radius: 15px;
  border: 2px solid #cbd5e1;
}

.filters-panel.open {
  max-height: 800px;
  padding: 15px;
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-container {
  flex: 1;
  margin-bottom: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Tighter spacing between search bar and filters */
.filters-panel .search-container { margin-bottom: 15px; }

/* Tiny skeuomorphic button */
.tiny-skeu-btn {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-family: 'Baloo 2', cursive;
  border-radius: 8px;
  border: 1px solid #b0b0b0;
  background: linear-gradient(145deg, #ffffff, #ececec);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.08);
  cursor: pointer;
  color: #333;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.tiny-skeu-btn:active {
  background: linear-gradient(145deg, #ececec, #ffffff);
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.12);
}

/* Update search bar selectors */
#projects-search, #users-search {
  width: 100%;
  max-width: 400px;
  padding: 8px 10px;
  font-size: 0.95rem;
  border-radius: 16px;
  border: 2px solid #ccc;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  display: block;
  margin: 0 auto;
  flex: 1;
}

#projects-search:focus, #users-search:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 
    0 2px 4px rgba(40, 167, 69, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Type Filter */
.type-filter-container {
  min-width: 150px;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.type-filter {
  width: 220px;
  max-width: 220px;
  flex: 0 0 220px;
  padding: 12px;
  font-size: 0.95rem;
  border-radius: 18px;
  border: 2px solid #ccc;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: 'Baloo 2', cursive;
  display: block;
  margin: 0;
}

.type-filter:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 
    0 2px 4px rgba(40, 167, 69, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.type-filter:hover {
  border-color: #adb5bd;
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Users Grid */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.user-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 2px solid #e9ecef;
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.user-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: #4CAF50;
}

.user-avatar-container {
  position: relative;
  margin-bottom: 8px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #4CAF50;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(76, 175, 80, 0.1);
  transition: all 0.3s ease;
}

.user-card:hover .user-avatar {
  transform: scale(1.1);
  border-color: #2e7d32;
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(76, 175, 80, 0.2);
}

.user-card-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-username {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-quote {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.user-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.user-stat {
  font-size: 0.8rem;
  color: #495057;
  background: rgba(76, 175, 80, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

/* Presence indicator dot */
.presence-dot { 
  position: absolute; 
  top: 4px; 
  right: 4px; 
  width: 16px; 
  height: 16px; 
  border-radius: 50%; 
  border: 3px solid #fff; 
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
  z-index: 2;
}
.presence-online { 
  background: #2ecc71; 
  animation: pulse 2s infinite;
}
.presence-offline { 
  background: #bdc3c7; 
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Loading Placeholders */
.loading-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.placeholder-card {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border: 2px solid #dee2e6;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}

.placeholder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.placeholder-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.placeholder-line {
  height: 16px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.5s infinite;
}

.placeholder-title {
  width: 60%;
  height: 20px;
}

.placeholder-quote {
  width: 80%;
  height: 14px;
}

.placeholder-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.placeholder-stat {
  flex: 1;
  height: 24px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  border-radius: 12px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Empty States */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #495057;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
}

/* Error States */
.error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #dc3545;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.error-state h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #dc3545;
}

.error-state p {
  margin: 0 0 20px 0;
  font-size: 1rem;
  opacity: 0.8;
  color: #6c757d;
}

.retry-button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.retry-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
}

.retry-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Responsive adjustments for tabs and users */
@media (max-width: 768px) {
  .explore-tabs {
    flex-direction: column;
    gap: 8px;
  }
  
  .tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .filter-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-toggle-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .filters-panel.open {
    padding: 15px;
  }
  
  .primary-filters-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .advanced-filters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .type-filter-container {
    min-width: 100%;
  }
  
  .users-grid {
    grid-template-columns: 1fr;
  }
  
  .user-card {
    padding: 15px;
  }
  
  .user-avatar {
    width: 50px;
    height: 50px;
  }
} 

/* Standardize sidebar to match homepage */
.sidebar {
  width: 400px !important;
  background: url('../Sidebar.png') center center / 100% 100% no-repeat !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  height: 88vh !important;
}
.nav-buttons { width: 80% !important; display: flex !important; flex-direction: column !important; gap: 15px !important; }

/* Enhanced Filter Container */
.filter-container {
  background: linear-gradient(145deg, #f8fafc, #f1f5f9, #e2e8f0);
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 
    0 12px 25px rgba(0, 0, 0, 0.1),
    0 6px 12px rgba(0, 0, 0, 0.05),
    inset 0 3px 6px rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px rgba(0, 0, 0, 0.1),
    inset 2px 0 4px rgba(255, 255, 255, 0.6),
    inset -2px 0 4px rgba(0, 0, 0, 0.05);
  border: 3px solid #cbd5e1;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.filter-container::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4), rgba(255,255,255,0.8));
  border-radius: 18px 18px 0 0;
}

/* Search Container */
.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.clear-filters-btn {
  padding: 8px;
  background: linear-gradient(145deg, #ef4444, #dc2626);
  border: 2px solid #b91c1c;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 8px rgba(239, 68, 68, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.clear-filters-btn:hover {
  background: linear-gradient(145deg, #f87171, #ef4444);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(239, 68, 68, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Primary Filters Row */
.primary-filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.filter-select {
  padding: 10px 14px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Advanced Filters Toggle */
.advanced-filters-toggle {
  text-align: center;
  margin-bottom: 12px;
}

.toggle-advanced-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  border: 2px solid #3730a3;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 8px rgba(99, 102, 241, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.toggle-advanced-btn:hover {
  background: linear-gradient(145deg, #7c3aed, #6366f1);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(99, 102, 241, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.toggle-arrow {
  transition: transform 0.3s ease;
}

/* Advanced Filters Panel */
.advanced-filters-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
  border-radius: 12px;
  margin-top: 12px;
}

.advanced-filters-panel.open {
  max-height: 400px;
  padding: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.advanced-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

/* Tag Filter Container */
.tag-filter-container {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 15px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  border: 1px solid #93c5fd;
  border-radius: 8px;
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 4px rgba(59, 130, 246, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.tag-btn:hover {
  background: linear-gradient(145deg, #bfdbfe, #93c5fd);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 8px rgba(59, 130, 246, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.tag-btn.active {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: white;
  border-color: #1d4ed8;
  box-shadow: 
    0 4px 8px rgba(59, 130, 246, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.tag-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-btn.active .tag-count {
  background: rgba(255, 255, 255, 0.4);
}

.no-tags {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 20px;
}

/* View Mode Container */
.view-mode-container {
  display: flex;
  gap: 8px;
}

.view-mode-btn {
  flex: 1;
  padding: 10px;
  background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
  border: 2px solid #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.view-mode-btn:hover {
  background: linear-gradient(145deg, #e5e7eb, #d1d5db);
  transform: translateY(-1px);
}

.view-mode-btn.active {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: white;
  border-color: #1d4ed8;
  box-shadow: 
    0 4px 8px rgba(59, 130, 246, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.view-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Active Filters Display */
.active-filters {
  background: linear-gradient(145deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  box-shadow: 
    0 4px 8px rgba(245, 158, 11, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.active-filters-label {
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
}

.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid #d97706;
  border-radius: 6px;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 
    0 2px 4px rgba(217, 119, 6, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.remove-filter-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-filter-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Projects Grid View Modes */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.projects-list .project-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.projects-list .project-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.projects-list .project-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.projects-list .project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.projects-list .project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.projects-list .project-meta {
  font-size: 0.9rem;
  color: #6b7280;
}