:root {
  --form-bg-light: #f9f9f9;
  --form-bg-dark: #1e1e1e;
  --text-light: #333;
  --text-dark: #f1f1f1;
  --label-light: #555;
  --label-dark: #ccc;
  --input-bg-light: #ffffff;
  --input-bg-dark: #2a2a2a;
  --input-border-light: #ddd;
  --input-border-dark: #555;
  --link-light: #0066cc;
  --link-dark: #4aa3ff;
  --button-bg: #28a745;
  --button-bg-hover: #218838;
  --sidebar-bg: #1a1a2e;
  --bg-card: #252836;
  --text-color: #f0f0f0;
  --text-muted: #aaaaaa;
  --input-bg: #2b2b3c;
  --border-color: #444;
  --btn-secondary-bg: #3a3a4a;


}

/* =================== TEMA =================== */
body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

html, body, .login-container, form {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

body[data-theme="light"] {
  background-color: #ffffff;
  --form-bg: var(--form-bg-light);
  --text-color: var(--text-light);
  --label-color: var(--label-light);
  --input-bg: var(--input-bg-light);
  --input-border: var(--input-border-light);
  --link-color: var(--link-light);
  color: var(--text-color);
}

body[data-theme="dark"] {
  background-color: #121212;
  --form-bg: var(--form-bg-dark);
  --text-color: var(--text-dark);
  --label-color: var(--label-dark);
  --input-bg: var(--input-bg-dark);
  --input-border: var(--input-border-dark);
  --link-color: var(--link-dark);
  color: var(--text-color);
}

/* =================== FORMULÁRIO =================== */
form {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  background-color: var(--form-bg);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

form h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--label-color);
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="checkbox"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  font-size: 16px;
  background-color: var(--input-bg);
  color: var(--text-color);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

form input::placeholder {
  color: #aaa;
}

form label[for="agree"] {
  display: flex;
  align-items: center;
  font-weight: normal;
}

form label[for="agree"] a {
  color: var(--link-color);
  text-decoration: none;
}

form label[for="agree"] a:hover,
form footer a:hover {
  text-decoration: underline;
}

form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: var(--button-bg);
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
  background-color: var(--button-bg-hover);
}

/* FOOTER + LINKS */
form footer {
  text-align: center;
  margin-top: 20px;
}

form footer a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

form footer a:hover {
  color: var(--button-bg);
  border-bottom: 2px solid var(--button-bg);
}

form footer a:focus,
form footer a:focus-visible {
  outline: none;
  border-bottom: 2px solid var(--link-color);
}

form footer a:active {
  color: var(--button-bg);
  transform: translateY(1px);
}

/* LINKS EM ALERT */
.alert.alert-success a {
  color: var(--link-color);
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s, border-bottom 0.3s, transform 0.2s;
}

.alert.alert-success a:hover {
  color: var(--button-bg);
  border-bottom: 2px solid var(--button-bg);
  transform: translateY(-2px);
}

.alert.alert-success a:focus {
  border-bottom: 2px solid var(--link-color);
}

.alert.alert-success a:active {
  color: var(--button-bg);
  transform: translateY(1px);
}

/* BOTÃO DE TEMA */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  border: 2px solid var(--input-border);
  color: var(--text-color);
  background-color: transparent;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--button-bg);
  color: white;
  border-color: var(--button-bg);
}

/* RESPONSIVO FORM */
@media (max-width: 480px) {
  form {
    padding: 15px;
    margin: 20px;
  }
  form h1 {
    font-size: 20px;
  }
  form button[type="submit"] {
    font-size: 16px;
  }
}

/* =================== DASHBOARD =================== */
.dashboard-app {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 280px;
  background-color: var(--sidebar-bg);
  padding: 1.5rem;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  color: white;
  transition: all 0.3s;
}

.dashboard-main {
  margin-left: 280px;
  flex: 1;
  padding: 2rem;
  transition: all 0.3s;
}

.dashboard-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #ccc;
  text-decoration: none;
  transition: background-color 0.3s;
  border-radius: 0.5rem;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background-color: #16213e;
  color: #fff;
}

.dashboard-nav a i {
  margin-right: 0.5rem;
}

/* PROFILE E USER AVATAR */
.user-greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.user-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #6c757d;
  margin-bottom: 0.8rem;
}

.profile-card {
  background-color: var(--form-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-info dt {
  font-weight: 600;
  color: var(--label-color);
  margin-top: 1rem;
}

.profile-info dd {
  margin-left: 0;
}

/* BOTÕES DA DASHBOARD */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.dashboard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background-color: var(--button-bg);
  color: white;
  transition: all 0.3s ease;
}

.dashboard-btn:hover {
  background-color: var(--button-bg-hover);
  transform: scale(1.02);
}

.dashboard-btn.logout {
  background-color: crimson;
}

.dashboard-btn.logout:hover {
  background-color: darkred;
}

body[data-theme="dark"] .dashboard-btn {
  background-color: #0056b3;
}

body[data-theme="dark"] .dashboard-btn.logout {
  background-color: #aa1d1d;
}

/* RESPONSIVO DASHBOARD */
@media (max-width: 768px) {
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .dashboard-main {
    margin-left: 0;
  }
}
.btn-primary {
    background-color: lightskyblue;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    padding: 5px 10px;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background-color: #520dc2;
}
/* Modal customizado */
.modal-content {
  background-color: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  padding: 10px;
  color: var(--text-color);
}

/* Títulos do modal */
.modal-title {
  font-weight: 600;
  color: var(--text-color);
}

/* Inputs e textarea */
.modal-body .form-control {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
}

.modal-body .form-control:focus {
  border-color: #2e86de;
  box-shadow: 0 0 0 0.2rem rgba(46,134,222,0.25);
}

/* Texto auxiliar */
.form-text {
  color: var(--text-muted);
}

/* Botões */
.btn-save {
  background-color: #lightskyblue;
  color: white;
  font-weight: bold;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.btn-save:hover {
  background-color: #1b4f72;
}

.btn-secondary {
  background-color: var(--btn-secondary-bg, #ccc);
  color: var(--text-color);
  border-radius: 10px;
  padding: 10px 18px;
}
.btn-xd {
    background-color: #3498db !important; /* Azul bonito */
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-xd:hover {
    background-color: #2980b9 !important; /* Azul mais escuro ao passar o mouse */
    cursor: pointer;
}

.btn-xd:active {
    background-color: #1f6aa5; /* Azul ainda mais escuro ao clicar */
}
.toggle-password {
  position: absolute;
  right: 15px;
  top: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.toggle-password:hover {
  color: var(--text-color);
}
.alert {
    max-width: 500px;
    margin: 20px auto; /* Centraliza horizontalmente */
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease-in-out;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =================== SERVICES =================== */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    flex: 1 1 300px; /* Mínimo de 300px, cresce se tiver espaço */
    max-width: 400px;
    background-color: #1e1e2f;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    transition: 0.3s;
    box-sizing: border-box;
}

.service-card:hover {
    background-color: #2a2a3d;
}
.servicos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.service-card {
    background-color: #1e1e2f;
    border-radius: 12px;
    padding: 20px;
    color: #f1f1f1;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.02);
}

.titulo-servicos {
    padding: 30px 20px 10px;
    font-size: 24px;
    color: #fff;
}

.btn-detalhes {
    margin-top: 10px;
    background-color: #4e8cff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-detalhes:hover {
    background-color: #3c74d8;
}

.sem-servicos {
    padding: 40px;
    text-align: center;
    grid-column: 1 / -1;
    color: #aaa;
    font-size: 18px;
}
/* Modal Serviços - Card */
.modal-card {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content-card {
    background-color: #2c2c3e;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    color: #fff;
    position: relative;
}
.modal-content p {
    white-space: pre-line; /* Preserva quebras de linha */
    word-wrap: break-word; /* Quebra palavras longas */
    max-height: 60vh;
    overflow-y: auto;
}

.modal-content-card h3 {
    margin-top: 0;

}

.fechar {
    color: #aaa;
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    cursor: pointer;
}

.fechar:hover {
    color: white;
}
.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    font-size: 0.9rem;
    margin-left: 6px;
}

.status.ativo {
    background-color: #4caf50; /* Verde */
    color: white;
}

.status.pendente {
    background-color: #ffcc00; /* Laranja */
    color: white;
}

.status-emandamento {
    background: linear-gradient(135deg, #2196F3, #4CAF50);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

.status.completo {
    background-color: #2196f3; /* Azul */
    color: white;
}

.status.finalizado {
    background-color: #9c27b0; /* Roxo */
    color: white;
}
.elo-progress-fill {
    position: relative;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: white;
    text-shadow: 0 0 2px #000;
}

.progress-details {
    font-size: 14px;
    color: #aaa;
    margin-top: -10px;
    margin-bottom: 10px;
}
.elo-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.elo-progress-bar {
    flex-grow: 1;
    height: 25px;
    background-color: #333;
    border-radius: 12px;
    margin: 0 10px;
    overflow: hidden;
    position: relative;
}

.elo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    width: 0%;
    transition: width 0.5s ease;
}

.elo-progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}
/* Estilos para o footer */
.footer {
    background: linear-gradient(135deg, #1a1e2b 0%, #1e2332 100%) !important;
    border-top: 1px solid #2d7a9c;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #17b171 !important;
    text-decoration: underline !important;
    transform: translateX(3px);
}

.payment-methods img {
    transition: transform 0.3s ease;
}

.payment-methods img:hover {
    transform: scale(1.1);
}

.social-links i {
    transition: all 0.3s ease;
}

.social-links i:hover {
    color: #17b171 !important;
    transform: translateY(-3px);
}

.text-primary {
    color: #17b171 !important;
}
/* Barra de Navegação de Serviços */
.services-navbar {
    background: linear-gradient(135deg, #1a1e2b 0%, #1e2332 100%);
    border-bottom: 1px solid #2d7a9c;
}

.services-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-link {
    padding: 8px 20px;
    border-radius: 8px;
    background-color: #252836;
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #2d7a9c;
}

.service-link:hover {
    background-color: #2d7a9c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-link.active {
    background-color: #17b171;
    border-color: #17b171;
}

.service-link i {
    font-size: 1.1rem;
}

