@charset "UTF-8";
/* Importação da fonte Poppins do Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de cores profissional */
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --warning-color: #b91414;
  --error-color: #e74c3c;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --background-color: #ecf0f1;
  --white: #ffffff;
  --border-color: #bdc3c7;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: "Poppins";
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  display: none;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  text-align: center;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: auto;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
  font-family: inherit;
}

.desenvolvedor {
  font-weight: bold;
  font-size: clamp(0.8em, 1vw, 0.8em);
  color: white;
  text-align: right;
  height: 30px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.desenvolvido_por_menor {
  font-weight: 300;
  font-size: clamp(1em, 1vw, 0.8em);
  color: white;
  text-align: center;
  vertical-align: middle;
  height: 30px;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  bottom: -2px;
}

.wave-container {
  position: relative;
  height: 250px;
  background: transparent;
  overflow: hidden;
}

.fundo_azul {
  background: linear-gradient(180deg, #0056b3, #1e293b);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

img.brasao {
  width: 60px;
}

.menu_superior_azul {
  background: linear-gradient(90deg, #0a5bb1, #044891, #0a5bb1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  padding-right: 60px;
  padding-left: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.usuario_admin_logado {
  font-size: clamp(0.9em, 1vw, 1em);
  color: white;
  font-weight: 600;
  text-align: center;
  display: flex;
  gap: 10px;
  background: #ffffff26;
  padding: 10px;
  border-radius: 15px;
}

.menu-home {
  font-size: clamp(0.9em, 1vw, 1em);
  color: white;
  font-weight: 600;
  text-align: center;
  background: #ffffff26;
  padding: 5px;
  border-radius: 10px;
}

.titulo_adm {
  font-size: clamp(2.6em, 1vw, 1em);
  color: white;
  font-weight: bolder;
  padding-left: 30px;
  text-shadow: #4b4a4a 0.1em 0.1em 0.2em;
}

.cpicon_form {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cpicon a {
  text-decoration: none !important;
  position: relative;
}

.cpicon a::before,
.cpicon a::after {
  content: "";
  position: absolute;
  display: block;
  border: 0 solid transparent;
  width: 0%;
  height: 0%;
  transition: all 0.5s ease;
}

.cpicon a::after {
  top: 0;
  left: 0;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
}

.cpicon a::before {
  right: 0;
  bottom: 0;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
}

.cpicon a:hover::before,
.cpicon a:hover::after {
  width: 98%;
  height: 98%;
  border-color: #007bff;
}
.cpicon {
  position: relative;
  display: inline-block;
  text-align: center;
  font-weight: 500;
  color: #1e4f6f;
  padding: 0;
}

.cpicon a {
  color: #1e4f6f;
  font-weight: 500;
  float: left;
  position: relative;
  display: flex;
  list-style: none;
  height: clamp(11.2em, 1vw, 1em);
  width: clamp(10.8em, 1vw, 1em);
  text-decoration: none;
  text-align: center;
  font-size: clamp(0.6em, 1vw, 0.8em);
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -goog-ms-border-radius: 5px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 5px;
  background: rgb(255 255 255 / 58%);
  transition: 0.3s ease;
  backdrop-filter: blur(2.6px);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.cpicon a:hover {
  color: #fff;
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  background: #0056b3;
  transform: translateY(-5px);
  border-radius: 0px;
}

.cpicon img {
  text-align: center;
  width: 65%;
  height: 65%;
}

.cpicon span {
  font-size: clamp(1em, 1vw, 1em);
  font-weight: 500;

  display: block;
  text-align: center;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Tabela de Arquivos */
.table-container {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  margin-top: 30px;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
}

.files-table thead {
  background: linear-gradient(45deg, #0056b3, #1e293b, #0056b3);
  color: var(--white);
}

.files-table th {
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--secondary-color);
}

.files-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #ecf0f1;
  font-size: 0.9rem;
}

.files-table tbody tr {
  transition: var(--transition);
}

.files-table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.files-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.files-table tbody tr:nth-child(even):hover {
  background-color: rgba(52, 152, 219, 0.08);
}

.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 45px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
}

.action-btn.delete-btn {
  background: var(--warning-color) !important;
  color: var(--white) !important;
}

.action-btn.delete-btn:hover {
  background: #c0392b !important;
  transform: scale(1.05);
}

.action-btn.edit-btn {
  background: #c9ae19 !important;
  color: var(--white) !important;
}

.action-btn.edit-btn:hover {
  background: #e67e22 !important;
  transform: scale(1.05);
}

/* Header do formulário */
.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.form-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.form-header h1 i {
  color: var(--secondary-color);
  margin-right: 15px;
}

.form-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.required {
  color: var(--error-color);
  font-weight: bold;
}

/* Formulário principal */
.professional-form {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

/* Seções do formulário */
.form-section {
  padding: 30px;
  border-bottom: 1px solid #ecf0f1;
  position: relative;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
}

.form-section h2 i {
  margin-right: 12px;
  color: var(--secondary-color);
  font-size: 1.3rem;
}

/* Grupos de campos */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Labels */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

/* Inputs gerais */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  transform: translateY(-1px);
}

/* Textarea específico */
textarea {
  resize: vertical;
  min-height: 120px;
}

/* Select customizado */
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
}

/* Checkbox e Radio customizados */
.checkbox-group,
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: var(--white);
  position: relative;
}

.checkbox-label:hover,
.radio-label:hover {
  border-color: var(--secondary-color);
  background-color: rgba(52, 152, 219, 0.05);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  width: auto;
  margin-right: 10px;
  transform: scale(1.2);
  accent-color: var(--secondary-color);
}

/* Range slider */
.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: var(--border-color);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  cursor: pointer;
  box-shadow: var(--shadow-light);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-light);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
}

#priorityValue {
  font-weight: bold;
  color: var(--secondary-color);
}

/* Input de cor */
input[type="color"] {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  padding: 0;
}

/* Input de arquivo */
input[type="file"] {
  padding: 10px;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  background-color: #f8f9fa;
  cursor: pointer;
  transition: var(--transition);
}

input[type="file"]:hover {
  border-color: var(--secondary-color);
  background-color: rgba(52, 152, 219, 0.05);
}

/* Mensagens de erro */
.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 20px;
  font-weight: 500;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error-color);
  background-color: rgba(231, 76, 60, 0.05);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: var(--success-color);
  background-color: rgba(39, 174, 96, 0.05);
}

/* Textos pequenos */
small {
  display: block;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Botões */
.form-actions {
  padding: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 150px;
  justify-content: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: var(--text-light);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #6c757d;
  transform: translateY(-2px);
}

.btn-info {
  background-color: var(--warning-color);
  color: var(--white);
}

.btn-info:hover {
  background-color: #8f0f0f;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.display-excluir-imagens {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.exclui-imagens {
  padding: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 5px;
  border: none;
  background: #ff5b5b;
  font-size: 20px;
  cursor: pointer;
}
.galeria_manutencao_noticia {
  display: flex;
  overflow-y: auto;
  gap: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 0;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-heavy);
  animation: slideIn 0.3s ease;
  position: relative;
}

.modal-header {
  padding: 25px 30px;
  background: linear-gradient(135deg, var(--success-color), #2ecc71);
  color: var(--white);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  text-align: center;
}

.modal-header i {
  font-size: 3rem;
  margin-bottom: 10px;
  display: block;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-body {
  padding: 30px;
  text-align: center;
  line-height: 1.6;
}

.modal-footer {
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid #ecf0f1;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  color: var(--white);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
}

.close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Loading state */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.cabecalho-organizacao {
  display: flex;
  gap: 70px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .menu_superior_azul {
    justify-content: center;
  }

  .cabecalho-organizacao {
    display: flex;
    gap: 70px;
    justify-content: center;
    align-items: center;
  }

  .home-cabecalho {
    width: auto;
    display: flex;
  }

  .usuario_admin_logado {
    display: flex;
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    background: #0056b3;
  }

  .wave-container {
    height: 90px;
    overflow: auto;
  }
  .form-header h1 {
    font-size: 2rem;
  }

  .form-section {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .checkbox-group,
  .radio-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
}

@media (max-width: 480px) {
  .form-header {
    padding: 20px;
    margin-bottom: 20px;
  }

  .form-header h1 {
    font-size: 1.5rem;
  }

  .form-section {
    padding: 15px;
  }

  .form-section h2 {
    font-size: 1.2rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="number"],
  input[type="url"],
  input[type="password"],
  select,
  textarea {
    padding: 10px 12px;
  }
}

/* Estados de validação visual */
.form-group.validating input,
.form-group.validating select,
.form-group.validating textarea {
  border-color: var(--warning-color);
  background-color: rgba(243, 156, 18, 0.05);
}

/* Melhorias de acessibilidade */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Indicador de progresso */
.progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--success-color)
  );
  width: 0%;
  transition: width 0.3s ease;
}

/* Tooltip personalizado */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  border-radius: var(--border-radius);
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/*==========================================================================================================================*/
/* FORMATO PARA MOBILE - ANDROID / IPHONE
/*==========================================================================================================================*/
@media screen and (max-width: 768px) {
  .min-servicos {
    display: inline-block;
    padding: 2px;
    width: auto;
  }

  .logoff {
    display: none;
  }

  img.min-brasao {
    width: clamp(100px, 40vw, 100px);
  }
  div.min-cpicon a {
    color: #1e4f6f;
    font-weight: bold;
    float: left;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    height: clamp(9em, 1vw, 1em);
    width: clamp(9em, 1vw, 1em);
    vertical-align: middle;
    text-decoration: none;
    text-align: center;
    font-size: clamp(0.9em, 1vw, 1em);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -goog-ms-border-radius: 10px;
    vertical-align: middle;
  }
  div.min-cpicon span {
    font-size: clamp(0.9em, 1vw, 1em);
    font-weight: normal;

    display: block;
    text-align: center;
  }

  div.min-cpicon img {
    margin-top: 2px;
    margin-bottom: 2px;
    text-align: center;
  }
}
