/* Estilos Gerais */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

/* Estrutura de Fundo */
.background {
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100%;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Conteúdo Principal */
.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 1.2em;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* Container de Botões */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    max-width: 800px;
    width: 100%;
}

/* Estilos dos Botões */
.btn-wrapper {
    position: relative;
    width: calc(50% - 8px);
    transition: transform 0.3s ease;
}

.btn-wrapper:last-child:nth-child(odd) {
    width: calc(50% - 8px);
}

.btn {
    padding: 12px 20px 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
}

.btn:hover {
    background-color: #45a049;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Descrição dos Botões */
.btn-description {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(69, 160, 73, 0.9);
    color: white;
    padding: 15px;
    border-radius: 0 0 25px 25px;
    box-sizing: border-box;
    font-size: 14px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Efeitos Hover (Desktop) */
.btn-wrapper:hover {
    z-index: 10;
}

.btn-wrapper:hover .btn {
    border-radius: 25px 25px 0 0;
}

.btn-wrapper:hover .btn-description {
    transform: translateY(0);
    opacity: 1;
}
    

/* Controle de Colunas 
.btn-wrapper:hover ~ .btn-wrapper:nth-child(even) {
    transform: none;
}

.btn-wrapper:nth-child(odd):hover ~ .btn-wrapper:nth-child(odd),
.btn-wrapper:nth-child(even):hover ~ .btn-wrapper:nth-child(even) {
    transform: translateY(var(--desc-height));
}
    */

/* Ícones dos Botões */
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-text {
    flex-grow: 1;
}

/* Estilos para Mobile */
@media (max-width: 600px) {
    .btn-wrapper, .btn-wrapper:last-child:nth-child(odd) {
        width: 100%;
    }
    
    .btn-wrapper:hover ~ .btn-wrapper {
        transform: translateY(var(--desc-height));
    }
    
    /* Estilo quando descrição está aberta no mobile */
    .btn-wrapper.mobile-open .btn {
        border-radius: 25px 25px 0 0;
        background-color: #45a049;
    }
    
    .btn-wrapper.mobile-open .btn-description {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .btn-wrapper.mobile-open ~ .btn-wrapper {
        transform: translateY(var(--desc-height));
    }
}

/* Melhorias de Acessibilidade */
.btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Efeito de loading para evitar múltiplos cliques */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 3;
}
/* Botões de ação na lista de botões do admin */
.actions {
    display: flex;
    gap: 6px;
  }
  
  .actions button {
    padding: 4px 6px;
    font-size: 14px;
    width: auto;
    height: 30px;
    line-height: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .actions .edit {
    background: #ffc107;
    color: black;
    border: none;
  }
  
  .actions .delete {
    background: #f44336;
    color: white;
    border: none;
  }
  
  body {
    font-family: Arial, sans-serif;
    margin: 20px;
  }
  
  .form-group {
    margin-bottom: 10px;
  }
  
  input, button, select, textarea {
    padding: 8px;
    width: 100%;
    margin-top: 5px;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  
  li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    background: #fff;
  }
  
  .actions {
    display: flex;
    gap: 10px;
  }
  
  .actions button {
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
  }
  
  .actions .edit {
    background: #ffd966;
    border: none;
  }
  
  .actions .delete {
    background: #f44336;
    color: white;
    border: none;
  }
  
  #criarBox {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
  }
  
  #previewCrop {
    max-width: 100%;
    max-height: 300px;
    margin-top: 10px;
    display: none;
  }
  
