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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #e0e6ed;
  min-height: 100vh;
  line-height: 1.6;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header {
  background: linear-gradient(135deg, 
    rgba(15, 15, 35, 0.95) 0%, 
    rgba(26, 26, 46, 0.90) 30%, 
    rgba(30, 30, 60, 0.85) 70%, 
    rgba(20, 20, 40, 0.95) 100%);
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(96, 165, 250, 0.03) 50%, transparent 70%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

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

.logo-snp {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
  filter: brightness(1.1) contrast(1.1);
}

.logo-snp:hover {
  transform: scale(1.02);
  filter: brightness(1.2) contrast(1.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-sub {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-accent {
  width: 2px;
  height: 40px;
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.progress-indicator {
  margin-top: 1rem;
}

.progress-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  border-radius: 10px;
  transition: width 0.8s ease;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

.roadmap-container {
  padding: 2rem 1rem;
  flex: 1;
}

.roadmap-timeline {
  position: relative;
}

.roadmap-item {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.timeline-connector {
  position: absolute;
  left: 20px;
  top: 40px;
  width: 2px;
  height: calc(100% + 2rem);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.3), rgba(168, 85, 247, 0.3));
  z-index: 1;
  overflow: hidden;
}

.timeline-connector::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(96, 165, 250, 0.8) 30%, 
    rgba(139, 92, 246, 0.9) 50%, 
    rgba(168, 85, 247, 0.8) 70%, 
    transparent 100%);
  animation: flowDown 3s ease-in-out infinite;
  border-radius: 1px;
}

.timeline-connector.last {
  display: none;
}

@keyframes flowDown {
  0% {
    top: -100%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timeline-dot.completed {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  animation: pulse-green 2s infinite;
}

.timeline-dot.in-progress {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  animation: pulse-orange 2s infinite;
}

.timeline-dot.pending {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

.timeline-dot.paused {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  animation: pulse-red 2s infinite;
}

.timeline-dot.future {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6); }
}

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(245, 158, 11, 0.6); }
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(239, 68, 68, 0.6); }
}

.task-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  flex: 1;
}

.task-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.task-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.task-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-status.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.task-status.in-progress {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.task-status.pending {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.task-status.paused {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.task-status.future {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.task-description {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.task-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.progress-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.progress-mini-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.paused .progress-mini-fill {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.paused .progress-mini-text {
  color: #fca5a5;
}

.progress-mini-text {
  font-size: 0.8rem;
  color: #fbbf24;
  font-weight: 500;
  min-width: 35px;
}

.footer {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.8rem;
}

/* V1 styling - completely separate from V2 roadmap */
.v1-item {
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.v1-item .timeline-connector {
  display: none;
}

.v1-item .timeline-dot {
  display: none;
}

.v1-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  margin-left: 0;
  width: 100%;
  position: relative;
}

.v1-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(96, 165, 250, 0.2);
  transform: translateY(-1px);
}

.v1-card .task-header {
  margin-bottom: 0.3rem;
}

.v1-card .task-header h3 {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.v1-card .task-status {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  opacity: 0.8;
}

.v1-card .task-description {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 95%;
  font-size: clamp(0.65rem, 2.5vw, 0.8rem);
}

.v1-card .task-meta {
  display: none;
}

.v1-card .progress-mini {
  display: none;
}

.version-separator {
  margin: 3rem 0 2rem 0;
  position: relative;
}

.version-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.version-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
}

.version-badge {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.1);
}

.version-badge i {
  color: #a855f7;
}

/* Latest Update Card */
.latest-update-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0 2rem 0;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.latest-update-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15);
}

.latest-update-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.latest-update-header h3 {
  font-size: 0.9rem;
  color: #60a5fa;
  font-weight: 600;
  margin: 0;
}

.latest-update-header i {
  color: #60a5fa;
  font-size: 0.85rem;
}

.latest-update-content {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.latest-update-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.latest-update-task {
  font-weight: 500;
  color: #94a3b8;
}

.latest-update-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .app-container {
    max-width: 100%;
    border: none;
  }
  
  .header {
    padding: 1rem;
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .roadmap-container {
    padding: 1.5rem 0.75rem;
  }
  
  .task-card {
    padding: 1rem;
  }
  
  .task-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .task-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(26, 26, 46, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 95%;
  height: 95%;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.modal-header h2 {
  color: #f1f5f9;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.modal-body {
  padding: 1.5rem;
}

.modal-basic-info {
  margin-bottom: 1.5rem;
}

.modal-short-description {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.modal-long-description {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.toggle-description-btn {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0.75rem 0;
  display: inline-block;
}

.toggle-description-btn:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
}

.toggle-description-btn.expanded {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.toggle-description-btn.expanded:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.modal-description-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
  margin: 1.5rem 0;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .modal-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .modal-meta span {
    font-size: 0.8rem;
  }
  
  .meta-label {
    margin-right: 0.5rem;
  }
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-label {
  font-weight: 500;
  color: #cbd5e1;
  margin-right: 0.2rem;
}

.modal-end-date {
  color: #60a5fa !important;
}

.modal-status {
  padding: 0.3rem 0.8rem !important;
  border-radius: 20px;
  font-size: 0.75rem !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
  margin: 1.5rem 0;
}

.modal-updates {
  margin-top: 1.5rem;
}

.updates-title {
  color: #f1f5f9;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.updates-title i {
  color: #60a5fa;
}

.updates-list {
  max-height: calc(80vh - 120px);
  overflow-y: auto;
}

.update-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.update-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.2);
}

.update-item:last-child {
  margin-bottom: 0;
}

.update-timestamp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.update-timestamp i {
  color: #60a5fa;
}

.update-text {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Modal progress bar */
.modal-progress {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-progress-label {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.modal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.modal-progress-fill.paused {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Dark mode enhancements */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.5);
}

/* Mobile modal adjustments */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    height: 95%;
    border-radius: 16px;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .updates-list {
    max-height: calc(95vh - 140px);
  }
  
  .version-separator {
    margin: 2rem 0 1.5rem 0;
  }
  
  .version-badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}
