/* static/css/style.css */

/* Importa a fonte Poppins do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* --- Cores Principais (Azul e Neutros para um visual clean e moderno) --- */
    --primary-color: #3F51B5; /* Azul Índigo (Indigo 500 - profissional e elegante) */
    --primary-dark-color: #303F9F; /* Azul Índigo mais escuro para hover/active */

    --secondary-color: #90A4AE; /* Cinza Azulado (Blue Grey 400 - neutro, clean, versátil) */
    --secondary-dark-color: #78909C; /* Cinza Azulado mais escuro */

    --accent-color: #4CAF50; /* Verde (Green 500 - fresco, natural, para destaque) */
    --accent-light-color: #81C784; /* Verde Claro (Green 300 - um tom mais claro do accent) */

    /* --- Cores Neutras (Mantidas para clareza e legibilidade) --- */
    --background-color: #f8f9fa; /* Cinza claro */
    --card-background-color: #ffffff; /* Branco puro */
    --text-color: #343a40; /* Cinza escuro para texto principal (excelente legibilidade) */
    --text-color-light: #6c757d; /* Cinza médio para texto secundário */
    --border-color: #dee2e6; /* Cinza muito claro para bordas */

    /* --- Sombras (Mantidas para profundidade sutil) --- */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-large: rgba(0, 0, 0, 0.25);

    /* --- Cores de Feedback (Distintas e claras) --- */
    --success-color: #4CAF50; /* Verde (Green 500 - para sucesso) */
    --success-dark-color: #388E3C;
    --danger-color: #F44336; /* Vermelho (Red 500 - para erros/perigo) */
    --danger-dark-color: #D32F2F;
    --warning-color: #FF9800; /* Laranja (Orange 500 - para avisos, distinto do amarelo) */
    --warning-dark-color: #F57C00;
    --info-color: #2196F3; /* Azul (Blue 500 - para informações) */
    --info-dark-color: #1976D2;

    /* --- Variáveis de Status Específicas (Alinhadas com as novas cores de feedback) --- */
    --status-pendente-bg: var(--warning-color);   /* Laranja para pendente */
    --status-confirmado-bg: var(--success-color); /* Verde para confirmado */
    --status-finalizado-bg: #9E9E9E;             /* Cinza neutro para finalizado */
    --status-cancelado-bg: var(--danger-color);   /* Vermelho para cancelado */
    /* --- Fim das variáveis de status --- */
}

/* --- Reset Básico e Estilos Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-dark) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh; /* Garante que o body ocupe a altura total da viewport */
    display: flex;
    flex-direction: column; /* Organiza header, main e footer em coluna */
    position: relative; /* Essencial para o z-index da marca d'água funcionar */
}

/* Estilo para o logo do sistema como marca d'água de fundo */
body::before {
    content: '';
    position: fixed; /* Fica fixo na tela */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/logo_sistema.png'); /* Caminho para o logo do sistema */
    background-size: cover; /* A imagem cobrirá toda a área, em tamanho grande */
    background-repeat: no-repeat;
    background-position: center center; /* Centraliza a imagem */
    opacity: 0.15; /* Opacidade aumentada para ser mais visível */
    z-index: -1; /* Garante que fique atrás de todo o conteúdo */
    pointer-events: none; /* Impede que a marca d'água interfira com cliques */
}

/* Contêiner genérico para limitar largura do conteúdo (usado no header e footer) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Garante que ocupe a largura disponível */
}

/* Regra global para todas as imagens (garante que não estouram o contêiner) */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* --- Estilos do Cabeçalho (Header) --- */
.header {
    background-color: var(--card-bg); /* Fundo branco para o cabeçalho */
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0; /* Impede que o header encolha */
    position: relative; /* Para posicionar o menu mobile */
    z-index: 100; /* Garante que o header esteja acima do conteúdo */
}

.header-container { /* Usa o .container para o conteúdo do header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas menores */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.empresa-logo {
    max-width: 60px;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 3px;
}

.header h1 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.menu-toggle {
    display: none; /* Esconde o checkbox */
}

.hamburger-icon {
    display: none; /* Esconde o ícone de hambúrguer por padrão no desktop */
    font-size: 1.8em;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1001; /* Garante que o ícone esteja acima de tudo */
}

/* --- Área de Conteúdo Principal --- */
.main-content-area {
    flex-grow: 1; /* Permite que o conteúdo principal ocupe o espaço restante */
    padding: 40px 20px;
    display: flex;
    justify-content: center; /* Centraliza o conteúdo horizontalmente */
    align-items: flex-start; /* Alinha o conteúdo ao topo, permitindo rolagem */
    width: 100%;
}

/* Contêineres de Card Principal (dashboard, login, config, agendar, etc.) */
.dashboard-container,
.login-form-container,
.config-company-container,
.config-profissional-container,
.config-horarios-container,
.agendar-container,
.client-profissionais-container {
    max-width: 1150px; /* Largura padrão para a maioria dos contêineres */
    width: 100%;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-medium);
    text-align: center;
    position: relative;
    margin: 0 auto; /* Centraliza o contêiner */
}

/* Ajustes de largura para contêineres específicos */
.login-form-container, .agendar-container, .config-profissional-container {
    max-width: 550px;
    padding: 35px;
}

/* Media Query para telas maiores (desktops e tablets) */
@media (min-width: 768px) { /* A partir de 768px de largura (tablets e desktops) */
    .config-profissional-container {
        max-width: 900px;
		padding: 35px;
    }
}

.config-company-container {
    max-width: 650px;
}
.config-horarios-container {
    max-width: 1100px; /* Mais largo para a tabela de horários */
}
.client-profissionais-container {
    max-width: 1200px; /* Mais largo para a listagem de profissionais do cliente */
}

/* --- Títulos e Mensagens --- */
.welcome-message {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.page-title {
    font-size: 2.8em;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* --- Mensagens Flash --- */
.flash-messages {
    margin-bottom: 25px;
}
.flash-message { /* Classe para mensagens individuais */
    padding: 12px 20px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid transparent; /* Borda padrão transparente */
    display: inline-block; /* Para centralizar mensagens curtas */
    max-width: 80%; /* Limita a largura para mensagens longas */
}
.flash-message.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.flash-message.danger { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.flash-message.warning { background-color: #fff3cd; color: #856404; border-color: #ffeeba; }
.flash-message.info { background-color: #d1ecf1; color: #0c5460; border-color: #bee5eb; }


/* --- Estilos para Botões Gerais --- */
.btn {
    display: inline-flex; /* Usa flex para alinhar ícone e texto */
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espaçamento entre ícone e texto */
    padding: 12px 25px;
    border-radius: 50px; /* Botões mais arredondados */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 150px; /* Largura mínima para botões */
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #003f7f);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), #1e7e34);
    color: white;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
.btn-secondary:hover {
    background: linear-gradient(45deg, #1e7e34, #155724);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger-color), #c82333);
    color: white;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}
.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 400;
    min-width: unset;
    box-shadow: none;
}
.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
    background: none;
    transform: none;
    box-shadow: none;
}

.btn-sm { /* Botões menores */
    padding: 8px 18px;
    font-size: 0.85em;
    min-width: unset;
}

.btn-info { /* ### NOVO BOTÃO ### */
    background-color: var(--info-color); /* Usa o azul ciano definido */
        color: var(--white-color); /* Texto branco */
        box-shadow: var(--shadow-medium);
}

.btn-info:hover {
    background-color: var(--info-dark-color); /* Usa o azul ciano mais escuro no hover */
        transform: translateY(-2px);
        box-shadow: var(--shadow-large);
    }

.btn-full-width {
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Estilos para Formulários Gerais --- */
.form-general {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

.form-group { /* Para agrupar label e input */
    text-align: left;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}

.form-input, .form-select, .form-textarea, .form-input-date, .form-input-time, .form-input-number {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus, .form-input-date:focus, .form-input-time:focus, .form-input-number:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-input-file {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-light);
    cursor: pointer;
    font-size: 0.95em;
    width: 100%;
    box-sizing: border-box;
}
.form-input-file::-webkit-file-upload-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}
.form-input-file::-webkit-file-upload-button:hover {
    background: #0056b3;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* --- Utilitários de Margem --- */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* Estilo para o logo do sistema no cabeçalho (se usado) */
.system-header-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: var(--border-radius);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo para o subtítulo do cabeçalho */
.header-subtitle {
    font-size: 1.1em;
    color: var(--text-light);
    margin-top: -20px;
    margin-bottom: 30px;
	text-align: center;
}

/* Estilo para os logos das empresas (nos cards, login, config) */
.company-logo {
    max-width: 150px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: var(--border-radius);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- Estilos Específicos para a Tela de Seleção de Empresas --- */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.company-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.company-info {
    flex-grow: 1;
    text-align: center;
    margin-bottom: 20px;
}

.company-card-logo {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: var(--border-radius);
    margin-left: auto;
    margin-right: auto;
}

.company-name {
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 0 0 8px;
    font-weight: 600;
}

.company-cnpj {
    font-size: 0.9em;
    color: var(--text-light);
    margin: 0;
}

.company-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.no-companies-message {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* --- Estilos Específicos para a Tela do Painel da Empresa --- */
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.dashboard-actions .btn {
    min-width: 220px; /* Botões maiores para ações principais */
    padding: 15px 30px;
    font-size: 1em;
    border-radius: var(--border-radius); /* Botões com cantos menos arredondados */
    box-shadow: 0 4px 10px var(--shadow-light);
}

.prof-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Grid responsivo para profissionais */
    gap: 25px;
    margin-top: 30px;
}

.prof-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-light);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.prof-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.prof-card-img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Fotos redondas */
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.prof-name {
    font-size: 1.5em;
    color: var(--text-dark);
    margin: 0 0 5px;
    font-weight: 600;
}

.prof-specialty {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.prof-services {
    margin-top: 10px;
    width: 100%;
    text-align: left;
    padding: 0 10px;
}

.services-title {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85em;
    color: var(--text-light);
}

.services-list li {
    margin-bottom: 3px;
    padding-left: 15px;
    position: relative;
}

.services-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.prof-card-actions {
    display: flex;
    flex-direction: column; /* Botões empilhados verticalmente */
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.prof-card-actions .btn {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 50px;
    min-width: unset;
    width: auto;
    margin: 0 auto;
}

/* --- Estilos Específicos para a Tela de Configuração de Horários --- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.styled-table thead th {
    background: var(--primary-color);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    border-bottom: 2px solid #0056b3;
}
.styled-table thead th[rowspan="2"] {
    vertical-align: middle;
}

.styled-table tbody td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.9em;
}

.styled-table tbody tr:nth-child(even) {
    background-color: var(--background-light);
}

.styled-table tbody tr:hover {
    background-color: var(--background-dark);
}

/* Estilo para inputs de tempo e número dentro da tabela */
.form-input-time, .form-input-number {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9em;
    box-sizing: border-box;
    text-align: center;
}
.form-input-time:focus, .form-input-number:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Estilo para o checkbox customizado */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 1em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Esconde o checkbox padrão */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Cria um checkbox customizado */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

/* Ao passar o mouse, adiciona um fundo cinza mais escuro */
.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* Quando o checkbox está marcado, muda a cor de fundo */
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cria o ícone de check (escondido por padrão) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Mostra o ícone de check quando marcado */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Estilo do ícone de check */
.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* --- Estilos Específicos para a Tela de Agendamento do Cliente --- */
.agendar-container {
    max-width: 800px;
    padding: 35px;
}

.horarios-title {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: left;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
}

.hora-btn {
    padding: 10px 5px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    color: var(--primary-color);
    background-color: var(--background-light);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9em;
}

.hora-btn:hover:not(.selecionado):not(.disabled) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.hora-btn.selecionado {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.hora-btn.disabled {
    background-color: #e0e0e0;
    color: #a0a0a0;
    border-color: #d0d0d0;
    cursor: not-allowed;
    opacity: 0.7;
}

.no-horarios-message {
    color: var(--danger-color);
    font-weight: 500;
    text-align: center;
    grid-column: 1 / -1;
    padding: 10px;
    background-color: #fef2f2;
    border-radius: var(--border-radius);
    border: 1px solid #fcdada;
}

.form-date-selection {
    margin-bottom: 25px;
    gap: 10px;
}

.form-agendamento {
    margin-top: 0;
}

.form-input-date, .form-select, .form-textarea {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-size: 1em;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* --- Estilos Específicos para a Tela de Listagem de Profissionais do Cliente --- */
.client-profissionais-container {
    max-width: 1000px;
    padding: 35px;
}

/* --- Estilos Específicos para a Tela de Configuração do Profissional --- */
.config-profissional-container {
    max-width: 95%;
}

.section-agendamentos {
    margin-top: 30px;
}

.prof-photo-preview {
    margin-bottom: 30px;
    text-align: center;
}

.current-prof-photo {
	display: block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow-medium);
    margin-bottom: 10px;
	margin-left: auto;
    margin-right: auto;
}

.photo-label {
    font-size: 0.9em;
    color: var(--text-light);
    margin: 0;
}

/* Estilos para o grid de checkboxes de cortes */
.cortes-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
    text-align: left;
}

.cortes-checkbox-grid .checkbox-container {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-light);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 40px;
}

.cortes-checkbox-grid .checkbox-container:hover {
    background-color: var(--background-dark);
    border-color: var(--primary-color);
}

.cortes-checkbox-grid .checkbox-container input:checked ~ .checkmark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Ajuste para o checkmark dentro do grid */
.cortes-checkbox-grid .checkmark {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Estilo para form-group-inline (para campos lado a lado) */
.form-group-inline {
    display: flex;
    gap: 15px;
    width: 100%;
}
.form-group-inline .form-group {
    flex: 1;
    margin-bottom: 0;
}
.form-group-inline .form-label {
    margin-bottom: 5px;
}

/* --- Estilos do Rodapé (Footer) --- */
.footer {
    background-color: var(--card-bg); /* Fundo branco para o rodapé */
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 10px var(--shadow-light);
    /* Removido: height: var(--footer-height); para permitir que o conteúdo empurre */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0; /* Impede que o footer encolha */
    margin-top: auto; /* Empurra o rodapé para o final da página */
}
.footer p {
    margin: 0;
    font-size: 0.9em;
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .header-container { /* Ajusta o container do header */
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .dashboard-container,
    .login-form-container,
    .config-company-container,
    .config-profissional-container {
        max-width: 550px; /* Volta para o tamanho menor em telas médias/pequenas */
    }
    .config-horarios-container,
    .agendar-container,
    .client-profissionais-container {
        padding: 30px 20px;
        max-width: 95%; /* Ajusta a largura máxima para telas menores */
    }
    .dashboard-actions {
        flex-direction: column;
        align-items: center;
    }
    .dashboard-actions .btn {
        min-width: 100%;
        max-width: 300px; /* Limita a largura em telas menores */
    }
    .prof-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .styled-table thead th, .styled-table tbody td {
        padding: 10px 5px;
        font-size: 0.85em;
    }
    .horarios-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }
    .cortes-checkbox-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas muito pequenas */
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 1.5em;
    }
    .main-nav a {
        font-size: 0.9em;
        padding: 6px 10px;
    }
    .page-title {
        font-size: 2em;
    }
    .welcome-message {
        font-size: 1.8em;
    }
    .system-header-logo {
        max-width: 150px;
        height: auto;
    }
    .prof-list {
        grid-template-columns: 1fr; /* Uma coluna em telas de celular */
    }
    .prof-card-img {
        width: 100px;
        height: 100px;
    }
    .prof-name {
        font-size: 1.3em;
    }
    .prof-card-actions .btn {
        font-size: 0.8em;
        padding: 8px 15px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
        min-width: unset;
    }
    /* Estilos específicos para a tabela em telas pequenas (configurar_horarios) */
    .styled-table, .styled-table tbody, .styled-table tr, .styled-table td {
        display: block;
        width: 100%;
    }
    .styled-table thead {
        display: none;
    }
    .styled-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        box-shadow: 0 2px 8px var(--shadow-light);
        background-color: var(--card-bg);
    }
    .styled-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px dashed var(--border-color);
    }
    .styled-table td:last-child {
        border-bottom: 0;
    }
    .styled-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-dark);
        text-align: left;
    }
    .checkbox-container {
        margin-left: unset;
        margin-right: unset;
        display: inline-block;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    .horarios-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    .hora-btn {
        padding: 8px 3px;
        font-size: 0.85em;
    }
    .form-group-inline {
        flex-direction: column;
        gap: 10px;
    }
	.config-profissional-container {
        max-width: 95%; /* Ocupa 95% da largura da tela em celulares */
    }
}

/* --- Estilos para a tela de Visualizar Agendamentos (Cards) --- */
.section-agendamentos {
    margin-top: 30px;
}

.agendamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Cria uma grade responsiva */
    gap: 20px; /* Espaçamento entre os cards */
    margin-top: 20px;
}

.agendamento-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: transform 0.2s ease-in-out;
}

.agendamento-card:hover {
    transform: translateY(-5px);
}

.agendamento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas pequenas */
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.agendamento-date,
.agendamento-time {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px; /* Espaçamento entre ícone e texto */
    margin-bottom: 5px; /* Espaçamento entre data e hora em telas pequenas */
}

.agendamento-date i,
.agendamento-time i {
    color: var(--primary-color); /* Use sua cor primária */
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px; /* Mais arredondado */
    font-size: 0.8em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-left: auto; /* Empurra para a direita */
}

/* Cores para os status (ajuste conforme sua paleta) */
.status-marcado { background-color: #007bff; } /* Azul */
.status-confirmado { background-color: #28a745; } /* Verde */
.status-concluido { background-color: #6c757d; } /* Cinza */
.status-cancelado { background-color: #dc3545; } /* Vermelho */
/* Adicione outros status conforme necessário */

.agendamento-body p {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #555;
    display: flex;
    align-items: flex-start; /* Alinha o ícone ao topo do texto */
    gap: 10px;
}

.agendamento-body p i {
    color: var(--secondary-color); /* Use sua cor secundária */
    font-size: 1.1em;
    margin-top: 2px; /* Ajuste fino para alinhar o ícone */
}

.agendamento-body p strong {
    color: #333;
}

.agendamento-obs {
    font-style: italic;
    color: #777;
    border-top: 1px dashed #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.agendamento-actions {
    display: flex;
    justify-content: flex-end; /* Alinha os botões à direita */
    gap: 10px;
    margin-top: auto; /* Empurra as ações para o final do card */
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.agendamento-actions .btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 0.85em;
}

/* Responsividade básica para agendamento-header */
@media (max-width: 600px) {
    .agendamento-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .status-badge {
        margin-left: 0; /* Remove o auto-margin em telas pequenas */
        margin-top: 10px; /* Adiciona espaço acima do badge */
    }
}

/* --- Botão de Ação no Topo (Cadastrar Nova Empresa) --- */
.action-buttons-top {
    text-align: center;
    margin: 20px 0 30px 0;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-medium);
}

.btn-success:hover {
    background-color: var(--success-dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

/* --- Container do Formulário de Cadastro --- */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.form-card {
    background-color: var(--card-background-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
    max-width: 500px;
    width: 100%;
}

.form-card .page-title {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-card .header-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color-light);
    font-size: 0.95em;
}

/* --- Estilos para Campos de Formulário --- */
.form-general {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-help {
    font-size: 0.85em;
    color: var(--text-color-light);
    margin-top: 5px;
}

/* --- Botões de Ação do Formulário --- */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.mt-10 {
    margin-top: 10px;
}

/* --- Mensagem de "Nenhuma Empresa" --- */
.no-companies-message {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-color-light);
    margin-top: 40px;
}

.no-companies-message a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* --- Logo Grande para Páginas de Aviso --- */
.company-logo-large {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

/* --- Caixa de Informação --- */
.info-box {
    background-color: var(--background-color);
    border-left: 4px solid var(--info-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.info-box h3 {
    color: var(--info-color);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.info-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--info-color);
    font-weight: bold;
}

/* --- Alerta de Informação (para clientes) --- */
.alert-info {
    background-color: #e7f3ff;
    color: var(--text-color-dark);
    border: 1px solid var(--info-color);
}

/* --- Espaçamento Superior --- */
.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

/* --- Centralizar Texto --- */
.text-center {
    text-align: center;
}