/* Font e stili generici */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    user-select: none;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

input,
textarea {
    user-select: text;
}

/* Contenuto e validazione */
.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Calendario */
.calendar-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.calendar-day-col {
    flex: 1;
}

.calendar-cell {
    min-height: 140px;
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    padding: 8px;
    text-align: left;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-cell.disabled {
    background-color: #eee;
    color: #999;
    pointer-events: none;
}

.calendar-cell.empty {
    background-color: transparent;
    border: none;
}

.calendar-day-number {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 1rem;
}

/* Appuntamenti */
.appointments-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    max-height: 120px;
}

.appointment-item {
    background-color: #e6f0ff;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-filled {
    background-color: #d4edda; /* verde chiaro */
    border-color: #c3e6cb; /* bordi verdi */
}

/* Rimuove il contorno solo dal pulsante di logout */
.logout-btn:focus {
    outline: none;
    box-shadow: none;
}
