:root {
  --sidebar-width: 260px;
}

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

body {
  background: var(--bg-primary);
  font-family: var(--font-main);
  color: var(--text-primary);
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  margin-left: 260px;
  padding: 36px 40px;
  width: 100%;
  max-width: 1440px;
  margin-right: auto;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--accent-primary);
}

.delete-project-btn {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.delete-project-btn:hover {
  background: #fecaca !important;
  border-color: #f87171 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1) !important;
  transform: translateY(-1px);
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.12);
}

.top-header h2 {
  font-size: 28px;
  font-family: var(--font-heading);
}

.top-header p {
  font-size: 14px;
  color: var(--text-accent);
}

.dashboard-section {
  margin-bottom: 40px;
}

.dashboard-section:first-of-type {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.dashboard-section label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.dashboard-section input,
.dashboard-section select {
  width: 280px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(136, 146, 176, 0.25);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.dashboard-section input:focus,
.dashboard-section select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.18);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.demo-card {
  background: var(--bg-secondary);
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(136, 146, 176, 0.15);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.demo-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-hover);
}

.demo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 4px;
}

.demo-status-badge.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.demo-status-badge.inactive {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.active {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.inactive {
  background-color: #ef4444;
}

.demo-thumbnail {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.team-grid {
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding-top: 10px;
  justify-content: center;
  align-items: stretch;
}

.team-grid .team-card {
  flex: 0 1 320px;
  width: 320px;
  min-width: 280px;
}

.team-card {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(120, 100, 80, 0.15);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Added for vertical centering */
  text-align: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1; /* Added for square shape */
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
}

.team-card:hover::before {
  opacity: 1;
}

.team-card-icon {
  width: 64px;
  height: 64px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.team-card:hover .team-card-icon {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.1);
}

.team-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.team-card-footer {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
}

.back-button {
  background: transparent !important;
  color: var(--accent-primary) !important;
  border: 1px solid var(--accent-primary) !important;
  padding: 8px 16px !important;
  box-shadow: none !important;
}

.back-button:hover {
  background: rgba(14, 165, 233, 0.05) !important;
  transform: translateX(-4px) !important;
}

.demo-card h4 {
  font-size: 17px;
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.demo-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag-chip {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(100, 255, 218, 0.12);
  color: var(--accent-primary);
  font-weight: 600;
}

.demo-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

button {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  transition: all 0.2s ease;
}

button:hover {
  background: rgba(100, 255, 218, 0.15);
  box-shadow: 0 0 14px rgba(100, 255, 218, 0.25);
}

.admin-card-actions {
  display: flex;
  gap: 10px;
}

.main-content > button {
  margin-top: 16px;
  background: var(--accent-primary);
  color: #0a192f;
  border: none;
}

.main-content > button:hover {
  box-shadow: 0 0 18px rgba(100, 255, 218, 0.4);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2050; /* Ensure it's above everything including sidebar */
}

@media (max-width: 768px) {
  .project-modal-container {
    height: 95vh;
    max-height: none;
    width: 95%;
  }

  .project-modal-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .carousel-section {
    flex: none;
    height: 300px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .project-details-section {
    flex: none;
    padding: 24px;
  }
}


.modal {
  background: var(--bg-secondary);
  padding: 28px;
  border-radius: 14px;
  width: 460px;
}

.modal label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.modal input,
.modal textarea,
.modal select {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(136, 146, 176, 0.3);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.modal textarea {
  resize: vertical;
  min-height: 80px;
}

.modal label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.modal input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.multi-select-container {
  position: relative;
}

.multi-select-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(136, 146, 176, 0.3);
  background: var(--bg-primary);
}

.multi-select-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(136, 146, 176, 0.3);
  border-radius: 10px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-hover);
}

.multi-select-option {
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}

.multi-select-option:hover {
  background: rgba(100, 255, 218, 0.12);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 24px 20px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .top-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .dashboard-header-center {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-section:first-of-type {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-section input,
  .dashboard-section select {
    width: 100%;
  }

  .modal {
    width: 90%;
    padding: 24px 20px;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
  }

  .team-grid .team-card {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: auto;
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .admin-card-actions {
    flex-direction: column;
  }
}

  /* Explorer Grid Styles (Windows-like) */
  .explorer-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  
  .explorer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .explorer-back-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: #0891b2;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
  }
  
  .explorer-back-btn:hover {
    background: #f1f5f9;
  }
  
  .explorer-path {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
  }
  
  .path-segment {
    font-weight: 500;
    color: #334155;
  }
  
  .path-segment.clickable {
    cursor: pointer;
  }
  
  .path-segment.clickable:hover {
    color: #0ea5e9;
    text-decoration: underline;
  }
  
  .path-separator {
    color: #cbd5e1;
  }
  
  .explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Increased from 120px */
    gap: 20px;
  }
  
  .explorer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    height: 100%;
  }
  
  .explorer-item:hover {
    background: #e6f4f8; /* Light hover blue similar to windows */
    outline: 1px solid #bae6fd;
  }
  
  .explorer-item.folder .explorer-icon,
  .explorer-item.file .explorer-icon {
    font-size: 64px; /* Increased from 40px */
    margin-bottom: 16px;
    height: 100px; /* Increased from 60px */
    width: 100px; /* Increased from 60px */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0,0,0,0.02); /* Subtle placeholder */
  }
  
  .item-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
  }
  
  .explorer-item:hover .item-thumbnail {
    transform: scale(1.05);
  }
  
  .explorer-label {
    font-size: 0.95rem;
    color: #1e293b;
    word-break: break-word;
    line-height: 1.4;
    max-width: 100%;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */ /* Optional: limit lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .explorer-details {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
  }
  
  .explorer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
  }
  
  .explorer-actions {
    margin-top: auto;
    padding-top: 10px;
  }
  
  .explorer-actions button {
    font-size: 0.75rem;
    padding: 2px 10px;
    border: 1px solid #ef4444;
    color: #ef4444;
    background: white;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .explorer-actions button:hover {
    background: #ef4444;
    color: white;
  }
  
  .explorer-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-style: italic;
  }
  
  /* Filter Drawer Styles */
  .filter-drawer {
    position: fixed;
    top: 140px; /* Below header */
    bottom: 40px;
    right: -320px; /* Hidden */
    width: 300px;
    background: var(--bg-secondary);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    padding: 24px;
    overflow-y: auto;
    border: 1px solid rgba(136, 146, 176, 0.15);
    border-right: none;
  }

  .filter-drawer.open {
    right: 0;
  }

  .drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    transition: opacity 0.3s ease;
  }

  .filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(136, 146, 176, 0.15);
    padding-bottom: 12px;
  }

  .filter-drawer-header h3 {
    font-size: 18px;
    margin: 0;
    color: var(--text-primary);
  }

  .close-drawer-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: background 0.2s;
  }
  
  .close-drawer-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
  }

  /* Removed filter-drawer-toggle styles */

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

  .filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .filter-checkbox-item:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.02);
  }

  .filter-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--accent-primary);
    cursor: pointer;
  }
  
  .filter-panel {
     /* Legacy or unused now */
     display: none;
  }

  .multi-select-container {
    position: relative;
    width: 100%;
  }

.multi-select-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(136, 146, 176, 0.3);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.multi-select-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  min-width: 120px;
}

.multi-select-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(100, 255, 218, 0.15);
  color: var(--accent-primary);
}

.multi-select-tag button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(100, 255, 218, 0.25);
  color: var(--accent-primary);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.multi-select-tag button:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.multi-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(136, 146, 176, 0.25);
  border-radius: 10px;
  z-index: 100;
  box-shadow: var(--shadow-hover);

  max-height: 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Refactored Dashboard Styles */

.dashboard-search-container {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.search-group {
  display: flex;
  flex-direction: column;
  min-width: 260px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  padding: 4px;
  border-radius: 50%;
}

.search-clear-btn:hover {
  transform: translateY(-50%) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b;
}

.sort-btn-wrapper {
  margin-top: 22px;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  padding: 0;
  color: #0891B2;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
  margin-top: 22px;
}

.action-btn {
  padding: 10px 24px;
  border-radius: 28px;
}

.semantic-search-btn {
  padding: 10px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
}

.semantic-search-btn-searching {
  background: #f1f5f9;
}

.semantic-results-header {
  margin-bottom: 16px;
}

.semantic-results-subtext {
  color: #6b7280;
  font-size: 13px;
}

.filter-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clear-all-btn {
  font-size: 12px;
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Project Modal Refactor */
.project-modal-container {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 1000px;
  height: 85vh;
  max-height: 800px;
}

.project-modal-close {
  z-index: 10;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 16px;
  right: 16px;
  position: absolute;
  cursor: pointer;
  padding: 0;
}

.project-modal-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal-body {
  display: flex;
  flex: 1;
  height: 100%;
}

.carousel-section {
  flex: 1.5;
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-nav-btn.prev {
  left: 20px;
}

.carousel-nav-btn.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot.active {
  background: white;
}

.carousel-dot.inactive {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-no-preview {
  color: #94a3b8;
}

.project-details-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  background: white;
  overflow-y: auto;
}

.project-details-content {
  margin-bottom: auto;
}

.project-category-tag {
  margin-bottom: 16px;
  display: inline-block;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.project-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 32px;
  line-height: 1.2;
}

.download-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}


.download-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box-pbix {
  background: #F2C811;
  color: black;
  font-weight: bold;
  font-size: 10px;
}

.icon-box-doc {
  background: #2563eb;
  color: white;
}

.icon-box-empty {
  background: #e2e8f0;
}

.download-info-title {
  color: #0f172a;
  font-weight: 600;
}

.download-info-subtitle {
  color: #64748b;
  font-size: 13px;
}

.download-card-empty {
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.spin-animation {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.label-with-margin {
  margin-bottom: 6px;
}

.search-group-min-width {
  min-width: 200px;
}

.empty-state-container {
  text-align: center;
  padding: 40px 0;
}

.search-input-with-clear {
  padding-right: 36px;
  width: 100%;
}

.search-input-no-clear {
  padding-right: 12px;
  width: 100%;
}

.dashboard-section-min-height {
  min-height: 400px;
  position: relative;
}

.flex-one {
  flex: 1;
}

.upload-modal-width {
  width: 520px;
}

.upload-box-margin {
  margin-bottom: 16px;
}

.upload-input-margin {
  margin-bottom: 12px;
}

.upload-btn-align {
  align-self: flex-start;
}

.upload-placeholder {
  text-align: center;
  padding: 20px;
  color: #64748b;
}

.upload-placeholder-hint {
  font-size: 12px;
  margin-top: 8px;
}

.project-modal-container-old {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 1000px;
  height: 85vh;
  max-height: 800px;
}

.project-modal-close-old {
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 16px;
  right: 16px;
}

.project-modal-loading-old {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal-body-old {
  display: flex;
  flex: 1;
  height: 100%;
}

.carousel-section-old {
  flex: 1.5;
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-image-old {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-nav-btn-prev {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav-btn-next {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-dots-container {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.carousel-dot-item {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot-item-active {
  background: white;
}

.carousel-dot-item-inactive {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-no-preview-old {
  color: #94a3b8;
}

.project-details-section-old {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  background: white;
  overflow-y: auto;
}

.project-details-content-old {
  margin-bottom: auto;
}

.project-category-tag-old {
  margin-bottom: 16px;
  display: inline-block;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.project-title-old {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 32px;
  line-height: 1.2;
}

.download-section-old {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.download-card-inner-old {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-box-pbix-old {
  width: 40px;
  height: 40px;
  background: #F2C811;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-weight: bold;
  font-size: 10px;
}

.icon-box-doc-old {
  width: 40px;
  height: 40px;
  background: #2563eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.download-info-title-old {
  color: #0f172a;
  font-weight: 600;
}

.download-info-subtitle-old {
  color: #64748b;
  font-size: 13px;
}

.download-card-empty-old {
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-box-empty-old {
  width: 40px;
  height: 40px;
  background: #e2e8f0;
  border-radius: 8px;
}

.multi-select-option {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.multi-select-option:hover {
  background: rgba(100, 255, 218, 0.12);
}

.multi-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.multi-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(136, 146, 176, 0.4);
  border-radius: 10px;
}

:root {
  --bg-primary: #F6F1EA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #FBF8F4;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-accent: #0F172A;
  --accent-primary: #0EA5E9;
  --accent-secondary: #FBBF24; 
  --accent-muted: #E5E7EB;
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
}

body {
  background: linear-gradient(
    180deg,
    #F5F1EB 0%,
    #EFE8DF 100%
  );
}

.demo-card,
.modal,
.multi-select-dropdown {
  background: #FFFFFF;
  border: 1px solid rgba(120, 100, 80, 0.18);
}

button,
.login-button,
.main-content > button {
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

button:hover,
.login-button:hover,
.main-content > button:hover {
  background: #0284C7;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.main-content > button {
  background: linear-gradient(
    135deg,
    #FACC15,
    #FDE047
  );
  color: #422006;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.45);
}

.main-content > button:hover {
  background: linear-gradient(
    135deg,
    #38BDF8,
    #7DD3FC
  );
  color: #0F172A;
}

.button-secondary {
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--accent-secondary);
  color: #111827;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.button-secondary:hover {
  background: #F59E0B;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.tag-chip,
.multi-select-tag {
  background: rgba(56, 189, 248, 0.18);
  color: #0369A1;
}
input,
select,
textarea,
.multi-select-input {
  background: #FBF9F6;
  border: 1px solid rgba(120, 100, 80, 0.25);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.top-header {
  border-bottom: 1px solid rgba(120, 100, 80, 0.25);
}
.dashboard-header-center {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-bottom: 28px;
}

.dashboard-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.dashboard-title {
  margin: 6px 0 10px;
}

.dashboard-title-marker {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;

  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);

  background-image: linear-gradient(
    179deg,
    #FFB71D 0%,
    #FFB71D 62%,
    transparent 54%,
    transparent 100%
  );
  background-size: 100% 18%;
  background-repeat: repeat-x;
  background-position: left 0% bottom -7%;
}

.dashboard-header-center p {
  font-size: 14px;
  color: var(--text-secondary);
}

.modal {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;

  background: transparent;
  border: none;
  padding: 0;

  font-size: 22px;
  font-weight: 400;
  line-height: 1;

  color: var(--text-secondary);
  cursor: pointer;

  box-shadow: none;
}

.multi-select-clear {
  position: absolute;
  top: 6px;
  right: 6px;

  border: none;
  background: transparent;

  color: #9ca3af;
  font-size: 14px;
  line-height: 1;

  cursor: pointer;
  padding: 4px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.multi-select-clear:hover {
  color: #374151;
}

.modal {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* smoother scroll + better UX */
.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(136, 146, 176, 0.45);
  border-radius: 10px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

/* ensure modal stays centered even when scrolling */
.modal-overlay {
  align-items: flex-start;
  padding: 40px 0;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-close:active {
  transform: scale(0.95);
}

.dashboard-upload-box input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed rgba(136, 146, 176, 0.3);
  border-radius: 8px;
  background: var(--bg-primary);
  cursor: pointer;
  font-size: 13px;
}

.dashboard-upload-box input[type="file"]:hover {
  border-color: var(--accent-primary);
  background: rgba(14, 165, 233, 0.05);
}

.demo-thumbnail-upload {
  margin-top: 4px;
  border: 2px dashed rgba(136, 146, 176, 0.3) !important;
  background: var(--bg-primary) !important;
  padding: 16px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  min-height: 100px !important;
}

.demo-thumbnail-upload:hover, .demo-thumbnail-upload.drag-active {
  border-color: var(--accent-primary) !important;
  background: rgba(100, 255, 218, 0.05) !important;
}

.demo-thumbnail-upload .upload-placeholder p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Full Screen Carousel Overlay */
.full-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}

.full-screen-image-container {
  width: 90%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 3001;
}

.full-screen-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.full-screen-image:active {
  cursor: grabbing;
}

.full-screen-controls {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 3010;
}

.control-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    gap: 8px;
}

.full-screen-controls button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.full-screen-controls button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  transform: translateY(-2px);
}

.full-screen-close-btn {
  font-size: 28px !important;
  line-height: 1;
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  margin-left: 8px;
}

.full-screen-close-btn:hover {
    background: #ef4444 !important;
    color: white !important;
    transform: rotate(90deg) scale(1.05) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

.full-screen-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3010;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.full-screen-nav-btn svg {
    width: 44px;
    height: 44px;
}

.full-screen-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.15);
}

.full-screen-nav-btn.prev { left: 40px; }
.full-screen-nav-btn.next { right: 40px; }

.full-screen-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3010;
    letter-spacing: 1px;
}

/* Enhancing existing carousel image */
.carousel-image {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-image:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}