/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.language-selector select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

header {
    background: linear-gradient(135deg, #b8860b, #c0c0c0);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header img {
    height: 100px;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

header p {
    font-size: 1.2rem;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.header-buttons button {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #b8860b, #c0c0c0);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.header-buttons button:hover {
    background: linear-gradient(135deg, #daa520, #a9a9a9);
}

section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#servicos h2, #agendamento h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #b8860b;
}

#servicos ul {
    list-style: none;
    padding: 0;
}

#servicos li {
    background-color: #f0f0f0;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 1rem;
    font-weight: bold;
}

input, select, textarea {
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.password-container {
    position: relative;
    display: inline-block;
    width: 200px; /* Small width for the input */
}

.password-container input {
    width: 100%;
    padding-right: 35px; /* Space for the button */
    box-sizing: border-box;
}

.password-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px; /* Adjust vertical position */
}

.telefone-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.telefone-container select {
    flex: 0 0 200px;
}

.telefone-container input {
    flex: 1;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #b8860b, #c0c0c0);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background: linear-gradient(135deg, #daa520, #a9a9a9);
}

#toggle-calendario {
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

#toggle-calendario:hover {
    background-color: #45a049;
}

#toggle-calendario-admin {
    margin-top: 0.5rem;
    margin-left: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #b8860b, #c0c0c0);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#toggle-calendario-admin:hover {
    background: linear-gradient(135deg, #daa520, #a9a9a9);
}

#toggle-horarios {
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

#toggle-horarios:hover {
    background-color: #1976D2;
}

#toggle-servicos {
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: #FF69B4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

#toggle-servicos:hover {
    background-color: #FF1493;
}

#toggle-operadores {
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: #9C27B0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

#toggle-operadores:hover {
    background-color: #7B1FA2;
}

#horarios-container {
    margin: 1rem 0;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

#horarios-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

#servicos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.servico-disponivel {
    padding: 0.75rem;
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.servico-disponivel:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.horario-disponivel {
    padding: 0.75rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.horario-disponivel:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.horario-ocupado {
    padding: 0.75rem;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    opacity: 0.6;
}

.agendamento-item {
    border: 1px solid #ddd;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.agendamento-item h3 {
    margin: 0 0 0.5rem 0;
    color: #ff69b4;
}

.agendamento-item button {
    margin-right: 0.5rem;
    padding: 0.5rem;
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.agendamento-item button:hover {
    background-color: #ff1493;
}

#calendario-container {
    margin: 1rem 0;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendario-header h4 {
    margin: 0;
    color: #b8860b;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-btn {
    background: linear-gradient(135deg, #b8860b, #c0c0c0);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #daa520, #a9a9a9);
}

.semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dia, .dia-header, .vazio {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #333;
    border: 1px solid #ddd;
}

.dia-header {
    font-weight: bold;
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.dia.disponivel {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dia.disponivel:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dia.ocupado {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dia.ocupado:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dia.sem-horarios {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dia.sem-horarios:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.vazio {
    background-color: transparent;
}

#calendario-container-admin,
#calendario-container-admin-create {
    margin: 1rem 0;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #ddd;
    margin: 0.5rem 0;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.horario-item span {
    flex: 1;
}

.horario-item button {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.horario-item button:hover {
    background-color: #ff1493;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
    margin-top: 2rem;
}

/* Client Panel Styles */
.client-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.client-nav button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #b8860b, #c0c0c0);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.client-nav button:hover {
    background: linear-gradient(135deg, #daa520, #a9a9a9);
}

.client-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Estilos para o painel administrativo */

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    background-color: #f9f9f9;
}

.user-item button {
    margin-left: 10px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-content h2 {
    margin-top: 0;
    color: #b8860b;
}

.modal-content p {
    margin: 10px 0;
}

.modal-content button {
    margin: 5px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #b8860b, #c0c0c0);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background: linear-gradient(135deg, #daa520, #a9a9a9);
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    section {
        margin: 1rem;
        padding: 0.5rem;
    }

    input, select, textarea {
        font-size: 0.9rem;
    }

    button {
        font-size: 0.9rem;
    }

    .telefone-container select {
        flex: 0 0 50px;
    }

    .telefone-container input {
        flex: 0 0 70px;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}
