/* CSS variables are now in design-system.css */

body {
    font-family: 'Inter', sans-serif;
}

/* Stile per il layout principale dopo il login */
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.main-container {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    transition: width 0.25s ease, transform 0.25s ease;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    /* Styles now in design-system.css */
}

/* Compensa il contenuto per la sidebar fissa */
.content {
    margin-left: 280px;
    transition: margin-left 0.25s ease;
}

/* Mini sidebar: solo icone */
.sidebar.sidebar-mini {
    width: 64px;
}
/* Sidebar completamente nascosta (tablet touch) */
.sidebar.sidebar-hidden {
    width: 0;
    padding: 0;
}

/* Mobile: sidebar come overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
.sidebar-overlay.active {
    display: block;
}

.content {
    flex-grow: 1;
    padding: 30px;
    background-color: var(--background-color);
    transition: padding 0.25s ease;
    min-width: 0; /* Evita overflow su flex */
}

/* La sidebar mini è gestita via JS con classe .sidebar-mini */

@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px !important;
        transform: translateX(-100%);
        z-index: 200;
    }
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    .content {
        padding: 15px;
    }
}

/* Stili per la barra superiore */
.header-nav {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 56px;
    /* Background and border now in design-system.css */
}

/* Compensa l'altezza della header fissa */
.main-container {
    margin-top: 56px;
}

.sidebar {
    top: 56px !important;
    height: calc(100vh - 56px) !important;
}

.logo-container {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-container img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

/* Layout per pagine non autenticate (login, etc) */
.unauthenticated-body {
    background-color: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Dental Chart Styles */
.tooth-svg {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 50px;
    height: 50px;
}

@media (max-width: 992px) {
    .tooth-svg {
        width: clamp(28px, 5vw, 42px);
        height: clamp(28px, 5vw, 42px);
        margin: 2px;
    }
    #quadrant_1, #quadrant_2, #quadrant_3, #quadrant_4 {
        flex-wrap: wrap;
        justify-content: center !important;
    }
}

.tooth-svg:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.tooth-svg circle {
    transition: fill 0.2s ease-in-out;
}

.dental-chart-display .tooth-svg {
    cursor: default; /* No pointer for display mode */
}

.dental-chart-display .tooth-svg:hover {
    transform: none;
    box-shadow: none;
}

#calendar,
#dashboard-calendar {
    max-height: 70vh; /* Adjust as needed, e.g., 70% of viewport height */
    overflow-y: auto;
}

/* Optional: Adjust FullCalendar's internal height if needed */
.fc .fc-view-harness {
    max-height: 100%; /* Ensure the view harness respects container height */
}

/* Stili per Tasks (Cose da Fare) */
.task-container {
    max-height: 400px;
    overflow-y: auto;
}

.task-container .list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.task-container .list-group-item:hover {
    border-left-color: var(--color-primary);
}

.task-checkbox {
    cursor: pointer;
    width: 1.2em;
    height: 1.2em;
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}

.delete-task-btn {
    padding: 0.25rem 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.delete-task-btn:hover {
    opacity: 1;
}

/* Badge task status colors */
.badge.bg-warning {
    color: #000;
}

.badge.bg-info {
    color: #000;
    background-color: #0dcaf0 !important;
}

.task-container .d-flex.gap-2 {
    gap: 0.5rem !important;
}