﻿/* Layout generale */
html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.page-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    padding: 1rem;
}

    .sidebar .nav-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        color: #495057;
        margin-bottom: 0.5rem;
        border-radius: 4px;
        padding: 0.5rem 0.75rem;
        transition: all 0.2s ease-in-out;
        text-decoration: none;
        font-weight: 500;
    }

        .sidebar .nav-link i {
            font-size: 1.1rem;
            color: #6c757d;
            transition: color 0.2s;
        }

        .sidebar .nav-link:hover {
            background-color: #e9ecef;
            color: #0d6efd;
        }

            .sidebar .nav-link:hover i {
                color: #0d6efd;
            }

        .sidebar .nav-link.active {
            background-color: #82a0cd;
            color: #fff;
            font-weight: 600;
        }

            .sidebar .nav-link.active i {
                color: #fff;
            }

/* Contenuto */
.content {
    flex: 1;
    padding: 2rem;
    background-color: #f8f9fa;
}

.page-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Titoli */
h3 {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Lightbox full screen */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
    position: relative;
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

    .lightbox img:hover {
        transform: scale(1.03);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}