/* JARVIS Interface CSS - Inspired by Tony Stark's AI */

:root {
  --primary-color: #00a8ff;
  --secondary-color: #0097e6;
  --accent-color: #44bd32;
  --dark-bg: #1e272e;
  --darker-bg: #0c141b;
  --text-color: #dcdde1;
  --highlight: #00a8ff;
  --glow-color: rgba(0, 168, 255, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rajdhani', 'Orbitron', sans-serif;
}

body {
  background-color: var(--darker-bg);
  color: var(--text-color);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  background-color: var(--dark-bg);
  padding: 1rem;
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 0 15px var(--glow-color);
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--glow-color);
  text-align: center;
}

/* Main Content */
main {
  flex: 1;
  padding: 2rem;
  position: relative;
  z-index: 5;
}

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

/* HUD Elements */
.hud-element {
  border: 1px solid var(--primary-color);
  background-color: rgba(30, 39, 46, 0.8);
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 0 10px var(--glow-color);
}

.hud-element::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px solid var(--primary-color);
  border-radius: 7px;
  opacity: 0.5;
  pointer-events: none;
}

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

.hud-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.hud-controls {
  display: flex;
  gap: 0.5rem;
}

.hud-control {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hud-control:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--glow-color);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.dashboard-item {
  min-height: 200px;
}

/* Status Display */
.status-display {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.status-item {
  text-align: center;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 168, 255, 0.1);
  border-radius: 5px;
  border: 1px solid var(--primary-color);
}

.status-label {
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.status-value {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Command Interface */
.command-interface {
  margin-top: 2rem;
}

.command-input {
  width: 100%;
  background-color: rgba(30, 39, 46, 0.8);
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease;
}

.command-input:focus {
  box-shadow: 0 0 15px var(--glow-color);
}

.command-input::placeholder {
  color: rgba(220, 221, 225, 0.5);
}

/* Terminal Output */
.terminal {
  background-color: rgba(12, 20, 27, 0.9);
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  padding: 1rem;
  margin-top: 1rem;
  height: 200px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  position: relative;
}

.terminal::before {
  content: 'JARVIS TERMINAL';
  position: absolute;
  top: -10px;
  left: 10px;
  background-color: var(--darker-bg);
  padding: 0 10px;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.terminal-line {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.terminal-prompt {
  color: var(--primary-color);
}

/* Circular Elements */
.circle-display {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.circle-outer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 168, 255, 0.3);
  border-radius: 50%;
  animation: rotate 10s linear infinite;
}

.circle-inner {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border: 2px solid rgba(0, 168, 255, 0.5);
  border-radius: 50%;
  animation: rotate-reverse 7s linear infinite;
}

.circle-center {
  position: absolute;
  top: 30%;
  left: 30%;
  width: 40%;
  height: 40%;
  background-color: rgba(0, 168, 255, 0.2);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--glow-color);
}

.circle-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Animations */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

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

/* Decorative Elements */
.hud-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--primary-color);
  border-style: solid;
  border-width: 0;
}

.top-left {
  top: -2px;
  left: -2px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.top-right {
  top: -2px;
  right: -2px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.bottom-left {
  bottom: -2px;
  left: -2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.bottom-right {
  bottom: -2px;
  right: -2px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* Background Effects */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 168, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.1) 0%, rgba(12, 20, 27, 0) 70%);
  z-index: 2;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .status-display {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo h1 {
    font-size: 2rem;
  }
}

/* Loading Animation */
.loading-bar {
  height: 4px;
  width: 100%;
  background-color: rgba(0, 168, 255, 0.2);
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
}

.loading-progress {
  position: absolute;
  height: 100%;
  width: 50%;
  background-color: var(--primary-color);
  animation: loading 2s infinite;
}

@keyframes loading {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  padding: 1rem;
  text-align: center;
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 0 15px var(--glow-color);
  position: relative;
  z-index: 10;
}

footer p {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Interactive Elements */
button.jarvis-btn {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button.jarvis-btn:hover {
  background-color: rgba(0, 168, 255, 0.1);
  box-shadow: 0 0 10px var(--glow-color);
}

button.jarvis-btn:active {
  transform: scale(0.98);
}

button.jarvis-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.2), transparent);
  transition: 0.5s;
}

button.jarvis-btn:hover::after {
  left: 100%;
}