@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600&display=swap');

:root {
  --azul:         #27306c;
  --azul-dark:    #1b2250;
  --azul-light:   #eef0f8;
  --vermelho:     #d11519;
  --vermelho-dark:#a81013;
  --vermelho-light:#fdecea;
  --text:         #1a1a1a;
  --text-muted:   #6b7280;
  --bg:           #ffffff;
  --bg2:          #f9fafb;
  --border:       rgba(0,0,0,0.1);
  --radius:       12px;
  --radius-sm:    8px;
}

* { box-sizing: border-box; }
body {
  font-family: 'Sora', sans-serif;
  background: #f0f2f8;
  color: var(--text);
  font-size: 15px;
  min-height: 100vh;
}

.canal-header {
  background: var(--azul);
  padding: 24px 0 22px;
  border-bottom: 4px solid var(--vermelho);
}
.canal-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.canal-empresa { color: rgba(255,255,255,0.65); font-size: 12px; font-weight: 500; }
.canal-titulo {
  color: white; font-size: 21px; font-weight: 600;
  margin: 0; line-height: 1.3;
}
.canal-sub { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; }
.canal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 0.5px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; color: rgba(255,255,255,0.9);
  margin-top: 10px;
}

.home-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none; color: var(--text);
  transition: all 0.18s; position: relative;
  display: flex; flex-direction: column; gap: 6px;
}
.home-card:hover {
  border-color: var(--azul);
  background: var(--azul-light);
  color: var(--text); transform: translateY(-1px);
}
.home-card-primary {
  border-color: var(--vermelho);
  border-width: 2px;
  background: var(--vermelho-light);
}
.home-card-primary:hover { background: #fad5d5; border-color: var(--vermelho-dark); }
.home-card-icon {
  width: 44px; height: 44px;
  background: var(--azul-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--azul);
  margin-bottom: 6px;
}
.home-card-primary .home-card-icon {
  background: var(--vermelho-light);
  color: var(--vermelho);
}
.home-card-title { font-size: 16px; font-weight: 600; }
.home-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.home-card-arrow {
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--vermelho); font-size: 20px;
}

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

.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px; font-family: 'Sora', sans-serif;
  font-size: 14px; background: var(--bg2);
  transition: border-color 0.15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(39,48,108,0.1);
}
label.form-label { font-size: 13px; font-weight: 500; margin-bottom: 5px; }

.btn-verde {
  background: var(--azul); color: white;
  border: none; border-radius: var(--radius-sm);
  padding: 10px 20px; font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s; white-space: nowrap;
  text-decoration: none;
}
.btn-verde:hover { background: var(--azul-dark); color: white; }
.btn-verde:active { transform: scale(0.98); }

.btn-submit {
  width: 100%; background: var(--vermelho); color: white;
  border: none; border-radius: var(--radius-sm);
  padding: 14px; font-family: 'Sora', sans-serif;
  font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; transition: all 0.15s;
}
.btn-submit:hover { background: var(--vermelho-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-voltar {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm); padding: 8px 16px;
  font-family: 'Sora', sans-serif; font-size: 13px; color: white;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; transition: all 0.15s;
}
.btn-voltar:hover { background: rgba(255,255,255,0.25); color: white; }

.form-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px;
}
.form-section-title {
  font-size: 12px; font-weight: 600; color: var(--azul);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 16px; display: flex; align-items: center; gap: 6px;
}

.radio-group { display: flex; gap: 10px; }
.radio-option {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 8px;
  background: var(--bg2); transition: all 0.15s;
  user-select: none;
}
.radio-option.ativo { border-color: var(--azul); background: var(--azul-light); color: var(--azul); font-weight: 500; }
.radio-circle {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid currentColor; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.radio-option.ativo .radio-circle::after {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--azul);
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm); padding: 24px;
  text-align: center; cursor: pointer;
  background: var(--bg2); transition: all 0.15s;
}
.upload-zone:hover { border-color: var(--azul); background: var(--azul-light); }
.upload-zone i { font-size: 28px; color: var(--text-muted); }
.upload-zone p { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; }
.upload-zone small { font-size: 11px; opacity: 0.7; }

.protocolo-box {
  background: var(--azul-light);
  border: 2px solid var(--azul);
  border-radius: var(--radius); padding: 24px;
  text-align: center;
}
.protocolo-label {
  font-size: 11px; color: var(--azul);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.protocolo-num {
  font-size: 26px; font-weight: 700; color: var(--azul);
  letter-spacing: 0.04em; margin: 8px 0;
}
.btn-copiar {
  background: white; border: 1px solid var(--azul);
  color: var(--azul); border-radius: var(--radius-sm);
  padding: 7px 16px; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Sora', sans-serif; transition: all 0.15s;
}
.btn-copiar:hover { background: var(--azul); color: white; }

.badge-status { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-recebido    { background: #dbeafe; color: #1e40af; }
.badge-em_analise  { background: #fef3c7; color: #92400e; }
.badge-em_andamento{ background: var(--azul-light); color: var(--azul); }
.badge-finalizado  { background: #d1fae5; color: #065f46; }

.timeline-item {
  display: flex; gap: 14px; padding-bottom: 18px; position: relative;
}
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute;
  left: 15px; top: 33px; bottom: 0; width: 1px;
  background: var(--border);
}
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--azul-light); border: 2px solid var(--azul);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--azul); font-size: 15px;
}

.admin-sidebar {
  background: var(--azul); min-height: 100vh;
  padding: 24px 16px; color: white;
  position: relative;
}
.admin-sidebar-bottom {
  position: absolute; bottom: 24px; left: 16px; right: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
}
.admin-nav a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75); text-decoration: none;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 4px; transition: all 0.15s;
}
.admin-nav a:hover, .admin-nav a.ativo {
  background: rgba(255,255,255,0.15); color: white;
}
.admin-nav a.ativo { border-left: 3px solid var(--vermelho); }

.dash-card {
  background: var(--bg2); border-radius: var(--radius);
  padding: 16px 20px; text-align: center;
  border: 1px solid var(--border);
}
.dash-num { font-size: 32px; font-weight: 700; color: var(--azul); }
.dash-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.text-verde { color: var(--azul) !important; }

.aviso-salvar {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 13px; color: #78350f;
  display: flex; gap: 8px; align-items: flex-start;
}

@media (max-width: 576px) {
  .canal-titulo { font-size: 17px; }
  .home-card-arrow { display: none; }
  .radio-group { flex-direction: column; }
  .protocolo-num { font-size: 20px; }
  .canal-logo img { height: 40px; }
}
