/* vigilant.css */
/* Main Layout */
.app-container {
  display: flex;
  width: 100%;
  height: calc(100vh - 56px); /* Accounting for header height */
  overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background: rgba(9, 9, 11, 0.5);
  border-right: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.sidebar .logo {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.nav-item {
  padding: 0.8rem;
  border-radius: var(--radius);
  cursor: auto !important;
  margin-bottom: 0.5rem;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.nav-item:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary);
}

/* Content Area */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow: hidden;
}

.top-bar {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* Override input styling from base for specific fields */
#secret-key {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: var(--radius);
  font-family: "JetBrains Mono", monospace;
}

#secret-key:focus {
  outline: none;
  border-color: var(--primary);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  flex: 1;
  min-height: 0;
}

.input-zone,
.output-zone {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.zone-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 8px;
}

textarea,
.result-box {
  flex: 1;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  font-family: "JetBrains Mono", monospace;
  resize: none;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

textarea:focus {
  outline: none;
}

.result-box {
  color: var(--primary);
  word-break: break-all;
}

.zone-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.security-badge {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
