:root {
  --primary: #20eca4;
  --primary-dark: #17c694;
  --dark-bg: #121212;
  --dark-bg-lighter: #1a1a1a;
  --card-bg: #222222;
  --accent: #20eca4;
  --text: #e0e0e0;
  --text-light: #ffffff;
  --text-muted: #888;
  --border: #333;
  --border-light: #444;
  --integrated-bg: rgba(32, 236, 164, 0.1);
  --integrated-color: #20eca4;
  --inprogress-bg: rgba(255, 193, 7, 0.1);
  --inprogress-color: #ffc107;
  --communication-bg: rgba(255, 193, 7, 0.05);
  --communication-color: #ffc107;
  --postponed-bg: rgba(108, 117, 125, 0.1);
  --postponed-color: #6c757d;
  --unknown-bg: rgba(220, 53, 69, 0.1);
  --unknown-color: #dc3545;
  --report-color: #20eca4;
  --report-bg: rgba(32, 236, 164, 0.1);
  --success-color: #28a745;
  --success-bg: rgba(40, 167, 69, 0.1);
  --error-color: #dc3545;
  --error-bg: rgba(220, 53, 69, 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text);
  line-height: 1.6;
  padding: 0;
  min-height: 100vh;
}

@supports (font-variation-settings: normal) {
  body { font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; }
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER STYLES */
header {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  z-index: 1000;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary) 0%, #2ef7c6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* Updated Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.follow-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  flex-wrap: wrap;
}

.follow-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  padding-right: 0.75rem;
  border-right: 1px solid var(--border-light);
}

.follow-label i {
  color: var(--primary);
  font-size: 0.9rem;
}

.social-links-integrated {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.social-link-item:hover {
  background: rgba(32, 236, 164, 0.1);
  color: var(--primary);
  transform: translateY(-1px);
}

.social-link-item i {
  font-size: 1rem;
}

/* Improved Report Button */
.report-btn {
  background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  height: 44px;
  padding: 0 1.25rem;
  white-space: nowrap;
  min-width: fit-content;
  letter-spacing: 0.02em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  overflow: hidden;
}

.report-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent);
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.last-updated {
  text-align: center;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.last-updated .timestamp {
  font-weight: 600;
  color: var(--primary);
  margin-left: 0.25rem;
}

/* MAIN GRID LAYOUT */
.main-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  margin: 1rem 0;
  min-height: calc(100vh - 120px);
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* LEFT PANEL STYLES */
.left-panel {
  background: linear-gradient(145deg, var(--dark-bg-lighter) 0%, var(--card-bg) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.filters-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.filters-header h2 i {
  color: var(--primary);
  background: rgba(32, 236, 164, 0.1);
  padding: 0.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.search-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.search-box {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(32, 236, 164, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-section {
  margin-bottom: 1.25rem;
}

.filter-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-title i {
  font-size: 0.8rem;
}

.type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.type-btn {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 500;
  user-select: none;
  white-space: nowrap;
}

.type-btn:hover {
  border-color: var(--primary);
  background: rgba(32, 236, 164, 0.05);
}

.type-btn.active {
  background: rgba(32, 236, 164, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.stage-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stage-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.stage-option:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

.stage-option.active {
  border-color: transparent;
  font-weight: 600;
}

.stage-option.integrated.active {
  background: var(--integrated-bg);
  color: var(--integrated-color);
}

.stage-option.in-progress.active {
  background: var(--inprogress-bg);
  color: var(--inprogress-color);
}

.stage-option.postponed.active {
  background: var(--postponed-bg);
  color: var(--postponed-color);
}

.stage-option.unknown.active {
  background: var(--unknown-bg);
  color: var(--unknown-color);
}

.stage-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  flex: 1;
}

.stage-icon {
  font-size: 1rem;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-option.integrated .stage-icon {
  background: rgba(32, 236, 164, 0.15);
  color: var(--integrated-color);
}

.stage-option.in-progress .stage-icon {
  background: rgba(255, 193, 7, 0.15);
  color: var(--inprogress-color);
}

.stage-option.postponed .stage-icon {
  background: rgba(108, 117, 125, 0.15);
  color: var(--postponed-color);
}

.stage-option.unknown .stage-icon {
  background: rgba(220, 53, 69, 0.15);
  color: var(--unknown-color);
}

.stage-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  min-width: 30px;
  text-align: center;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}

.stage-option.active .stage-count {
  color: inherit;
  background: rgba(255, 255, 255, 0.2);
}

.stage-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.stage-option.active .stage-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark-bg);
}

.stage-option.active .stage-checkbox::after {
  content: '✓';
  font-weight: bold;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(32, 236, 164, 0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid rgba(32, 236, 164, 0.3);
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-tag.type {
  background: rgba(255, 193, 7, 0.1);
  color: var(--inprogress-color);
  border-color: rgba(255, 193, 7, 0.3);
}

.filter-tag.stage {
  background: rgba(108, 117, 125, 0.1);
  color: var(--postponed-color);
  border-color: rgba(108, 117, 125, 0.3);
}

.filter-tag .remove-filter {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  font-size: 0.9rem;
  line-height: 1;
  padding-left: 0.25rem;
}

.filter-tag .remove-filter:hover {
  opacity: 1;
}

.no-filters {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  width: 100%;
  text-align: center;
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.clear-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

.clear-filters:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #dc3545;
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem;
  border-radius: 8px;
}

.view-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.view-btn.active {
  background-color: var(--primary);
  color: var(--dark-bg);
}

.view-btn:hover:not(.active) {
  color: var(--primary);
  background-color: rgba(32, 236, 164, 0.1);
}

/* RIGHT PANEL STYLES */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: calc(100vh - 120px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: linear-gradient(145deg, var(--dark-bg-lighter) 0%, var(--card-bg) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem;
  height: fit-content;
}

.stat-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.stat-card.integrated::before { background: var(--integrated-color); }
.stat-card.in-progress::before { background: var(--inprogress-color); }
.stat-card.postponed::before { background: var(--postponed-color); }
.stat-card.unknown::before { background: var(--unknown-color); }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stat-card.active {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: transparent;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-feature-settings: "tnum";
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.integrated .stat-value { color: var(--integrated-color); }
.in-progress .stat-value { color: var(--inprogress-color); }
.postponed .stat-value { color: var(--postponed-color); }
.unknown .stat-value { color: var(--unknown-color); }

.results-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--dark-bg-lighter) 0%, var(--card-bg) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.results-header {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
}

.results-header h3 {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.results-header h3 i {
  color: var(--primary);
}

.results-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.results-content {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: transparent;
}

.card-integrated {
  border-color: rgba(32, 236, 164, 0.2);
  background: linear-gradient(135deg, rgba(32, 236, 164, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.card-integrated:hover {
  box-shadow: 0 10px 20px rgba(32, 236, 164, 0.1);
}

.card-integrated::before {
  background: var(--integrated-color);
}

.card-in-progress {
  border-color: rgba(255, 193, 7, 0.2);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.card-in-progress:hover {
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.1);
}

.card-in-progress::before {
  background: var(--inprogress-color);
}

.card-postponed {
  border-color: rgba(108, 117, 125, 0.2);
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.card-postponed:hover {
  box-shadow: 0 10px 20px rgba(108, 117, 125, 0.1);
}

.card-postponed::before {
  background: var(--postponed-color);
}

.card-unknown {
  border-color: rgba(220, 53, 69, 0.2);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.card-unknown:hover {
  box-shadow: 0 10px 20px rgba(220, 53, 69, 0.1);
}

.card-unknown::before {
  background: var(--unknown-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.project-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text-light);
  line-height: 1.3;
}

.project-type {
  color: var(--text-muted);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  display: inline-block;
  font-weight: 500;
}

.project-stage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.stage-integrated {
  background: var(--integrated-bg);
  color: var(--integrated-color);
  border: 1px solid rgba(32, 236, 164, 0.3);
}

.stage-in-progress {
  background: var(--inprogress-bg);
  color: var(--inprogress-color);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.stage-communication {
  background: var(--communication-bg);
  color: var(--communication-color);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.stage-postponed {
  background: var(--postponed-bg);
  color: var(--postponed-color);
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.stage-unknown {
  background: var(--unknown-bg);
  color: var(--unknown-color);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-icon {
  font-size: 0.9rem;
}

.social-link {
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-link:hover {
  color: var(--primary);
  background: rgba(32, 236, 164, 0.15);
  transform: scale(1.1);
}

/* TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border-light);
}

td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

tr {
  transition: all 0.2s ease;
}

tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.status-integrated {
  border-left: 3px solid var(--integrated-color);
}

.status-in-progress {
  border-left: 3px solid var(--inprogress-color);
}

.status-communication {
  border-left: 3px solid var(--communication-color);
}

.status-postponed {
  border-left: 3px solid var(--postponed-color);
}

.status-unknown {
  border-left: 3px solid var(--unknown-color);
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* PAGINATION STYLES */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.1);
}

.pagination button {
  padding: 0.5rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover {
  border-color: var(--primary);
}

.pagination button.active {
  background: var(--primary);
  color: var(--dark-bg);
  border-color: var(--primary);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* NO RESULTS STYLES */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.no-results p {
  font-size: 0.9rem;
}

.loader-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loader-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.loader-text::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* FOOTER STYLES */
footer {
  text-align: center;
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.8;
}

/* MODAL STYLES */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--dark-bg-lighter);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

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

.modal-form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.modal-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

.modal-form-control {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.modal-form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(32, 236, 164, 0.2);
}

.modal-form-control.select {
  cursor: pointer;
}

.modal-form-control.error {
  border-color: var(--error-color);
}

.modal-form-control.error:focus {
  border-color: var(--error-color);
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.field-error {
  color: var(--error-color);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.2s ease;
}

.field-error i {
  font-size: 0.9rem;
}

/* Improved Modal Button */
.modal-btn {
  background: linear-gradient(135deg, #20eca4 0%, #17c694 100%);
  color: #121212;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.75rem;
  width: 100%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.notification {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 10000;
  animation: slideInRight 0.3s ease forwards;
  max-width: 400px;
  width: calc(100% - 2rem);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.notification.success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.notification.error {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

.notification-icon {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification.success .notification-icon {
  background: rgba(40, 167, 69, 0.2);
}

.notification.error .notification-icon {
  background: rgba(220, 53, 69, 0.2);
}

.notification-icon i {
  font-size: 1.2rem;
}

.notification.success .notification-icon i {
  color: var(--success-color);
}

.notification.error .notification-icon i {
  color: var(--error-color);
}

.notification-text {
  flex: 1;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
  font-size: 1rem;
  line-height: 1;
  align-self: flex-start;
  margin-top: -0.25rem;
}

.notification-close:hover {
  color: var(--text-light);
}

/* SCROLLBAR STYLES */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  header {
    padding: 0.5rem 0;
  }
  
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .logo {
    justify-content: center;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .logo h1 {
    font-size: 1.1rem;
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  
  .follow-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .follow-label {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: 0.75rem;
    padding-left: 0;
    width: 100%;
    justify-content: center;
  }
  
  .social-links-integrated {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  
  .social-link-item {
    padding: 0.4rem;
    flex: 1;
    justify-content: center;
  }
  
  .report-btn {
    width: 100%;
    justify-content: center;
  }
  
  .stats {
    display: none !important;
  }
  
  .stage-option .stage-count {
    display: inline-block;
  }
  
  .stage-option.unknown {
    display: flex !important;
  }
  
  .main-grid {
    margin: 0.5rem 0;
    min-height: calc(100vh - 140px);
  }
  
  .left-panel {
    position: static;
    max-height: none;
    top: auto;
  }
  
  .right-panel {
    min-height: calc(100vh - 140px);
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  th, td {
    padding: 0.5rem 0.75rem;
    min-width: 80px;
  }
  
  .stage-badge {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  th:nth-child(1), td:nth-child(1) {
    min-width: 120px;
    max-width: 150px;
  }
  
  th:nth-child(2), td:nth-child(2) {
    min-width: 80px;
    max-width: 100px;
  }
  
  th:nth-child(3), td:nth-child(3) {
    min-width: 100px;
    max-width: 130px;
  }
  
  th:nth-child(4), td:nth-child(4) {
    min-width: 50px;
    max-width: 60px;
    text-align: center;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.1rem;
  }
  
  .notification {
    bottom: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: none;
  }
}

@media (min-width: 769px) {
  .stage-option .stage-count {
    display: none;
  }
  
  .stage-option.unknown {
    display: none !important;
  }
  
  .stats {
    display: grid !important;
  }
  
  .stage-badge {
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .report-btn {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .follow-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 32px;
    width: 32px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .clear-filters, .view-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .view-toggle {
    justify-content: center;
  }
  
  .social-link-item {
    padding: 0.35rem;
  }
  
  .social-link-item i {
    font-size: 0.9rem;
  }
  
  table {
    font-size: 0.8rem;
  }
  
  th, td {
    padding: 0.4rem 0.5rem;
  }
  
  .stage-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
  
  .project-type {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
  }
  
  .report-btn {
    font-size: 0.8rem;
    padding: 0 0.75rem;
  }
  
  .report-btn i {
    font-size: 0.8rem;
  }
}