/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Estilos para a página de agendamento (visitante) */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}
.visitor-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
h2 {
    text-align: center;
    color: #333;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}
select, input[type="date"], input[type="time"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-submit:hover {
    background-color: #4cae4c;
}

/* Estilos para a página do administrador */
.admin-layout {
    display: flex;
    background-color: #f0f2f5;
}
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}
.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ecf0f1;
}
.sidebar a {
    display: block;
    color: #bdc3c7;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.sidebar a:hover, .sidebar a.active {
    background-color: #34495e;
    color: white;
}
.main-content {
    flex-grow: 1;
    padding: 30px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header h1 {
    margin: 0;
    color: #333;
}
.agenda-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.agenda-table th, .agenda-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.agenda-table th {
    background-color: #4a90e2;
    color: white;
}
.agenda-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.btn-acao {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}
.btn-editar { background-color: #f39c12; }
.btn-excluir { background-color: #e74c3c; }



/* ... (Seu CSS anterior) ... */

/* Estilos do Calendário */
.calendar-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-header h2 {
    margin: 0;
    color: #34495e;
}
.calendar-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.5em;
    padding: 5px 10px;
}
.calendar-grid {
    width: 100%;
    border-collapse: collapse;
}
.calendar-grid th, .calendar-grid td {
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    vertical-align: top;
    height: 120px;
    position: relative;
}
.calendar-grid th {
    background-color: #f2f2f2;
    color: #555;
    font-weight: bold;
}
.day-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #34495e;
    display: block;
    margin-bottom: 5px;
}
.appointment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    text-align: left;
}
.appointment-item {
    background-color: #4a90e2;
    color: white;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.empty-day {
    background-color: #f9f9f9;
}
.today {
    background-color: #e6f7ff;
    border: 2px solid #4a90e2;
}

/* Estilos para o Calendário do Cliente (dias ocupados) */
.client-calendar .calendar-grid td.occupied-day {
    background-color: #e74c3c !important; /* Vermelho para dias ocupados */
    color: white !important;
    cursor: not-allowed;
    pointer-events: none; /* Desabilita o clique */
}
.client-calendar .calendar-grid td.available-day {
    background-color: #d4edda !important; /* Verde para dias disponíveis */
    cursor: pointer;
}

/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

/* Estilos para o Layout do Administrador */
.admin-layout {
    display: flex;
}
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}
.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ecf0f1;
}
.sidebar a {
    display: block;
    color: #bdc3c7;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.sidebar a:hover, .sidebar a.active {
    background-color: #34495e;
    color: white;
}
.main-content {
    flex-grow: 1;
    padding: 30px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header h1 {
    margin: 0;
    color: #333;
}
.agenda-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.agenda-table th, .agenda-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.agenda-table th {
    background-color: #4a90e2;
    color: white;
}
.agenda-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.btn-acao {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}
.btn-editar { background-color: #f39c12; }
.btn-excluir { background-color: #e74c3c; }

/* Estilos para a página de agendamento (visitante) */
.visitor-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}
select, input[type="date"], input[type="time"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-submit:hover {
    background-color: #4cae4c;
}

/* Estilos do Calendário */
.calendar-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-header h2 {
    margin: 0;
    color: #34495e;
}
.calendar-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.5em;
    padding: 5px 10px;
}
.calendar-grid {
    width: 100%;
    border-collapse: collapse;
}
.calendar-grid th, .calendar-grid td {
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    vertical-align: top;
    height: 120px;
    position: relative;
    box-sizing: border-box;
}
.calendar-grid th {
    background-color: #f2f2f2;
    color: #555;
    font-weight: bold;
}
.day-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #34495e;
    display: block;
    margin-bottom: 5px;
}
.appointment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    text-align: left;
}
.appointment-item {
    background-color: #4a90e2;
    color: white;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.empty-day {
    background-color: #f9f9f9;
}
.today {
    background-color: #e6f7ff;
    border: 2px solid #4a90e2;
}

/* Estilos para o Calendário do Cliente (dias ocupados) */
.client-calendar .calendar-grid td.occupied-day {
    background-color: #e74c3c !important;
    color: white !important;
    cursor: not-allowed;
    pointer-events: none;
}
.client-calendar .calendar-grid td.available-day {
    background-color: #d4edda !important;
    cursor: pointer;
}
/* ... (Seu CSS anterior) ... */

/* Novo CSS para o layout de duas colunas */
.agendamento-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.colunas-agendamento-container {
    display: flex;
    gap: 30px; /* Espaço entre as colunas */
    width: 100%;
    max-width: 1200px; /* Largura máxima para centralizar o conteúdo */
}

.coluna-formulario {
    flex-basis: 30%; /* Ocupa 30% da largura */
    flex-grow: 1; /* Cresce para ocupar o espaço disponível */
}

.coluna-calendario {
    flex-basis: 70%; /* Ocupa 70% da largura */
    flex-grow: 1;
}

/* Garante que o container do formulário se ajuste ao novo layout */
.coluna-formulario .container {
    margin: 0;
    width: 100%;
}

/* Responsividade para telas menores */
@media (max-width: 900px) {
    .colunas-agendamento-container {
        flex-direction: column; /* As colunas se empilham em telas pequenas */
        gap: 20px;
    }
}
/* Estilos para o Calendário do Cliente (dias ocupados) */
.client-calendar .calendar-grid td.occupied-day {
    /* ... (seu código anterior) ... */
    cursor: not-allowed;
}

.client-calendar .calendar-grid td.available-day {
    /* ... (seu código anterior) ... */
    cursor: pointer;
}

.client-calendar .calendar-grid td.selected {
    background-color: #3498db !important;
    color: white !important;
    border: 2px solid #2980b9;
}