*{
    margin-top: 0;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    box-sizing: border-box;
 }

/* Fundo da página */
body {
    background: rgb(243, 195, 252);
    min-height: 100vh;
   
}

/* Título */
h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

/* Grid do formulário */
#grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

/* Cada campo */
#grid div {
    display: flex;
    flex-direction: column;
}

/* Labels */
label {
    margin-bottom: 5px;
    color: #555;
}

/* Inputs */
input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: 0.3s;
    width: 100%;
    max-width: 220px;
}

/* Efeito foco */
input:focus {
    border-color: rgb(218, 113, 234);
    outline: none;
    box-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
}

/* Botão ocupa largura total */
button {
    grid-column: span 2;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgb(218, 113, 234);
    color: white;
    font-size: 16px;
    
    cursor: pointer;
    transition: 0.3s;
}

/* Hover botão */
button:hover {
    background: rgb(218, 113, 234);
    transform: translateY(-2px);
}


/* MENU */
header{
    background: rgb(218, 113, 234);
    color: black;
    display: flex;
    padding: 10px;
    justify-content: space-between;
    height: 15vh;
    align-items: center;
}

header{
    background: rgb(255, 255, 255);
 }

 header nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 15vh;
    padding: 0px 5 px;
    max-width: 1200px;
    margin: 0 auto;
 }

 header nav ul{
   display: flex;
   gap: 70px;
   list-style: none;
 }

 header a{
   text-decoration: none;
   color: rgb(218, 113, 234);
   font-size: 1.2rem;
   padding: 8px 12px;
   border-radius: 5px;
  }

  header nav a:hover{
    background-color: rgb(234, 154, 246);
    color: white;
  }

 header img{
  width: 180px;
  margin-left: -180px;
 }


/* tabela preços/agendamneto */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* ===== CONTAINER ===== */
main {
    max-width: 1400px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    
}

/* agenamento tabela */
.tabela-container {
    width: 100%;
    overflow-x: auto; /* cria rolagem se a tabela ficar maior */
}

/* ===== TÍTULO ===== */

/* ===== TABELA ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== CABEÇALHO ===== */
th {
    background: rgb(218, 113, 234);
    color: white;
    padding: 15px;
    font-size: 1rem;
}

/* ===== CELULAS ===== */
td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

/* ===== LINHAS HOVER ===== */
tr:hover td {
    background: #f9f0fb;
    transition: 0.3s;
}

/* ===== LINKS AÇÕES ===== */
a {
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    
    margin: 0 3px;
}

/* EDITAR */
a[href*="editar"] {
    background: #4caf50;
    color: white;
}

/* DELETAR */
a[href*="deletar"] {
    background: #e74c3c;
    color: white;
}

/* HOVER BOTÕES */
a:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.2s;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {

    table {
        font-size: 0.85rem;
    }

    td, th {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }
}

/* centraliza a coluna de ações */
.acoes {
    text-align: center;
}

/* deixa os botões lado a lado */
.botoes-acoes {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* estilo base dos botões */
.btn-editar,
.btn-deletar {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* editar */
.btn-editar {
    background: #4caf50;
    color: white;
}

.btn-editar:hover {
    background: #3e8e41;
}

/* deletar */
.btn-deletar {
    background: #e74c3c;
    color: white;
}

.btn-deletar:hover {
    background: #c0392b;
}
