* {
  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, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  padding: 20px;
}

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

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

header h1 {
  font-size: 3em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.2em;
  color: #a0a0a0;
}

.last-update {
  margin-top: 15px;
  font-size: 0.9em;
  color: #808080;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 8px;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.5);
}

.tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
}

#content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  min-height: 400px;
  backdrop-filter: blur(10px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 126, 234, 0.6);
}

.stat-card h3 {
  font-size: 0.9em;
  color: #a0a0a0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card .value {
  font-size: 2.5em;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  background: rgba(255, 255, 255, 0.05);
  color: #667eea;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 1px;
}

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

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  color: white;
}

.badge-high { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.badge-medium { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.badge-low { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.badge-active { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.badge-pending { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.badge-complete { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.badge-in-progress { background: rgba(102, 126, 234, 0.2); color: #667eea; }
.badge-approved { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.badge-denied { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }

/* Action Buttons */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.btn-approve {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

.btn-approve:hover {
  background: rgba(46, 204, 113, 0.3);
  transform: translateY(-2px);
}

.btn-modify {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid #f1c40f;
}

.btn-modify:hover {
  background: rgba(241, 196, 15, 0.3);
  transform: translateY(-2px);
}

.btn-deny {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.btn-deny:hover {
  background: rgba(231, 76, 60, 0.3);
  transform: translateY(-2px);
}

.btn-details {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  border: 1px solid #667eea;
}

.btn-details:hover {
  background: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: rgba(128, 128, 128, 0.2);
  color: #a0a0a0;
  border: 1px solid #666;
  padding: 12px 24px;
  font-size: 1em;
}

.btn-secondary:hover {
  background: rgba(128, 128, 128, 0.3);
  transform: translateY(-2px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  margin: 5% auto;
  padding: 30px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  width: 80%;
  max-width: 600px;
  color: #e0e0e0;
  position: relative;
  animation: slideDown 0.3s ease;
}

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

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #fff;
}

.modal-content h2 {
  color: #667eea;
  margin-bottom: 20px;
}

.modal-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Org Chart */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 30px;
}

.org-node {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px 30px;
  border-radius: 10px;
  border: 2px solid;
  text-align: center;
  min-width: 200px;
  transition: transform 0.3s ease;
}

.org-node:hover {
  transform: scale(1.05);
}

.org-node.core {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.org-node.base {
  border-color: #2ecc71;
}

.org-node.specialists {
  border-color: #f39c12;
}

.org-node.website {
  border-color: #e74c3c;
}

.org-node.chat {
  border-color: #3498db;
}

.org-node h3 {
  font-size: 1.2em;
  margin-bottom: 8px;
  color: #fff;
}

.org-node p {
  color: #a0a0a0;
  font-size: 0.9em;
  margin-bottom: 5px;
}

.org-node small {
  color: #808080;
  font-size: 0.75em;
}

.org-children {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 126, 234, 0.6);
}

.project-card.status-complete {
  border-color: rgba(46, 204, 113, 0.5);
}

.project-card.status-in-progress {
  border-color: rgba(102, 126, 234, 0.5);
}

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

.project-header h3 {
  font-size: 1.1em;
  color: #fff;
}

.project-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-text {
  font-weight: bold;
  color: #667eea;
  min-width: 40px;
}

.project-details p {
  margin: 8px 0;
  color: #e0e0e0;
  font-size: 0.9em;
}

.project-details strong {
  color: #a0a0a0;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #808080;
}

.error {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
  }
  
  .tab {
    width: 100%;
  }
  
  .stats-grid, .projects-grid, .org-children {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}

/* Chat Widget Styles */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.2em;
}

.chat-status {
  font-size: 0.9em;
  opacity: 0.9;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-welcome {
  text-align: center;
  padding: 40px 20px;
}

.chat-welcome h4 {
  color: #667eea;
  margin-bottom: 10px;
}

.chat-welcome p {
  color: #a0a0a0;
  margin-bottom: 30px;
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.suggestion-btn {
  padding: 12px 20px;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.4);
  border-radius: 8px;
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.suggestion-btn:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
  transform: translateX(5px);
}

.chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideIn 0.3s ease;
}

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

.chat-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  font-size: 1.5em;
  min-width: 40px;
  text-align: center;
}

.message-content {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 70%;
}

.chat-message.user .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.message-text {
  color: #e0e0e0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.message-time {
  font-size: 0.75em;
  color: #808080;
  margin-top: 5px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.chat-input-container {
  display: flex;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 1em;
  transition: all 0.3s ease;
}

.chat-input:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.08);
}

.chat-send-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-send-btn svg {
  display: block;
}

/* Org Chart Enhancements */
.org-node.founder {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border: 2px solid #667eea;
  padding: 20px;
  border-radius: 10px;
  min-width: 150px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-node.founder:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.org-node.ai-partner {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(52, 152, 219, 0.2));
  border: 2px solid #2ecc71;
  padding: 25px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-node.ai-partner:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.org-node.vp {
  background: rgba(241, 196, 15, 0.1);
  border: 2px solid #f1c40f;
  padding: 20px;
  border-radius: 10px;
  min-width: 180px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-node.vp:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.3);
}

.org-node.agent {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.org-node.agent:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 126, 234, 0.5);
}

.org-connector {
  width: 2px;
  height: 30px;
  background: linear-gradient(180deg, #667eea, transparent);
  margin: 0 auto 20px;
}

/* Blocker-specific styles */
.project-card.status-planning {
  border-color: rgba(241, 196, 15, 0.5);
}

.project-card.status-pending {
  border-color: rgba(230, 126, 34, 0.5);
}

.blockers-header {
  transition: all 0.2s ease;
}

.blockers-header:hover {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  margin: -5px;
  border-radius: 6px;
}

.blocker-item {
  transition: all 0.2s ease;
}

.blocker-item:hover {
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Badge colors */
.badge-planning {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid #f1c40f;
}

.badge-pending {
  background: rgba(230, 126, 34, 0.2);
  color: #e67e22;
  border: 1px solid #e67e22;
}

.badge-active {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid #3498db;
}

.badge-in-progress {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  border: 1px solid #667eea;
}

.badge-complete {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

/* Button improvements */
.btn-sm:hover {
  opacity: 0.8;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* Ideas Lab Styles */
.filter-btn {
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  font-weight: 600;
}

.ideas-list {
  display: flex;
  flex-direction: column;
}

.idea-card {
  transition: all 0.3s ease;
}

.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

/* Capabilities Page Styling */
.capability-category {
  margin-bottom: 40px;
}

.capability-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #667eea;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.capability-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(5px);
}

.capability-item h3 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.capability-item p {
  color: #d0d0d0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.example-prompts {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
}

.example-prompts strong {
  color: #4ade80;
  display: block;
  margin-bottom: 10px;
}

.example-prompts ul {
  list-style: none;
  padding-left: 0;
}

.example-prompts li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #e0e0e0;
  line-height: 1.5;
}

.example-prompts li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.capability-features {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0a0a0;
  font-size: 0.9em;
}

.capability-features strong {
  color: #f39c12;
}

/* Chat Interface Styles */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 20px;
}

.chat-header {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.chat-header h2 {
  margin: 0 0 5px 0;
  color: #667eea;
}

.chat-header p {
  margin: 0;
  color: #a0a0a0;
  font-size: 0.9em;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 20px;
}

.chat-message {
  margin-bottom: 15px;
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 70%;
  animation: fadeIn 0.3s ease-in;
}

.user-message {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-left: auto;
  text-align: right;
}

.agent-message {
  background: rgba(255, 255, 255, 0.08);
  margin-right: auto;
}

.message-meta {
  font-size: 0.75em;
  opacity: 0.7;
  margin-bottom: 5px;
}

.message-content {
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-input-container {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input-container textarea {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 0.95em;
  resize: none;
  transition: all 0.2s;
}

.chat-input-container textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.08);
}

.chat-input-container button {
  padding: 12px 24px;
  white-space: nowrap;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading/Info messages */
.chat-messages .loading,
.chat-messages .info {
  text-align: center;
  color: #a0a0a0;
  padding: 40px 20px;
  font-style: italic;
}

/* Scrollbar styling for chat */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.5);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.7);
}
