@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #0a0e1a;
  --bg-base: #0f1729;
  --bg-card: #151d30;
  --bg-card-hover: #1a2540;
  --bg-elevated: #1e2a45;
  --accent: #f45419;
  --accent-glow: rgba(244, 84, 25, 0.15);
  --accent-gradient: linear-gradient(135deg, #f45419 0%, #ff7a3d 100%);
  --text-primary: #f0f1f3;
  --text-secondary: #8892a6;
  --text-dim: #505a6e;
  --border: #1c2540;
  --border-light: #253050;
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Mapeamento dash-canvas-v2 → tokens Navi */
  --dcv2-bg-deep: var(--bg-deep);
  --dcv2-bg-base: var(--bg-base);
  --dcv2-bg-card: var(--bg-card);
  --dcv2-bg-card-hover: var(--bg-card-hover);
  --dcv2-bg-elevated: var(--bg-elevated);
  --dcv2-accent: var(--accent);
  --dcv2-accent-glow: var(--accent-glow);
  --dcv2-text-primary: var(--text-primary);
  --dcv2-text-secondary: var(--text-secondary);
  --dcv2-text-dim: var(--text-dim);
  --dcv2-border: var(--border);
  --dcv2-border-light: var(--border-light);
  --dcv2-success: var(--success);
  --dcv2-success-bg: var(--success-bg);
  --dcv2-error: var(--error);
  --dcv2-error-bg: var(--error-bg);
  --dcv2-warning: var(--warning);
  --dcv2-warning-bg: var(--warning-bg);
  --dcv2-info: var(--info);
  --dcv2-info-bg: var(--info-bg);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#app { display: flex; height: 100vh; }

/* ========== SIDEBAR ========== */
.sidebar {
  width: 260px;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(244, 84, 25, 0.3);
}

.sidebar-header-info { flex: 1; min-width: 0; }

.sidebar-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.sidebar-meta {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}

.sidebar-nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
}

.sidebar-nav-item .material-symbols-outlined {
  font-size: 20px;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}

.sidebar-logout:hover {
  color: var(--error);
  background: var(--error-bg);
}

.sidebar-logout .material-symbols-outlined { font-size: 18px; }

/* ========== MAIN CONTENT ========== */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-deep);
}

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary .material-symbols-outlined { font-size: 18px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--accent); }

.btn-secondary .material-symbols-outlined { font-size: 18px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }
.btn-ghost .material-symbols-outlined { font-size: 16px; }

/* ========== STATES ========== */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 12px 0 6px;
}

.empty-state p { font-size: 13px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ========== LOGIN ========== */
.login-page {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

.login-card {
  width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-back {
  display: block;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 16px;
  text-decoration: none;
}

.login-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(244, 84, 25, 0.3);
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--accent); }
.form-input:disabled { opacity: 0.5; }
.form-input::placeholder { color: var(--text-dim); }

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-password-wrapper .form-input {
  width: 100%;
  padding-right: 42px;
}
.btn-toggle-password {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.btn-toggle-password:hover { color: var(--text-primary); }

.form-error {
  font-size: 12px;
  color: var(--error);
  background: var(--error-bg);
  padding: 8px 12px;
  border-radius: 6px;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.login-toggle {
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}

.login-toggle:hover { text-decoration: underline; }

/* ========== PROJECTS GRID ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-card-name {
  font-size: 15px;
  font-weight: 600;
}

.project-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.project-card-stack {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
}

.project-card-env {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== DETAIL GRID ========== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
}

.detail-card-title .material-symbols-outlined { font-size: 18px; color: var(--accent); }

.detail-card-body { padding: 16px 20px; }

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.detail-label { font-size: 12px; color: var(--text-secondary); }
.detail-value { font-size: 13px; font-weight: 500; }

.env-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.env-row:last-child { border-bottom: none; }

.env-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
}

.env-status { font-size: 12px; font-weight: 500; }

.env-url {
  font-size: 11px;
  color: var(--info);
  text-decoration: none;
  margin-left: auto;
}

.env-url:hover { text-decoration: underline; }

/* ========== RECOMMENDATIONS ========== */
.recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.rec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rec-env-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 6px;
}

.rec-provider {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.rec-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.rec-services { margin-bottom: 16px; }

.rec-service-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}

.rec-tier {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-dim);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
}

.rec-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.rec-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 2px;
}

.rec-stat-value {
  font-size: 14px;
  font-weight: 600;
  display: block;
}

/* ========== DEPLOYS ========== */
.deploys-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deploy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.deploy-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.deploy-env {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: var(--info-bg);
  color: var(--info);
  border-radius: 4px;
}

.deploy-id {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-left: 8px;
}

.deploy-time {
  font-size: 11px;
  color: var(--text-dim);
}

.deploy-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.deploy-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.deploy-step .material-symbols-outlined { font-size: 20px; }

.deploy-step.completed { color: var(--success); }
.deploy-step.current { color: var(--warning); }

.deploy-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
}

.deploy-step-line.completed { background: var(--success); }

.deploy-logs {
  margin-top: 12px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.deploy-logs-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.deploy-logs-content {
  padding: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

.deploy-url {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--success-bg);
  border-radius: var(--radius-sm);
}

.deploy-url a {
  color: var(--success);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.deploy-url a:hover { text-decoration: underline; }

.deploy-url .material-symbols-outlined { font-size: 18px; }

/* ========== TEAM ========== */
.team-invite-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.team-invite-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.team-invite-form .form-input { flex: 1; }

.team-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.team-member:last-child { border-bottom: none; }

.team-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.team-member-info { flex: 1; min-width: 0; }

.team-member-name {
  font-size: 13px;
  font-weight: 600;
}

.team-member-email {
  font-size: 11px;
  color: var(--text-dim);
}

.team-member-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 3px 10px;
  background: var(--bg-elevated);
  border-radius: 6px;
}

/* ========== SETTINGS ========== */
.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.settings-tab {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
}

.settings-tab:hover { color: var(--text-primary); }

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

.settings-section { max-width: 600px; }

.provider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.provider-row:last-child { border-bottom: none; }

.provider-name {
  font-size: 13px;
  font-weight: 600;
}

/* ========== QUICK ACTIONS ========== */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.qa-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; text-align: center; cursor: pointer; transition: all 0.15s;
}
.qa-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.qa-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.qa-label { font-size: 14px; font-weight: 600; display: block; }
.qa-desc { font-size: 11px; color: var(--text-dim); display: block; margin-top: 4px; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }


/* ========== THEME TOGGLE ========== */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}

.theme-toggle:hover { color: var(--accent); background: var(--accent-glow); }

/* ========== LIGHT THEME ========== */
[data-theme="light"] {
  --bg-deep: #f5f6f8;
  --bg-base: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --bg-elevated: #f0f1f4;
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-dim: #999;
  --border: #e0e0e0;
  --border-light: #d0d0d0;
  --accent-glow: rgba(244, 84, 25, 0.1);
  --success-bg: rgba(34, 197, 94, 0.08);
  --error-bg: rgba(239, 68, 68, 0.08);
  --warning-bg: rgba(245, 158, 11, 0.08);
  --info-bg: rgba(59, 130, 246, 0.08);
}

/* ========== SIDEBAR USER MENU ========== */
.sidebar-user-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 8px;
  right: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: sidebar-menu-in 0.15s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
}

@keyframes sidebar-menu-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.1s;
  text-align: left;
}

.sidebar-user-menu-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.sidebar-user-menu-danger:hover {
  background: var(--error-bg);
  color: var(--error);
}

.sidebar-user-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
}

/* ========== AUTO-DEPLOY ========== */

.auto-deploy-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auto-deploy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}

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

.auto-deploy-card--disabled {
  opacity: 0.6;
}

.auto-deploy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.auto-deploy-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Toggle switch */
.auto-deploy-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  border: none;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.auto-deploy-toggle--on {
  background: var(--success);
}

.auto-deploy-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auto-deploy-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
  display: block;
}

.auto-deploy-toggle--on .auto-deploy-toggle-knob {
  transform: translateX(18px);
}

/* Modal overlay e box (reutilizados por outros componentes) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

/* Form select (ainda nao existia) */
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892a6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-select:focus {
  border-color: var(--accent);
}

/* Empty state da pagina (maior que o inline) */
.empty-state-page {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-secondary);
}

/* Alert erro */
.alert-error {
  padding: 12px 16px;
  background: var(--error-bg);
  border: 1px solid var(--error);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 13px;
  margin-bottom: 16px;
}
