/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* CORPO */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #000;
    color: #fff;
    height: 100vh;
}

/* HEADER */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    padding: 15px 25px;
    width: 100%;            /* 🔴 LINHA QUE FALTAVA */
}

/* Logo */
.logo-area a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.logo-area img {
    height: 45px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

/* Área do usuário à direita */
.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Texto "Olá, usuário" */
.user-name {
    font-size: 14px;
    color: #ddd;
}

/* Botão Sair */
.btn-logout {
    padding: 6px 14px;
    background-color: #fff;
    color: #000;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: #444;
    color: #fff;
}

/* Link login quando não logado */
.login-link {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.login-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.login-link:hover {
    text-decoration: underline;
}



/* CONTAINER PRINCIPAL (conteúdo) */
.container {
    padding: 20px;
    height: auto;
    display: block;
}

/* MENU LATERAL */
.sidebar {
    width: 200px;          /* ajuste conforme seu visual */
    flex: 0 0 200px;
    background-color: #0a0a0a;
    border-right: 1px solid #222;
    padding-top: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 5px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar a:hover {
    background-color: #222;
}

/* CONTEÚDO */
.content {
    
    flex: 1;
    min-width: 0;
    
}

.content strong {
    color: #fff;
}

.intro-text {
    background-color: #0a0a0a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #222;
    max-height: calc(100vh - 350px); /* espaço para header + mapa + rodapé */
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical */
    align-items: center;     /* horizontal */

}

.intro-text::-webkit-scrollbar {
    width: 8px;
}

.intro-text::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
}

.intro-text::-webkit-scrollbar-track {
    background-color: #111;
}

.content h1 {
    margin-bottom: 30px;
    font-size: 28px;
}

.content p {
    margin-bottom: 22px;   /* espaçamento entre blocos */
    line-height: 1.7;      /* melhora leitura */
    color: #ccc;
    max-width: 900px;      /* evita linhas muito longas */
}

/* RODAPÉ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0a0a0a;
    border-top: 1px solid #222;
    padding: 22px 20px;
    text-align: center;
    font-size: 13px;
    color: #ccc;
    z-index: 1000;
}

.footer a {
    color: #25d366;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}
.footer strong {
    color: #fff;
}


.map-container {
    position: fixed;
    bottom: 50px; /* altura do rodapé */
    left: 0;
    width: 100%;
    height: 120px;
    border-top: 1px solid #222;
    overflow: hidden;
    transition: height 0.4s ease;
    background-color: #000;
    z-index: 999;
}

.map-container:hover {
    height: 280px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%) invert(90%);
}


.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
    z-index: 1001;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #fff;
}

/* botão padrão */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn:hover {
    background: #444;
    color: #fff;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    color: #ddd;
    font-size: 14px;
}

.tabela thead {
    background: #000;
}

.tabela th,
.tabela td {
    padding: 12px 10px;
    border-bottom: 1px solid #222;
    text-align: left;
}

.tabela th {
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
}

.tabela tr:hover {
    background: #1c1c1c;
}

.tabela a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.tabela a:hover {
    text-decoration: underline;
}

.tabela .inativo {
    color: #777;
    font-style: italic;
}

form {
    max-width: 600px;
    background: #111;
    padding: 25px;
    border-radius: 6px;
}

form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 13px;
    color: #ccc;
}

form input[type="text"],
form input[type="date"],
form textarea {
    width: 100%;
    padding: 10px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

form textarea {
    min-height: 90px;
    resize: vertical;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #fff;
}

/* checkbox */
form input[type="checkbox"] {
    margin-right: 6px;
}

/* botões do formulário */
form button {
    margin-top: 20px;
    padding: 10px 18px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

form button:hover {
    background: #444;
    color: #fff;
}

form a {
    margin-left: 15px;
    color: #aaa;
    text-decoration: none;
}

form a:hover {
    text-decoration: underline;
}

.erro-msg {
    color: #ff5555;
    font-size: 13px;
    margin-top: 5px;
}

input.erro {
    border-color: #ff5555;
}
input#telefone {
    letter-spacing: 0.5px;
}

.admin-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-card{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 14px;
  background:#111;
  border:1px solid #222;
  border-radius: 8px;
  color:#fff;
  text-decoration:none;
  font-weight:bold;
}

.admin-card:hover{
  background:#1c1c1c;
}

.user-name-link{
  color:#ddd;
  text-decoration:none;
  font-size:14px;
}
.user-name-link:hover{
  color:#fff;
  text-decoration:underline;
}

/* Painel do formulário de serviço com rolagem */
.form-scroll {
  max-height: calc(100vh - 220px); /* ajuste fino se precisar */
  overflow-y: auto;
  padding-right: 10px;
}

/* Ações ficam sempre visíveis no fim do painel */
.form-actions {
  position: sticky;
  bottom: 0;
  background: #111;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #222;
}

.form-scroll::-webkit-scrollbar { width: 10px; }
.form-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.form-scroll::-webkit-scrollbar-track { background: #111; }

.readonly-field{
  background:#000;
  border:1px solid #333;
  color:#ddd;
  padding:10px;
  border-radius:4px;
}

.mini-link{
  margin-left:10px;
  font-size:12px;
  color:#fff;
  text-decoration:underline;
}
.status-badge{
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  font-weight:bold;
}

.status-box{
  padding:15px;
  border-radius:8px;
  font-size:18px;
  font-weight:bold;
  text-align:center;
  margin-bottom:20px;
}

.status-PENDENTE{ background:#444; color:#fff; }
.status-APROVADO{ background:#005f99; color:#fff; }
.status-EM_EXECUCAO{ background:#ff9800; color:#000; }
.status-PRONTO{ background:#2e7d32; color:#fff; }
.status-ENTREGUE{ background:#1b5e20; color:#fff; }
.status-RECUSADO{ background:#b71c1c; color:#fff; }
.status-CANCELADO{ background:#333; color:#aaa; }

.acompanhar-form{
  max-width:500px;
  background:#111;
  padding:20px;
  border:1px solid #222;
  border-radius:8px;
}

.card-os{
  margin-top:20px;
  background:#111;
  padding:20px;
  border:1px solid #222;
  border-radius:8px;
  color:#ddd;
}

.timeline{
  display:flex;
  justify-content:space-between;
  margin:20px 0;
}

.timeline-step{
  flex:1;
  text-align:center;
  padding:8px;
  border-bottom:3px solid #333;
  font-size:12px;
}

.timeline-step.active{
  border-color:#2e7d32;
  font-weight:bold;
  color:#2e7d32;
}

.update-box{
  background:#000;
  border:1px solid #333;
  padding:15px;
  border-radius:6px;
  margin-top:15px;
  color:#ddd;
}

.acompanhar-container{
  max-width:600px;
  margin:40px auto;
}

/* ===== USER MENU ===== */

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu::after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    width: 260px;   /* pode ajustar */
    height: 14px;   /* aumenta se ainda estiver difícil */
}

/* botão/nome do usuário */
.user-trigger,
.user-name-link {
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

/* dropdown */
.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;

    top: 100%;      /* em vez de calc(100% + 8px) */
    margin-top: 8px; /* se quiser manter espaçamento visual */

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);

    padding: 6px;
    z-index: 9999;

    /* estado fechado */
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    pointer-events: none;

    /* transição */
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0s linear 0.25s; /* ← delay no fechamento */
}

/* estado aberto */
.user-menu:hover .user-menu-dropdown {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;

    transition-delay: 0s; /* abre imediato */
}

/* links internos */
.user-menu-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.user-menu-dropdown a:hover {
    background: #f2f2f2;
}

/* ===== LOGIN DARK MODE ===== */

.auth-wrap{
  display:flex;
  justify-content:center;
  padding: 40px 15px;
}

.auth-card{
  width:100%;
  max-width: 420px;

  background: rgba(255,255,255,0.03); /* leve contraste, não branco */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;

  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  padding: 24px;
}

.auth-title{
  margin-bottom: 18px;
  font-weight: 600;
}

.auth-error{
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #ff6b6b;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.auth-form .form-group{
  margin-bottom: 14px;
}

.auth-form label{
  display:block;
  margin-bottom: 6px;
  font-weight: 600;
}

.auth-form input{
  width:100%;
  padding: 10px 12px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;

  color: inherit;
  outline: none;
}

.auth-form input:focus{
  border-color: rgba(255,255,255,0.3);
}

.auth-btn{
  width: 100%;
  padding: 10px 12px;

  border-radius: 10px;
  border: 0;

  background: rgba(255,255,255,0.08);
  color: inherit;
  font-weight: 700;
  cursor: pointer;

  transition: background .15s ease;
}

.auth-btn:hover{
  background: rgba(255,255,255,0.15);
}

.thumb-wrapper {
    position: relative;
    z-index: 10;
}



.thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.thumb-preview{
    display: none;
    position: absolute;

    top: -240px;   /* ajuste fino aqui */
    left: 60px;

    background: #111;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.4);
    z-index: 5000;
}

.thumb-preview img {
    width: 220px;
    height: auto;
    border-radius: 10px;
}

.thumb-wrapper:hover .thumb-preview {
    display: block;
}