/* Top Navigation */
.top-nav {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-brand h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

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

/* Filter Controls */
.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

/* Startup List Item */
.startup-item {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
}

.startup-item:hover {
  background: #f8f9fa;
}

.startup-item.active {
  background: #e8f4f8;
  border-left: 3px solid #0066cc;
}

.startup-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.startup-item-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.startup-item-meta {
  font-size: 12px;
  color: #666;
}

/* Startup Details */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.detail-title {
  flex: 1;
}

.detail-title h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: #333;
}

.detail-subtitle {
  color: #666;
  font-size: 14px;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
}

.tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab:hover {
  color: #0066cc;
}

.tab.active {
  color: #0066cc;
  border-bottom-color: #0066cc;
}

.tab-content {
  display: none;
}

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

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 4px;
}

.info-value {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* Contact Card */
.contact-card {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.contact-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.contact-role {
  color: #666;
  font-size: 13px;
  margin-bottom: 8px;
}

.contact-info {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.contact-info a {
  color: #0066cc;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Interaction Item */
.interaction-item {
  border-left: 3px solid #0066cc;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 12px;
}

.interaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.interaction-type {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.interaction-date {
  font-size: 12px;
  color: #666;
}

.interaction-subject {
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
  font-size: 13px;
}

.interaction-description {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}

.interaction-footer {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.interaction-outcome, .interaction-next-steps {
  flex: 1;
}

.interaction-outcome strong, .interaction-next-steps strong {
  color: #333;
  display: block;
  margin-bottom: 2px;
}

/* Milestone Item */
.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 10px;
}

.milestone-checkbox {
  margin-top: 2px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.milestone-content {
  flex: 1;
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.milestone-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.milestone-title.completed {
  text-decoration: line-through;
  color: #999;
}

.milestone-category {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e0e0e0;
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
}

.milestone-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.milestone-date {
  font-size: 12px;
  color: #999;
}

/* Task Item */
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 10px;
  border-left: 3px solid #ccc;
}

.task-item.priority-high {
  border-left-color: #dc3545;
}

.task-item.priority-medium {
  border-left-color: #ffc107;
}

.task-item.priority-low {
  border-left-color: #28a745;
}

.task-checkbox {
  margin-top: 2px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.task-content {
  flex: 1;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.task-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.task-title.completed {
  text-decoration: line-through;
  color: #999;
}

.task-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #666;
}

.task-description {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* Document Item */
.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 10px;
}

.document-info {
  flex: 1;
}

.document-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 4px;
}

.document-meta {
  font-size: 12px;
  color: #666;
}

.document-actions {
  display: flex;
  gap: 8px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state-text {
  font-size: 14px;
}

/* AI Assistant Panel */
.ai-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 400px;
  max-height: 600px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.ai-header {
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 400px;
}

.ai-message {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.ai-message.user {
  background: #e8f4f8;
  color: #333;
  margin-left: 20px;
}

.ai-message.assistant {
  background: #f8f9fa;
  color: #333;
  margin-right: 20px;
}

.ai-input-area {
  padding: 16px;
  border-top: 1px solid #e0e0e0;
}

.ai-input-area textarea {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .eontra-grid.cols-3 {
    grid-template-columns: 1fr;
  }
  
  .eontra-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-panel {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.paused {
  background: #fff3cd;
  color: #856404;
}

.status-badge.graduated {
  background: #d1ecf1;
  color: #0c5460;
}

.status-badge.closed {
  background: #f8d7da;
  color: #721c24;
}

/* Stage Badges */
.stage-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: #e0e0e0;
  color: #666;
}
