/* General Body and Container Styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    color: #333;
    height: 100%;
    padding-left: 300px; /* Same as the sidebar's width */
}

.dashboard-container {
    display: flex;
    height: 100vh;
    min-height: 100%;
}

.login_area{
    margin-left: -300px; /* shows login container in the centre */
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh; /* Set height to 100% of the viewport height */
    background-color: #2c2c2c;
    color: #f4f4f4;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #444;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.logo_head {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.2em;
    font-weight: 500;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.main-nav a{
    text-decoration: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Adjusted padding for a button-like feel */
    text-decoration: none;
    color: #f4f4f4; /* White text color */
    background-color: #555; /* A subtle gray background */
    transition: background-color 0.3s, color 0.3s;
    border-radius: 25px; /* Creates a pill-shaped button */
    margin-bottom: 15px; /* Increased space between buttons */
    font-size: 0.9em;
}

.nav-item i {
    margin-right: 15px;
}

.nav-item:hover {
    background-color: #0072C6; /* Hover effect with a hint of color */
    color: #fff;
}

.nav-item.active {
    background-color: #fff; /* White background for the active button */
    color: #2c2c2c; /* Dark text for the active button */
}

/* Main Content and Top Bar Styling */
.main-content {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.page-title {
    font-weight: 300;
    font-size: 2em;
}

.user-profile {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #666;
}

.user-profile i {
    margin-left: 10px;
}

/* Main Content and Top Bar Styling */
.main-content {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.page-title {
    font-weight: 300;
    font-size: 2em;
}

.user-profile {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #666;
}

.user-profile i {
    margin-left: 10px;
}

/* Card Grid Styling */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card h2 {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Specific Card Content Styling */
.recent-activity ul, .agendamentos ul, .prox-publicacoes ul, .last-logins ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-activity li, .agendamentos li, .prox-publicacoes li, .last-logins li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.recent-activity li:last-child, .prox-publicacoes li:last-child, .last-logins li:last-child {
    border-bottom: none;
}

.db-name, .user-name {
    font-weight: 500;
}

.update-date, .login-time {
    color: #888;
    font-size: 0.9em;
}

.em-aberto{
    color: #948f56;
    font-size: 0.9em;  
    font-style: italic;
}

.programado{
    color: #c05a5a;
    font-size: 0.9em;  
}

.cta-button {
    text-decoration: none;
    display: inline-block;
    background-color: #555;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    text-decoration: none;
    background-color: #0072C6;
}

/* Styling for General Form Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 8px; /* Slightly rounded corners */
    box-sizing: border-box; /* Ensures padding doesn't affect total width */
    background-color: #f9f9f9;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea{
    resize: vertical;
}

/* Style for focused inputs */
input:focus,
select:focus,
textarea:focus {
    border-color: #0072C6; /* Highlight border with a hint of color */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 114, 198, 0.3); /* Subtle blue glow */
}

/* Style for labels */
label {
    font-weight: 500;
    color: #555;
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* Style for submit button */
input[type="submit"],
.submit-button {
    background-color: #555;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

input[type="submit"]:hover,
.submit-button:hover {
    background-color: #0072C6;
}

.delete-button {
    background-color: #9e2929;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.delete-button:hover {
    background-color: #420d0e;
}

/* --- Radio Button Styling --- */
/* A container for the radio buttons to ensure they display horizontally */
.radio-group {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between the radio buttons */
    margin-bottom: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex; /* Aligns the radio and text nicely */
    align-items: center;
    cursor: pointer;
    margin-bottom: 0; /* Override the default label margin */
    user-select: none; /* Prevents text selection on click */
    gap: 5px; /* Add space between the radio button and the label text */
}

/* Hides the default radio button and creates a custom one */
.radio-group input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid #ccc;
    border-radius: 50%;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    transition: all 0.2s ease-in-out;
}

/* Styles the inner circle (the checked state) */
.radio-group input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
    background-color: #0072C6;
}

/* Scales up the inner circle when the radio is checked */
.radio-group input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Changes border color on hover */
.radio-group input[type="radio"]:hover {
    border-color: #0072C6;
}

/* Focus style similar to your text inputs */
.radio-group input[type="radio"]:focus {
    box-shadow: 0 0 0 2px rgba(0, 114, 198, 0.3);
    outline: none;
    border-color: #0072C6;
}

/* --- Checkbox Styling --- */
/* A container for the checkboxes to ensure they display nicely in a column or row */
.checkbox-group {
    display: flex;
    flex-direction: column; /* Stacks the checkboxes vertically */
    gap: 10px; /* Space between the checkbox items */
    margin-top: 10px;
}

.checkbox-group label {
    display: flex; /* Aligns the checkbox and text nicely */
    align-items: center;
    cursor: pointer;
    user-select: none; /* Prevents text selection on click */
    gap: 8px; /* Space between the custom checkbox and the label text */
    font-size: 1rem;
}

/* Hides the default checkbox and creates a custom one */
.checkbox-group input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    background-color: #fff;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid #ccc;
    border-radius: 4px; /* Square corners for a checkbox */
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    transition: all 0.2s ease-in-out;
}

/* Styles the checkmark inside the checkbox */
.checkbox-group input[type="checkbox"]::before {
    content: "✓"; /* Unicode checkmark symbol */
    width: 1em;
    height: 1em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: #0072C6; /* Blue background for the checkmark */
    color: #fff; /* White checkmark color */
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
    line-height: 1.2em;
    border-radius: 2px;
}

/* Scales up the checkmark when the checkbox is checked */
.checkbox-group input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Changes border color on hover */
.checkbox-group input[type="checkbox"]:hover {
    border-color: #0072C6;
}

/* Focus style similar to your text inputs */
.checkbox-group input[type="checkbox"]:focus {
    box-shadow: 0 0 0 2px rgba(0, 114, 198, 0.3);
    outline: none;
    border-color: #0072C6;
}

/* Changes the border and background of the checkbox when it's checked */
.checkbox-group input[type="checkbox"]:checked {
    border-color: #0072C6;
}

/* A container for the form to give it a card-like appearance */
.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 50px auto;
}

.erro_p{
	padding: 10px;
	background-color: #DDB4B4;
	border-radius: 10px;
}

.sucesso_p{
	padding: 10px;
	background-color: #bdddb4;
	border-radius: 10px;
}

a{
    text-decoration: none;
    color: #000;
}

.calendar-container {
    width: 80%;
    margin: 20px auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}
.calendar-header h2 {
    margin: 0;
}
.calendar-nav-btn {
    cursor: pointer;
    font-size: 2em;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}
.calendar-day {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #e6e6e6;
    text-align: center;
    min-height: 100px;
    position: relative;
}
.day-number {
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    top: 5px;
    left: 5px;
}
.event {
    font-size: 0.9em;
    background-color: #e0f7fa;
    margin-top: 20px;
    padding: 3px;
    border-radius: 5px;
    cursor: move;
}

.days-of-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
    font-weight: bold;
    color: #555;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
}

/* Style for today's date square */
.calendar-day.today {
    background-color: #e0f7fa; /* A light blue color */
    border: 2px solid #00796b; /* A prominent border */
    position: relative;
    z-index: 1; /* Bring to front so the border is visible */
}

/* Style for the day number inside the today square */
.calendar-day.today .day-number {
    color: #00796b; /* Match the border color */
}

/* Style for the day number inside the today square */
.today div {
    color: #004f46; /* Match the border color */
    border: 1px solid #002824;
}

.status-dot {
    font-size: 1.2em;
    line-height: 1;
    vertical-align: middle;
}

.status-dot.red {
    color: #ad0000;
}

.status-dot.gray {
    color: #7e7e7e;
}

.status-dot.yellow {
    color: #9f860d;
}

.status-dot.green {
    color: #00ae26;
}

.tabela_eventos{
    border-radius: 10px;
    border: 1px solid #CCC;
    padding: 10px;
    text-align: center;
}

.tabela_eventos tr:first-child{    
    font-weight: bold;
}

.tabela_eventos td{
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.img_preview{
    max-width: 150px;
}

.button_right{
    width: 100%;
    align-items: right;
    text-align: right;
}

/* Estilos da página de aplicação */
.details-grid-top {
    display: grid;
    max-width: 95%;
    grid-template-columns: 70% 15% 15%; 
    grid-auto-flow: column;
    gap: 20px;
    margin-bottom: 20px;
}

.buttons-pass-apli{
    text-align: center;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.button-pass-deac{
    cursor: not-allowed;
    background-color: rgb(156, 156, 156);
}

.buttons-pass-apli span:first-child{
    font-size: x-large;
    font-weight: 900;
}

.buttons-pass-apli span:last-child{
    color: #848484;
    font-style: italic;
    font-size: small;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.details-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
}
.details-item strong {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}
.details-item span {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}
.vote-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.vote-card h3 {
    margin-top: 0;
}

.nota{
    font-size: 40px;
    font-weight: bold;
}

.vote-card-neut{
    background-color: #8f8f8f; /* Fundo cinza claro para Votos */
}
.vote-card-neut h3,
.vote-card-neut div{    
    color: #4a4a4a;
}

.vote-card-pos{
    background-color: #e8f5e9; /* Fundo verde claro para Votos */
}
.vote-card-pos h3,
.vote-card-pos div{    
    color: #2e7d32;
}

.vote-card-neg{
    background-color: #ffcaca; /* Fundo vermelho claro para Votos */
}
.vote-card-neg h3,
.vote-card-neg div{    
    color: #7d2e2e;
}

.vote-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s;
}
.vote-positive {
    background-color: #4CAF50;
    color: white;
}
.vote-negative {
    background-color: #f44336;
    color: white;
}
.vote-button:hover {
    opacity: 0.9;
}
.document-viewer-container,
.comments-viewer-container {
    margin-top: 30px;
    border-top: 2px solid #ddd;
    padding-top: 20px;
}
.document-iframe-container {
    margin-top: 20px;
    padding-bottom: 55px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    height: 80vh; /* Altura grande para o visualizador */
}
.document-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.espaco_final{
    height: 50px;
}

.espaco_baixo{
    margin-bottom: 50px;
}

#save-status {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
}

.status-saving {
    background-color: #fff3cd; /* Amarelo claro */
    color: #856404; /* Amarelo escuro */
    border: 1px solid #ffeeba;
}

.status-success {
    background-color: #d4edda; /* Verde claro */
    color: #155724; /* Verde escuro */
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da; /* Vermelho claro */
    color: #721c24; /* Vermelho escuro */
    border: 1px solid #f5c6cb;
}

.status-refresh {
    background-color: #cfe2ff; /* Azul claro */
    color: #053c7a; /* Azul escuro */
    border: 1px solid #b7d8ff;
}

.visto{
    background-color: #e8f5e9;
}

.form-group{ 
    margin-bottom: 15px;
}
.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#csv-import-form-container {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#csv-import-form-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}
#csv-import-form-container input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
}
/* Estilo para o ícone de visualizado */
.viewed-icon {
    font-size: 16px; /* Tamanho discreto */
    color: #10b981; /* Uma cor verde suave (Tailwind green-500/600) */
    margin-left: 5px;
    vertical-align: middle;
}
#stats-panel {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}
.stat-card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 5px;
}
.stat-card p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}
.chart-container {
    grid-column: span 2; /* Faz os gráficos ocuparem 2 colunas */
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 300px;
    padding-bottom: 80px;
}
.chart-container h4 {
    text-align: center;
}
/* Estilo para o ícone de visualizado (mantido) */
.viewed-icon {
    font-size: 16px; /* Tamanho discreto */
    color: #10b981; /* Uma cor verde suave (Tailwind green-500/600) */
    margin-left: 5px;
    vertical-align: middle;
}

.buttons_top{
    margin-bottom: 15px;
}

.alerta_p {
    color: orange;
    font-weight: bold;
}

.template-area {
    width: 100%;
    min-height: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: monospace;
}
.token-list {
    background-color: #f3f4f6;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.token-list strong {
    color: #3b82f6;
}
.agendamentos{
    width: 70vw;
}
/* Estilos Essenciais para Tabela de Agendamento */
.schedule-container {
    max-height: 500px;
    max-width: 100%;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    overflow-x: auto; /* Permite a rolagem horizontal */
}
.schedule-table {
    width: auto;
    border-collapse: collapse;
    min-width: calc(80px + (14 * 100px)); 
}
.schedule-table th, .schedule-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
    min-width: 100px;
}

/* Coluna Fixa */
.fixed-column {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: #f7f7f7;
    font-weight: bold;
    min-width: 80px !important;
}
.schedule-table thead th{
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #eee;
    border-bottom: 1px solid #ddd;
}
.schedule-table thead th.fixed-column{
    z-index: 30;
    top: 0;
    left: 0;
    background-color: #e0e0e0;
}
.schedule-table thead th.fixed-column tr.fixed-row {
    z-index: 11; /* Acima de outras células fixas */
}

.fimsemana{
    background-color: #863939;
}
/* Estilos dos Checkboxes/Slots */
.slot-cell {
    position: relative;
    height: 40px;
}
.slot-cell input[type="checkbox"] {
    display: none; 
}
.slot-cell label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #f0f0f0; /* Padrão: Indisponível (cinza claro) */
    cursor: pointer;
    transition: background-color 0.1s;
    border: 1px #adadad solid;
}
/* ---------------------------------------------------------------------- */
/* ESTADOS ONDE EU NÃO ESTOU DISPONÍVEL (FUNDOS SÓLIDOS) */
/* ---------------------------------------------------------------------- */

/* 2) Se só uma outra pessoa estiver disponível, fica laranja sólido, mas pontilhado */
/* (EU = não checked) E (OUTROS = 1) */
.slot-cell:not(:has(input:checked))[data-editor-count="1"] label {
    background-color: #ffaa6e; /* Laranja Sólido */
}

/* 3) Se ao menos duas estiverem disponíveis, fica verde sólido */
/* (EU = não checked) E (OUTROS >= 2) */
.slot-cell:not(:has(input:checked))[data-editor-count]:not([data-editor-count="0"]):not([data-editor-count="1"]) label {
    background-color: #5db560; /* Verde Sólido */
}

/* ---------------------------------------------------------------------- */
/* ESTADOS ONDE EU ESTOU DISPONÍVEL (FUNDOS LISTRADOS) */
/* ---------------------------------------------------------------------- */

/* 1) Se só EU estiver disponível, fica amarelo listrado */
/* (EU = checked) E (OUTROS = 0) */
.slot-cell:has(input:checked)[data-editor-count="0"] label {
    /* Listras Amarelo Claro e Amarelo Escuro */
    background-image: repeating-linear-gradient(
        45deg,
        #fff493,
        #fff493 8px,
        #ffe170 8px,
        #ffe170 16px
    );
    background-color: #fff493; /* Fallback */
}

/* 4) Se ao menos duas pessoas estiverem disponíveis e uma delas for EU, fica verde listrado */
/* (EU = checked) E (OUTROS >= 1) */
.slot-cell:has(input:checked)[data-editor-count]:not([data-editor-count="0"]) label {
    /* Listras Verde Claro e Verde Escuro */
    background-image: repeating-linear-gradient(
        45deg,
        #90ee90,
        #90ee90 8px,
        #5db560 8px,
        #5db560 16px
    );
    background-color: #5db560; /* Fallback */
}

/* ---------------------------------------------------------------------- */
/* ESTADO AGENDADO (PRIORIDADE MÁXIMA) */
/* ---------------------------------------------------------------------- */

.schedule-table .slot-cell.booked-slot label {
    background-image: repeating-linear-gradient(
        45deg,
        #e74c3c,
        #e74c3c 8px,
        #a0382d 8px,
        #a0382d 16px
    )!important;
    cursor: not-allowed;
    border: 1px solid #c0392b !important; 
}

/* Legenda */
.signal-legend {
    font-size: 0.9em;
    padding: 10px 0;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
}
.legend-item {
    margin-right: 15px;
    display: flex;
    align-items: center;
}
.box {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    margin-right: 5px;
}
.default-box {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}
/* 1) SÓ EU: Amarelo Listrado */
.checked-box {
    /* Usando o gradiente principal para representar as listras */
    background-image: repeating-linear-gradient(
        45deg,
        #fff493,
        #fff493 8px,
        #ffe170 8px,
        #ffe170 16px
    );
    background-color: #fff493; /* Fallback */
    border-color: #cd9e27; /* Usando a cor de borda anterior para referência visual */
}

/* 2) SÓ UM OUTRO: Laranja Sólido */
.signal-one-other-free {
    background-color: #ffaa6e; /* Laranja Sólido */
}

/* 3) DOIS+ OUTROS: Verde Sólido */
.signal-others-free {
    background-color: #5db560; /* Verde Sólido */
}

/* 4) EU E OUTROS: Verde Listrado */
.signal-others-free-and-me {
    /* Usando o gradiente principal para representar as listras */
    background-image: repeating-linear-gradient(
        45deg,
        #90ee90,
        #90ee90 8px,
        #5db560 8px,
        #5db560 16px
    );
    background-color: #5db560; /* Fallback */
    border-color: #388E3C; /* Usando a cor de borda anterior para referência visual */
}

/* 5) AGENDADO POR ALGUÉM: Vermelho Listrado */
.booked-by-someone{
    /* Usando o gradiente principal para representar as listras */
    background-image: repeating-linear-gradient(
        45deg,
        #e74c3c,
        #e74c3c 8px,
        #a0382d 8px,
        #a0382d 16px
    );
    background-color: #e74c3c; /* Vermelho forte (Fallback) */
    border-color: #c0392b; 
}

.header-controls {
    padding: 10px 0;
}
.formulario_agenda{
    max-width: 100%;
    overflow-x: scroll;
}

/* CSS para o Calendário */
#calendario {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 dias da semana */
    gap: 5px;
    padding: 10px 0;
    text-align: center;
}

.nav-arrow {
    cursor: pointer;
    user-select: none;
    padding: 0 10px;
}

.day-name {
    font-weight: 500;
    color: #666;
    font-size: 0.8em;
}

.day-cell {
    padding: 8px 0;
    border-radius: 4px;
    cursor: default;
    position: relative;
    opacity: 0.5; /* Dias sem disponibilidade */
}

.day-cell.available {
    cursor: pointer;
    background-color: #f0f0f0;
    font-weight: 500;
    opacity: 1;
}

.day-cell.available:hover {
    background-color: #ddd;
}

.day-cell.selected {
    background-color: #007bff;
    color: white;
}

/* O pontinho cinza (indicador de disponibilidade) */
.day-cell.has-slot::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: #888; 
    border-radius: 50%;
}

/* Horários */
#horarios_disp {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.horario-slot {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.horario-slot.selected {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

/* Para o slot da tabela */
.schedule-table .slot-cell.booked-slot {
    background-color: #ff3333 !important; /* Vermelho forte */
    cursor: not-allowed;
}

/* Garante que o checkbox não apareça dentro da célula agendada */
.schedule-table .slot-cell.booked-slot input[type="checkbox"] {
    display: none; 
}

/* Estilo para o LABEL dentro da célula agendada */
.schedule-table .slot-cell.booked-slot label {
    background-color: transparent !important; /* O fundo é o da célula */
    border: 1px solid #4A2020;
    cursor: not-allowed !important;
    text-align: center;
    color: #4A2020; /* Cor escura para o texto/sinalização interna */
    content: 'X'; /* Você pode usar um 'X' ou um ícone no label */
}