.dev-badge{
background:#C98B73;
color:white;
padding:6px 16px;
border-radius:20px;
font-size:13px;
font-weight:bold;
}

.dev-main{
padding:60px 0 80px;
display:flex;
flex-direction:column;
gap:28px;
}

.dev-card{
background:white;
border-radius:16px;
padding:35px;
box-shadow:0 4px 20px rgba(0,0,0,0.07);
}

.dev-card h2{
font-size:20px;
color:#3E4348;
margin-bottom:10px;
display:flex;
align-items:center;
gap:14px;
}

.dev-desc{
color:#888;
font-size:14px;
margin-bottom:18px;
}

.dev-form-row{
display:flex;
gap:12px;
flex-wrap:wrap;
align-items:center;
}

.dev-form-row input{
flex:1;
min-width:200px;
padding:11px 14px;
border:1px solid #ddd;
border-radius:8px;
font-size:15px;
outline:none;
transition:0.3s;
}

.dev-form-row input:focus{
border-color:#7A9E7E;
box-shadow:0 0 0 2px rgba(122,158,126,0.2);
}

.dev-btn{
padding:11px 20px;
background:#7A9E7E;
color:white;
border:none;
border-radius:8px;
font-weight:bold;
font-size:14px;
cursor:pointer;
transition:0.3s;
white-space:nowrap;
}

.dev-btn:hover{
background:#5e7f61;
}

.dev-btn-outline{
background:white;
color:#7A9E7E;
border:2px solid #7A9E7E;
}

.dev-btn-outline:hover{
background:#f0f7f0;
}

.dev-btn-danger{
background:#C98B73;
}

.dev-btn-danger:hover{
background:#b57860;
}

.dev-btn-sm{
padding:7px 14px;
font-size:13px;
}

.dev-status{
margin-top:12px;
font-weight:bold;
font-size:14px;
min-height:20px;
}

.dev-table-wrap{
overflow-x:auto;
margin-top:10px;
}

.dev-table{
width:100%;
border-collapse:collapse;
font-size:15px;
}

.dev-table th{
background:#F5F1EA;
color:#3E4348;
padding:12px 16px;
text-align:left;
font-weight:bold;
}

.dev-table td{
padding:12px 16px;
border-bottom:1px solid #f0ece8;
color:#3E4348;
}

.dev-table tr:last-child td{
border-bottom:none;
}

.dev-table tr:hover td{
background:#faf8f6;
}


/* ================================
   CONFIGURACOES — estilos compartilhados
   ================================ */

.cfg-select{
padding:11px 14px;
border:1px solid #ddd;
border-radius:8px;
font-size:15px;
background:white;
color:#3E4348;
outline:none;
cursor:pointer;
transition:0.3s;
}

.cfg-select:focus{
border-color:#7A9E7E;
box-shadow:0 0 0 2px rgba(122,158,126,0.2);
}

.cfg-textarea{
width:100%;
min-height:130px;
padding:12px 14px;
border:1px solid #ddd;
border-radius:8px;
font-size:15px;
font-family:inherit;
outline:none;
resize:vertical;
transition:0.3s;
box-sizing:border-box;
}

.cfg-textarea:focus{
border-color:#7A9E7E;
box-shadow:0 0 0 2px rgba(122,158,126,0.2);
}


/* SLOTS DE IMAGEM */

.dev-slots{
display:flex;
flex-direction:column;
gap:20px;
margin-top:10px;
}

.dev-slot{
display:flex;
gap:24px;
align-items:flex-start;
padding:20px;
background:#faf8f6;
border-radius:12px;
border:1px solid #f0ece8;
}

.dev-slot-preview{
flex-shrink:0;
width:140px;
height:100px;
border-radius:10px;
overflow:hidden;
background:#eee;
}

.dev-slot-preview img{
width:100%;
height:100%;
object-fit:cover;
}

.dev-slot-info{
flex:1;
}

.dev-slot-label{
font-weight:bold;
color:#3E4348;
margin-bottom:4px;
}

.dev-slot-id{
font-size:13px;
color:#888;
}

.dev-slot-id code{
background:#F5F1EA;
padding:2px 6px;
border-radius:4px;
font-family:monospace;
}


/* ================================
   EDITOR DE TEXTOS
   ================================ */

.texto-grupo{
border:1px solid #f0ece8;
border-radius:12px;
margin-bottom:10px;
overflow:hidden;
}

.texto-grupo-summary{
background:#F5F1EA;
padding:14px 20px;
font-weight:bold;
font-size:15px;
color:#3E4348;
cursor:pointer;
list-style:none;
display:flex;
align-items:center;
gap:10px;
user-select:none;
}

.texto-grupo-summary::-webkit-details-marker{ display:none }

.texto-grupo-summary::before{
content:'▶';
font-size:10px;
color:#C98B73;
transition:transform 0.2s;
flex-shrink:0;
}

.texto-grupo[open] .texto-grupo-summary::before{
transform:rotate(90deg);
}

.texto-grupo-summary:hover{
background:#ede8e0;
}

.texto-grupo-body{
padding:20px;
display:flex;
flex-direction:column;
gap:14px;
background:white;
}

.texto-campo{
display:flex;
flex-direction:column;
gap:5px;
}

.texto-label{
font-size:11px;
font-weight:bold;
color:#aaa;
text-transform:uppercase;
letter-spacing:0.5px;
}

.texto-input-linha{
width:100%;
padding:10px 14px;
border:1px solid #ddd;
border-radius:8px;
font-size:15px;
outline:none;
transition:0.3s;
box-sizing:border-box;
font-family:inherit;
}

.texto-input-linha:focus{
border-color:#7A9E7E;
box-shadow:0 0 0 2px rgba(122,158,126,0.2);
}


/* ================================
   RESPONSIVO — páginas admin
   ================================ */

@media(max-width:768px){

  /* Header: h1 + nav empilham */
  header .container{
    flex-wrap:wrap;
    gap:10px;
  }

  /* Nav links ficam menores */
  header nav a{
    margin-left:0;
    font-size:13px;
  }

  /* Form rows empilham verticalmente */
  .dev-form-row{
    flex-direction:column;
  }

  .dev-form-row input,
  .dev-form-row .cfg-select,
  .dev-form-row .dev-btn{
    width:100%;
    min-width:unset;
  }

  /* Slot: preview em cima, info embaixo */
  .dev-slot{
    flex-direction:column;
  }

  .dev-slot-preview{
    width:100%;
    height:160px;
  }

  /* Título de card com badge */
  .dev-card h2{
    flex-wrap:wrap;
    gap:10px;
  }

}

@media(max-width:600px){

  .dev-main{
    padding:30px 0 50px;
  }

  .dev-card{
    padding:22px 18px;
    border-radius:12px;
  }

  .dev-card h2{
    font-size:17px;
  }

  .dev-table th,
  .dev-table td{
    padding:10px 10px;
    font-size:13px;
  }

}
