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

body {
  font-family: 'JetBrains Mono', monospace;
  background: #0a0e1a;
  color: #00ff41;
  overflow-x: hidden;
  line-height: 1.4;
}

.command-terminal {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
  display: flex;
  flex-direction: column;
}

/* Terminal Header */
.terminal-header {
  background: #1e2329;
  border-bottom: 2px solid #00ff41;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.control-dot.red { background: #ff5f57; }
.control-dot.yellow { background: #ffbd2e; }
.control-dot.green { background: #28ca42; }

.terminal-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: #00ff41;
  text-align: center;
  flex: 1;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.status-indicator.active {
  color: #00ff41;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Command Interface */
.command-interface {
  flex: 1;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  min-height: calc(100vh - 120px);
}

/* Profile Panel */
.profile-panel {
  background: #141820;
  border-right: 2px solid #00ff41;
  padding: 20px;
  overflow-y: auto;
}

.classification-banner {
  background: #ff0000;
  color: white;
  text-align: center;
  padding: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation: classifiedBlink 3s infinite;
}

@keyframes classifiedBlink {
  0%, 90% { opacity: 1; }
  95% { opacity: 0.3; }
}

.k9-profile {
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.profile-image-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.k9-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00ff41;
  position: relative;
  z-index: 2;
}

.image-overlay {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(0, 255, 65, 0.5);
  border-radius: 50%;
  animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.profile-header {
  text-align: center;
  margin-bottom: 20px;
}

.call-sign {
  font-size: 24px;
  font-weight: 700;
  color: #00ff41;
  letter-spacing: 3px;
  margin-bottom: 5px;
}

.designation {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
}

.service-record {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.label {
  font-size: 11px;
  color: #666;
  font-weight: 600;
}

.value {
  font-weight: 700;
  font-size: 11px;
}

.value.classified { color: #ff0000; }
.value.success { color: #00ff41; }
.value.active { color: #ffbd2e; }

.mission-briefing {
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 8px;
  padding: 15px;
}

.briefing-header {
  color: #00ff41;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.briefing-content p {
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #ccc;
}

.classified-note {
  color: #ff8800 !important;
  font-style: italic;
}

/* Dashboard Panel */
.dashboard-panel {
  background: #0f1419;
  padding: 20px;
  overflow-y: auto;
}

.dashboard-header {
  color: #00ff41;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid rgba(0, 255, 65, 0.3);
  padding-bottom: 10px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.metric-card {
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}

.metric-card:hover {
  background: rgba(0, 255, 65, 0.1);
  transform: translateY(-2px);
}

.metric-label {
  font-size: 10px;
  color: #666;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #00ff41;
  margin-bottom: 8px;
}

.metric-value.network { color: #ffbd2e; }
.metric-value.locked { color: #ff8800; }
.metric-value.zero { color: #ff0000; }

.metric-bar {
  height: 4px;
  background: rgba(0, 255, 65, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff41, #28ca42);
  transition: width 0.5s ease;
}

.network-status, .tax-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #888;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff41;
  animation: pulse 2s infinite;
}

.security-level {
  display: flex;
  gap: 3px;
}

.security-bar {
  width: 15px;
  height: 4px;
  background: rgba(0, 255, 65, 0.2);
  border-radius: 2px;
}

.security-bar.active {
  background: #ff8800;
}

/* Combat Stats */
.combat-stats {
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.stats-header {
  color: #00ff41;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 11px;
}

.stat-name {
  color: #888;
  font-weight: 600;
}

.stat-bar-container {
  height: 6px;
  background: rgba(0, 255, 65, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.stat-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ff41, #ffbd2e);
  border-radius: 3px;
  transition: width 0.8s ease;
  position: relative;
}

.stat-value {
  color: #00ff41;
  font-weight: 700;
  text-align: right;
}

/* Command Actions */
.command-actions {
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.action-header {
  color: #00ff41;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-buttons {
  display: flex;
  gap: 15px;
}

.cmd-button {
  flex: 1;
  background: transparent;
  border: 2px solid #00ff41;
  color: #00ff41;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.cmd-button:hover {
  background: rgba(0, 255, 65, 0.1);
  transform: translateY(-2px);
}

.cmd-button.primary {
  border-color: #ffbd2e;
  color: #ffbd2e;
}

.cmd-button.primary:hover {
  background: rgba(255, 189, 46, 0.1);
}

.btn-indicator {
  font-size: 10px;
}

/* Contract Terminal */
.contract-terminal {
  background: #000;
  border: 1px solid #00ff41;
  border-radius: 8px;
  padding: 15px;
}

.terminal-prompt {
  color: #00ff41;
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-symbol {
  color: #ffbd2e;
}

.contract-display {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 255, 65, 0.1);
  padding: 10px;
  border-radius: 4px;
}

.contract-text {
  flex: 1;
  font-size: 11px;
  color: #00ff41;
  letter-spacing: 1px;
}

.copy-terminal-btn {
  background: transparent;
  border: 1px solid #00ff41;
  color: #00ff41;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-terminal-btn:hover {
  background: #00ff41;
  color: #000;
}

/* Footer */
.command-footer {
  background: #1e2329;
  border-top: 2px solid #00ff41;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-symbol {
  color: #ffbd2e;
  font-weight: 700;
}

.footer-text {
  color: #00ff41;
}

.footer-timestamp {
  color: #888;
  font-size: 11px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .command-interface {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  
  .profile-panel {
    border-right: none;
    border-bottom: 2px solid #00ff41;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .stat-row {
    grid-template-columns: 100px 1fr 60px;
    gap: 10px;
  }
  
  .terminal-title {
    font-size: 12px;
  }
  
  .command-footer .footer-text {
    display: none;
  }
}