/* debug-console.css - Shared Debug Console Styles */

/* ========== Debug Console Shell ========== */
.debug-console-shell {
  background: #1e293b;
  border: 2px solid #4f46e5;
  border-radius: 16px;
  margin-top: 1.5rem;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  width: 100%;
  max-width: 490px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Header ========== */
.debug-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #0f172a;
  border-bottom: 1px solid rgba(99, 102, 241, 0.35);
  padding: 0.8rem 1rem;
}

.debug-console-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #eaeaea;
}

.debug-console-status {
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 0rem 5rem;
}

/* ========== Content ========== */
.debug-console-content {
  padding: 1rem;
}

/* ========== Controls ========== */
.debug-console-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.debug-control-btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.debug-control-btn:hover {
  background: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.debug-control-btn.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.debug-control-btn.danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.debug-control-btn.primary {
  background: #6366f1;
  color: white;
}

.debug-control-btn.primary:hover {
  background: #4f46e5;
}

/* ========== Log Display ========== */
.debug-log-display {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.8rem;
  max-height: 400px;
  overflow-y: auto;
  min-height: 200px;
}

/* ========== Log Entries ========== */
.debug-log-entry {
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.4);
  border-left: 3px solid transparent;
}

.debug-log-time {
  color: #818cf8;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
  min-width: 70px;
}

.debug-log-message {
  color: #cbd5e1;
  flex: 1;
  word-break: break-word;
}

/* ========== Log Types ========== */
.debug-log-entry.info {
  border-left-color: #818cf8;
}

.debug-log-entry.success {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.debug-log-entry.success .debug-log-message {
  color: #10b981;
}

.debug-log-entry.error {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.debug-log-entry.error .debug-log-message {
  color: #ef4444;
}

.debug-log-entry.warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.debug-log-entry.warning .debug-log-message {
  color: #f59e0b;
}

/* ========== Statistics ========== */
.debug-stats-section {
  margin-top: 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
}

.debug-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.debug-stat-item {
  text-align: center;
}

.debug-stat-label {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.debug-stat-value {
  font-size: 1rem;
  font-weight: bold;
  color: #818cf8;
}

/* ========== Scrollbar ========== */
.debug-log-display::-webkit-scrollbar {
  width: 8px;
}

.debug-log-display::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 4px;
}

.debug-log-display::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 4px;
}

.debug-log-display::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

/* ========== Responsive ========== */
@media (max-width: 520px) {
  .debug-console-controls {
    flex-direction: column;
  }
  
  .debug-control-btn {
    width: 100%;
  }
  
  .debug-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
