/* AETHERZERO Dashboard - CSS Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', 'Orbitron', 'Exo 2', sans-serif;
  background: #0a0e1a;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none; /* Prevent text selection */
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 255, 135, 0.1);
  margin-bottom: 30px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.logo-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #2ecc71 0%, #00ff87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 0.8rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #00ff87;
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.7);
  animation: pulse 2s infinite;
}

.status-indicator.error {
  background-color: #ff4757;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.7);
}

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

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

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.left-column, .right-column {
  width: 100%;
}

/* Stats Card */
.stats-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 135, 0.1);
  border-radius: 12px;
  padding: 25px;
  height: 100%;
}

.stat-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00ff87;
  margin-bottom: 20px;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 600;
  background: linear-gradient(90deg, #2ecc71 0%, #00ff87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-change {
  font-size: 1rem;
  color: #00ff87;
  margin-bottom: 5px;
}

.stat-time {
  font-size: 0.9rem;
  color: #a0aec0;
}

.stat-chart {
  height: 100px;
  width: 100%;
}

/* Threat Landscape Section */
.threat-landscape {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 135, 0.1);
  border-radius: 12px;
  padding: 25px;
  height: 100%;
}

.threat-landscape h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00ff87;
  margin-bottom: 20px;
}

.chart-container {
  height: 300px;
  position: relative;
}

/* Live Feed Section */
.live-feed {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 135, 0.1);
  border-radius: 12px;
  padding: 25px;
  height: 100%;
}

.live-feed h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00ff87;
  margin-bottom: 20px;
}

.feed-table {
  display: flex;
  flex-direction: column;
}

.table-header {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 255, 135, 0.1);
  padding: 10px 15px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0aec0;
}

.col-indicator {
  flex: 2;
}

.col-type {
  flex: 1;
  text-align: center;
}

.col-confidence {
  flex: 1;
  text-align: right;
}

.feed-body {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  animation: fadeIn 0.5s ease;
}

.feed-item:nth-child(even) {
  background: rgba(0, 0, 0, 0.05);
}

.feed-indicator {
  flex: 2;
  font-family: monospace;
  font-size: 0.9rem;
  color: #00ff87;
}

.feed-type {
  flex: 1;
  text-align: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.type-phishing { background: #ff6b6b; color: white; }
.type-malware { background: #ff8800; color: white; }
.type-adware { background: #ffcc00; color: black; }
.type-ransomware { background: #ff3b3b; color: white; }
.type-botnet { background: #9b59b6; color: white; }
.type-spyware { background: #e74c3c; color: white; }

.feed-confidence {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.confidence-bar {
  width: 80px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.confidence-level {
  height: 100%;
  background: linear-gradient(90deg, #00ff87, #2ecc71);
  border-radius: 4px;
}

.confidence-value {
  font-size: 0.8rem;
  color: #a0aec0;
  min-width: 40px;
  text-align: right;
}

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

/* CVE Tracker */
.cve-tracker {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 135, 0.1);
  border-radius: 12px;
  padding: 25px;
  height: 100%;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 255, 135, 0.1);
}

.tab-button {
  background: none;
  border: none;
  padding: 10px 20px;
  color: #a0aec0;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
}

.tab-button.active {
  color: #00ff87;
  border-bottom: 2px solid #00ff87;
}

.tab-content.hidden {
  display: none;
}

.cve-grid, .actor-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cve-card, .actor-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 255, 135, 0.1);
  border-radius: 8px;
  padding: 15px;
}

.cve-card.critical {
  border-left: 4px solid #ff4757;
}

.cve-id {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ff4757;
  margin-bottom: 8px;
}

.cve-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #e2e8f0;
}

.cve-score {
  font-size: 0.9rem;
  color: #ffcc00;
  margin-bottom: 8px;
}

.cve-date {
  font-size: 0.8rem;
  color: #a0aec0;
}

.actor-name {
  font-size: 1rem;
  font-weight: 600;
  color: #00ff87;
  margin-bottom: 5px;
}

.actor-target {
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 5px;
}

.actor-status {
  font-size: 0.8rem;
  color: #00ff87;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(0, 255, 135, 0.1);
  margin-top: 20px;
  color: #a0aec0;
  font-size: 0.8rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 135, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 135, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-grid, .bottom-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .feed-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .feed-confidence {
    width: 100%;
    justify-content: space-between;
  }
  
  .table-header {
    display: none;
  }
  
  .feed-indicator, .feed-type, .feed-confidence {
    text-align: left !important;
    width: 100%;
  }
}