/* =============================================================================
   ESTILOS DAS PÁGINAS PÚBLICAS
   Agenda e Tabela de Preços
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Container Principal
   ----------------------------------------------------------------------------- */
.paginas-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.paginas-header {
    text-align: center;
    margin-bottom: 2rem;
}

.paginas-header h1 {
    color: #e91e63;
    margin-bottom: 0.5rem;
}

/* -----------------------------------------------------------------------------
   Calendário
   ----------------------------------------------------------------------------- */
.calendario {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.calendario-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e91e63;
    color: white;
    padding: 1rem;
}

.calendario-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.calendario-nav button:hover {
    background: rgba(255,255,255,0.3);
}

.dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8bbd0;
    padding: 0.5rem 0;
}

.dia-semana-nome {
    text-align: center;
    font-weight: bold;
    color: #880e4f;
    font-size: 0.85rem;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #eee;
}

.dia-cell {
    background: white;
    min-height: 90px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dia-cell:hover {
    background: #fce4ec;
}

.dia-cell.outro-mes {
    background: #f5f5f5;
    color: #aaa;
    cursor: default;
}

.dia-cell.today {
    background: #fff3e0;
}

.dia-cell .dia-numero {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.dia-cell.today .dia-numero {
    color: #e65100;
}

.dia-cell.selected {
    background: #fce4ec;
    box-shadow: inset 0 0 0 2px #e91e63;
}

/* -----------------------------------------------------------------------------
   Badges de Agendamento
   ----------------------------------------------------------------------------- */
.agendamento-badge {
    display: block;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agendamento-badge.nao-pago {
    background: #ffcdd2;
    color: #c62828;
    border-left: 3px solid #c62828;
}

.agendamento-badge.pago {
    background: #c8e6c9;
    color: #2e7d32;
    border-left: 3px solid #2e7d32;
}

.agendamento-badge.pendente {
    background: #fff3e0;
    color: #e65100;
    border-left: 3px solid #e65100;
}

/* -----------------------------------------------------------------------------
   Modal
   ----------------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 {
    color: #e91e63;
    margin-top: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input[type="date"] {
    cursor: pointer;
}

.btn-fechar {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.btn-fechar:hover {
    color: #333;
}

/* -----------------------------------------------------------------------------
   Botões
   ----------------------------------------------------------------------------- */
.btn-agendar {
    width: 100%;
    background: #e91e63;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-agendar:hover {
    background: #c2185b;
}

.btn-pix {
    background: #25d366;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    width: 100%;
}

.btn-pix:hover {
    background: #128c7e;
}

.btn-whatsapp {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.btn-pagamento {
    display: inline-block;
    background: #2196f3;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.btn-pagamento:hover {
    background: #1976d2;
}

.btn-agendar-servico {
    background: #e91e63;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-agendar-servico:hover {
    background: #c2185b;
}

.btn-copiar-pix {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-copiar-pix:hover {
    background: #1976d2;
}

/* -----------------------------------------------------------------------------
   Tabela de Preços
   ----------------------------------------------------------------------------- */
.tabela-precos {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.tabela-precos th {
    background: #e91e63;
    color: white;
    padding: 1rem;
    text-align: left;
}

.tabela-precos th:last-child {
    width: 120px;
    text-align: center;
}

.tabela-precos td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.tabela-precos td:nth-child(2) {
    text-align: right;
}

.tabela-precos td:last-child {
    text-align: center;
}

.tabela-precos tr:last-child td {
    border-bottom: none;
}

.tabela-precos tbody tr:hover {
    background: #fce4ec;
}

.preco {
    font-weight: bold;
    color: #2e7d32;
    font-size: 1.1rem;
}

.desconto {
    color: #e65100;
    font-size: 0.9rem;
}

.categoria-tag {
    background: #f8bbd0;
    color: #880e4f;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.3rem;
}

/* -----------------------------------------------------------------------------
   Info Pagamento
   ----------------------------------------------------------------------------- */
.info-pagamento {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-pagamento h3 {
    color: #1565c0;
    margin-top: 0;
}

.info-pagamento p {
    margin: 0.5rem 0;
    color: #333;
}

/* -----------------------------------------------------------------------------
   Responsivo
   ----------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .calendario-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .meu-agendamento {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tabela-precos th:last-child,
    .tabela-precos td:last-child {
        display: none;
    }
}

/* -----------------------------------------------------------------------------
   Meus Agendamentos
   ----------------------------------------------------------------------------- */
.info-meus-agendamentos {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-meus-agendamentos h3 {
    color: #e91e63;
    margin-top: 0;
    margin-bottom: 1rem;
}

.meus-agendamentos {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.meu-agendamento {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fce4ec;
    border-radius: 8px;
    border-left: 4px solid #e91e63;
}

.meu-agendamento.pago {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.meu-agendamento .info-agendamento {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meu-agendamento .cliente {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #333;
    width: 100%;
}

.meu-agendamento .servico {
    font-weight: bold;
    color: #333;
}

.meu-agendamento .data {
    color: #666;
}

.meu-agendamento .valor {
    font-weight: bold;
    color: #2e7d32;
}

.meu-agendamento .badge-pago {
    background: #4caf50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.meu-agendamento .status {
    margin-top: 0.3rem;
}

.badge-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-status.pendente {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ff9800;
}

.badge-status.confirmado,
.badge-status.aprovado {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.sem-agendamentos {
    text-align: center;
    padding: 1rem;
    color: #999;
    font-style: italic;
}

.btn-excluir-agendamento {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
}

.btn-excluir-agendamento:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

.btn-excluir-agendamento svg {
    width: 18px;
    height: 18px;
}

.total-box {
    background: #e8f5e9;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.total-box .valor {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2e7d32;
}

.filtro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #f8bbd0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filtro-header span {
    font-size: 0.9rem;
    color: #555;
}

.btn-novo-agendamento-pequeno {
    background: #e91e63;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.btn-novo-agendamento-pequeno:hover {
    background: #c2185b;
}

.btn-mostrar-todos {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-mostrar-todos:hover {
    background: #eee;
}
