/* ABOUTME: Main stylesheet for Deploy dashboard UI */
/* ABOUTME: Minimalist terminal-style design with monospace fonts and pure black/white aesthetic */

:root {
  /* Monospace font stack */
  --font-mono: "Monaspace Neon", "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", monospace;

  /* Pure black/white color scheme */
  --surface-1: #000000;
  --surface-2: #0a0a0a;
  --surface-3: #141414;
  --text-1: #ffffff;
  --text-2: #a0a0a0;
  --text-3: #707070;
  --border: #333333;
  --border-hover: #4a4a4a;

  /* Status colors - subdued */
  --status-running: #00ff00;
  --status-running-bg: rgba(0, 255, 0, 0.1);
  --status-stopped: #ff0000;
  --status-stopped-bg: rgba(255, 0, 0, 0.1);
  --status-building: #ffaa00;
  --status-building-bg: rgba(255, 170, 0, 0.1);
  --status-error: #ff0000;
  --status-error-bg: rgba(255, 0, 0, 0.1);

  /* Minimal accent - only for critical UI states */
  --accent: #ffffff;
  --accent-hover: #cccccc;

  /* Link color */
  --link: #ffffff;
  --link-hover: #cccccc;
}

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

body {
  font-family: var(--font-mono);
  line-height: 1.6;
  color: var(--text-1);
  background: var(--surface-1);
  font-size: var(--font-size-1);
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--size-4);
}

/* Card */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--size-4);
  margin-bottom: var(--size-4);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--size-2);
  padding: var(--size-2) var(--size-3);
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: var(--font-size-0);
  font-weight: 400;
  cursor: pointer;
  background: transparent;
  color: var(--text-1);
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: var(--surface-3);
  border-color: var(--text-1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--text-1);
  color: var(--surface-1);
  border-color: var(--text-1);
}

.btn-primary:hover {
  background: var(--text-2);
  border-color: var(--text-2);
}

.btn-sm {
  padding: var(--size-1) var(--size-2);
  font-size: var(--font-size-00);
}

/* Status Dot */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--size-2);
  padding: var(--size-1) var(--size-2);
  border-radius: 0;
  font-size: var(--font-size-00);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot::before {
  content: '';
  display: inline-block;
  width: var(--size-2);
  height: var(--size-2);
  border-radius: 0;
  background: currentColor;
}

.status-dot.running {
  color: var(--status-running);
  background: var(--status-running-bg);
  border: 1px solid var(--status-running);
}

.status-dot.stopped {
  color: var(--status-stopped);
  background: var(--status-stopped-bg);
  border: 1px solid var(--status-stopped);
}

.status-dot.building {
  color: var(--status-building);
  background: var(--status-building-bg);
  border: 1px solid var(--status-building);
}

.status-dot.error {
  color: var(--status-error);
  background: var(--status-error-bg);
  border: 1px solid var(--status-error);
}

/* Form elements */
.form-group {
  margin-bottom: var(--size-3);
}

.form-label {
  display: block;
  margin-bottom: var(--size-2);
  font-weight: 400;
  color: var(--text-1);
  text-transform: uppercase;
  font-size: var(--font-size-00);
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: var(--size-2);
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: var(--font-size-0);
  background: var(--surface-1);
  color: var(--text-1);
}

.form-input:focus {
  outline: none;
  border-color: var(--text-1);
  box-shadow: none;
}

/* Utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--size-2);
}

.gap-3 {
  gap: var(--size-3);
}

.mb-4 {
  margin-bottom: var(--size-4);
}

.text-muted {
  color: var(--text-2);
}

.hidden {
  display: none;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--size-1);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  min-width: 150px;
  z-index: 10;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--size-2) var(--size-3);
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--font-size-0);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--surface-3);
}

.dropdown-item.danger {
  color: var(--status-error);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--size-5);
  max-width: 500px;
  width: 90%;
  box-shadow: none;
}

.modal-header {
  margin-bottom: var(--size-4);
}

.modal-title {
  font-size: var(--font-size-3);
  font-weight: 400;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-footer {
  margin-top: var(--size-4);
  display: flex;
  gap: var(--size-2);
  justify-content: flex-end;
}

/* Links */
a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--text-1);
}

/* Code elements */
code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  padding: 0.2em 0.4em;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.9em;
}
