@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Cores sólidas de Azul Esverdeado (Teal) e Branco */
  --bg-primary: #041014;
  --panel-bg: #0b2025;
  --panel-border: #14363d;
  --input-bg: #07151a;
  
  --teal-brand: #14b8a6;
  --teal-hover: #0d9488;
  --teal-bg-subtle: rgba(20, 184, 166, 0.08);
  
  --text-primary: #ffffff;
  --text-secondary: #99f6e4;
  --text-muted: #4a6b74;
  
  /* Easing de luxo slow motion */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --t-snappy: 0.38s var(--ease-premium);
  --t-smooth: 0.75s var(--ease-premium);
}

/* Prevenção de seleção acidental de texto e cursor de digitação */
*, *::before, *::after {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Elementos editáveis devem permitir cursor de texto e seleção */
input, 
textarea,
input *, 
textarea *,
.selectable-text,
.selectable-text * {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  cursor: text !important;
}

/* Elementos clicáveis */
button,
a,
select,
option,
.tab-button,
tr.clickable-row,
button *,
a * {
  cursor: pointer !important;
}

/* Painel Sólido */
.solid-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  transition: all var(--t-smooth);
}

.solid-input {
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  border-radius: 4px;
  transition: all var(--t-snappy);
}

.solid-input:focus {
  outline: none;
  border-color: var(--teal-brand);
  box-shadow: 0 0 0 1px var(--teal-brand);
}

/* Sistema de Abas */
.tab-button {
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  transition: all var(--t-snappy);
}

.tab-button.active {
  border-color: var(--teal-brand);
  color: var(--teal-brand);
  font-weight: 600;
}

/* Botões */
.btn-teal {
  background-color: var(--teal-brand);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--t-snappy);
}

.btn-teal:hover {
  background-color: var(--teal-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--panel-border);
  background-color: rgba(4, 16, 20, 0.6);
  color: var(--text-primary);
  border-radius: 4px;
  transition: all var(--t-snappy);
}

.btn-outline:hover {
  border-color: var(--teal-brand);
  background-color: var(--teal-bg-subtle);
  color: var(--teal-brand);
}

.btn-danger {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background-color: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-radius: 4px;
  transition: all var(--t-snappy);
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

/* Toggle Switch Administrativo */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--input-bg);
  border: 1px solid var(--panel-border);
  transition: .3s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--teal-brand);
  border-color: var(--teal-brand);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: var(--bg-primary);
}

/* Ajustador de Postagens Numéricas */
.counter-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  background-color: var(--input-bg);
  color: var(--text-primary);
  font-weight: bold;
  transition: all var(--t-snappy);
}

.counter-btn:hover {
  border-color: var(--teal-brand);
  color: var(--teal-brand);
}

/* Tabela Sólida Administrativa */
.solid-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.solid-table th {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--panel-border);
}

.solid-table td {
  padding: 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-primary);
  vertical-align: middle;
}

tr.clickable-row {
  transition: all var(--t-snappy);
}

tr.clickable-row:hover {
  background-color: rgba(20, 184, 166, 0.04);
}

tr.clickable-row.selected {
  background-color: var(--teal-bg-subtle);
  border-left: 3px solid var(--teal-brand);
}

/* Transição de Transição */
.state-container {
  opacity: 0;
  transform: translateY(6px);
  animation: reveal-state var(--t-smooth) forwards;
}

@keyframes reveal-state {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
