/* ===================================
   Font Faces — Space Mono only
   =================================== */

@font-face {
  font-family: "SpaceMono-Regular";
  src: url("../fonts/SpaceMono-Regular.woff") format("woff"),
    url("../fonts/SpaceMono-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "SpaceMono-Bold";
  src: url("../fonts/SpaceMono-Bold.woff") format("woff"),
    url("../fonts/SpaceMono-Bold.ttf") format("truetype");
  font-display: swap;
}

/* ===================================
   Space Mono utility
   =================================== */

.font-mono {
  font-family: "SpaceMono-Regular", monospace;
}

.font-mono-bold {
  font-family: "SpaceMono-Bold", monospace;
}

/* ===================================
   Navigation
   =================================== */

.navbar-brand {
  font-family: "SpaceMono-Bold", monospace;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #15181c !important;
}

.nav-link {
  font-family: "SpaceMono-Regular", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #15181c !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #0071bc !important;
}

/* ===================================
   Buttons — override Bootstrap defaults
   =================================== */

.btn {
  font-family: "SpaceMono-Regular", monospace;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-dark {
  background-color: #15181c;
  border-color: #15181c;
}

.btn-dark:hover {
  background-color: #fff;
  color: #15181c;
  border-color: #15181c;
}

/* ===================================
   Forms
   =================================== */

label {
  font-family: "SpaceMono-Bold", monospace;
}

input, .form-control {
  font-family: "SpaceMono-Regular", monospace;
}

/* ===================================
   Code blocks
   =================================== */

.code-block {
  background-color: #c8d1da66;
  padding: 1.5rem;
  border-radius: 0.25rem;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===================================
   Status Notifications
   =================================== */

#status-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.status-message {
  background: #000;
  color: #fff;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.status-message.closing {
  animation: slideOut 0.2s ease-in forwards;
}

.status-message.info    { border-left: 4px solid #0071bc; }
.status-message.success { border-left: 4px solid #00a86b; }
.status-message.error   { border-left: 4px solid #dc3545; }
.status-message.warning { border-left: 4px solid #ff9500; }
.status-message.loading { border-left: 4px solid #6c757d; }

.status-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6c757d;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-content {
  flex: 1;
  font-size: 14px;
}

.status-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 24px;
  height: 24px;
}

.status-close:hover { color: #333; }

.status-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
  from { width: 100%; }
  to   { width: 0%; }
}

.text-uppercase {
    text-transform: uppercase;
}

.fs1_5 {
    font-size: 1.5rem;
}

.fs0_75 {
    font-size: 0.75rem;
}

.letter-spacing-nudge {
    letter-spacing: 0.05em;
}

.public_key_typography {
    white-space: pre-wrap;
    word-break: break-all;
}

.word_break_all {
    word-break: break-all;
}

.private-repos {
    color: #e6edf3;
    background-color: #161b22;
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 0.25rem;
}
