/* Sentinel Dashboard Styles */

.dashboard-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.dash-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--fg);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #111418;
  border: 1px solid #1e2a2e;
  border-radius: 12px;
  padding: 1.5rem;
}

.stat-card .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a7a7a;
  margin-bottom: 0.5rem;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-card .sub {
  font-size: 0.8rem;
  color: #5a7a7a;
  margin-top: 0.25rem;
}

/* Contracts Table */
.contracts-section {
  background: #111418;
  border: 1px solid #1e2a2e;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #1e2a2e;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--fg);
}

table.contracts-table {
  width: 100%;
  border-collapse: collapse;
}

table.contracts-table th {
  text-align: left;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a7a7a;
  border-bottom: 1px solid #1e2a2e;
}

table.contracts-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #1e2a2e;
  font-size: 0.9rem;
}

table.contracts-table tr:last-child td {
  border-bottom: none;
}

table.contracts-table tr:hover td {
  background: #161b1f;
}

.address {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active { background: rgba(0, 229, 176, 0.15); color: var(--accent); }
.badge-paused { background: rgba(245, 158, 11, 0.15); color: var(--warn); }
.badge-sent { background: rgba(0, 229, 176, 0.15); color: var(--accent); }
.badge-failed { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-pending { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }

/* Alerts List */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alert-item {
  background: #111418;
  border: 1px solid #1e2a2e;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-body {
  flex: 1;
  min-width: 0;
}

.alert-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}

.alert-meta {
  font-size: 0.78rem;
  color: #5a7a7a;
  margin-top: 0.15rem;
}

.alert-contract {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--accent);
}

/* Forms */
.form-section {
  background: #111418;
  border: 1px solid #1e2a2e;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.form-section h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a7a7a;
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  background: #0c0e12;
  border: 1px solid #1e2a2e;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0c0e12;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #1e2a2e;
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
}

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

/* Tabs */
.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #1e2a2e;
  margin-bottom: 1.5rem;
}

.tab-link {
  padding: 0.65rem 1.2rem;
  font-size: 0.85rem;
  color: #5a7a7a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-link:hover {
  color: var(--fg);
}

.tab-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Nav within dashboard */
.dash-nav {
  background: #0e1114;
  border-bottom: 1px solid #1e2a2e;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
}

.dash-nav a {
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: #5a7a7a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.dash-nav a:hover { color: var(--fg); }
.dash-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #5a7a7a;
}

.empty-state h3 {
  font-family: var(--font-display);
  color: var(--fg);
  margin-bottom: 0.5rem;
}

/* Actions cell */
.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tag {
  font-size: 0.72rem;
  background: #1e2a2e;
  color: #5a7a7a;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Scan button */
.scan-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.scan-btn:hover {
  background: rgba(0, 229, 176, 0.1);
}

/* Responsive */
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .dash-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}