@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&display=swap");

/* CONFIGURAÇÃO DE CORES (Sincronizado com seu site) */
:root {
  --primary: #0a58ca;
  --accent: #7db4ff;
  --bg: #05070d;
  --card-bg: rgba(13, 19, 34, 0.8);
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.03);
  --danger: #e53935;
  --success: #25d366;
  --warning: #ffa500;
  --text-main: #ffffff;
  --text-muted: #9aa4bf;
  --shadow: rgba(0, 0, 0, 0.5);
}

/* RESET E BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 20% 30%, #001b44 0%, #05070d 60%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* CONTAINERS */
.container,
.card {
  max-width: 960px;
  margin: 40px auto;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
  transition: all 0.3s ease;
}

/* TIPOGRAFIA */
h2 {
  text-align: center;
  background: linear-gradient(90deg, #fff, var(--accent), #fff);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 25px;
  font-weight: 900;
  letter-spacing: -1px;
  font-size: 28px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  filter: brightness(1.2);
  text-decoration: underline;
}

/* FORMULÁRIOS */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
  margin-bottom: 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  box-shadow: 0 0 15px rgba(125, 180, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* BOTÕES */
button,
.btn-header,
.btn-submit {
  padding: 14px 25px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(10, 88, 202, 0.3);
  margin-top: 10px;
}

button:hover {
  background: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(10, 88, 202, 0.4);
}

/* ELEMENTOS ESPECÍFICOS DO STYLE.CSS ORIGINAL */
#toggleTheme {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 15px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.loader {
  display: none;
  text-align: center;
  padding: 20px;
  font-size: 18px;
  color: var(--accent);
  font-weight: bold;
}

.success-msg {
  text-align: center;
  color: var(--success);
  font-weight: bold;
  margin-top: 20px;
}

/* PROGRESS BAR */
.progress-container {
  width: 100%;
  background-color: var(--border);
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 25px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.5s ease;
}

/* CHECKBOX E RADIO CUSTOMIZADOS */
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* BLOCOS E STATUS */
.bloco {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
}

.valor {
  font-weight: 900;
  color: var(--accent);
}

.ok {
  color: var(--success);
  font-weight: bold;
}
.pendente {
  color: var(--warning);
  font-weight: bold;
}
.pendente:hover {
  text-decoration: underline;
}

.bi {
  margin-right: 6px;
  vertical-align: middle;
}

/* GALERIA E MODAL */
.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.item {
  border: 1px solid var(--border);
  padding: 10px;
  width: calc(25% - 15px);
  min-width: 160px;
  text-align: center;
  background: var(--glass);
  border-radius: 12px;
  transition: 0.3s;
}

.item:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

.item img {
  width: 100%;
  cursor: zoom-in;
  border-radius: 8px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.modal-conteudo {
  display: block;
  margin: 5% auto;
  max-width: 85%;
  max-height: 85vh;
  border-radius: 15px;
  border: 2px solid var(--border);
}

.fechar {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* TOAST MESSAGES */
.toast-message {
  position: fixed;
  top: 25px;
  right: 25px;
  min-width: 280px;
  padding: 18px 25px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateX(50px);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.toast-message.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.toast-message.success {
  background-color: rgba(37, 211, 102, 0.2);
  border-color: var(--success);
  color: var(--success);
}

.toast-message.error {
  background-color: rgba(229, 57, 53, 0.2);
  border-color: var(--danger);
  color: var(--danger);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .container,
  .card {
    margin: 20px;
    padding: 20px;
  }

  .item {
    width: calc(50% - 10px);
  }

  h2 {
    font-size: 22px;
  }
}
