@import "popup.css";
@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');
body{margin: 0;}
:root {
    --main-maxwidth: 900px;
    --colore-principale: #3498db;
    --color-blue-original: #59a9fd;   /* Originale */
    --color-indigo: #8b59fd; /* Variante 1 */
    --color-teal: #59fdb2;   /* Variante 2 */
    --color-amber: #fdb359;  /* Variante 3 */
    --color-blue: #3b82f6;   /* Blu Professionale */
    --color-green: #10b981;  /* Verde Smeraldo */
    --color-yellow: #f59e0b; /* Giallo Ambra Intenso */
    --font-principale: "Sour Gummy", sans-serif;
    --spaziatura-grande: 2rem;
}


/* ==========================================================
   1. MAIN HEADER SECTION
   ==========================================================
*/

body, button {
    font-family: "Sour Gummy", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0;
}

.main-header {
    background-color: #59a9fd;
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: solid 4px #ffeb3b;
    width: 100%;
    position: relative;
    z-index: 1000; /* Priorità massima */
}

.header-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

/* Icona Sinistra */
.header-icon-left img {
    height: 60px;
    min-width: 60px;
    transition: opacity 0.5s ease-in-out;
}

/* Titolo Centrale (Netstars) */
.site-title img {
    height: 35px;
    display: block;
}

/* Navigazione Desktop */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.nav-item:hover {
    opacity: 0.8;
}


@media (max-width: 860px) {
    .desktop-nav, .user-section {
        /*display: none;*/
    }
}

/* Stile del pulsante avatar che ospita l'SVG */
.avatar-button {
    background: #ffffff;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: visible; /* Assicura che la stella possa risaltare */
}

.avatar-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(89, 169, 253, 0.2);
}

/* Wrapper interno per gestire il ritaglio circolare */
.avatar-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dimensionamento dell'SVG */
.avatar-placeholder-svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-ornament-right {
        display: none;
    }
}


/* ==========================================================
   2. MAIN TOOLBAR SECTION
   ==========================================================
*/

.main-toolbar {
    background-color: #ffffff;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 15px auto;
    width: calc(100% - 40px);
    max-width: 861px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid #eef2f7;
    position: relative;
    z-index: 900;
}

.toolbar-dynamic-content {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

/* Pulsanti Toolbar */
.add-event-button,
.btn-toolbar-group {
    background-color: #59a9fd;
    color: white;
    border: none;

    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: inherit;
}

.add-event-button:hover,
.btn-toolbar-group:hover {
    background-color: #4095ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 169, 253, 0.2);
}

/* --- PULSANTE PDF (NUOVO) --- */
.btn-pdf-export {
    background-color: #ef4444; /* Rosso premium per PDF */
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.btn-pdf-export:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

/* Gruppi Filtri */
.main-toolbar .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.main-toolbar .filter-group label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-toolbar .filter-group select,
.main-toolbar .filter-group input {
    background-color: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #1e293b;
    transition: all 0.3s;
    font-family: inherit;
}

.main-toolbar .filter-group select:focus,
.main-toolbar .filter-group input:focus {
    border-color: #59a9fd;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(89, 169, 253, 0.1);
}

@media (max-width: 768px) {
    .main-toolbar {
        width: calc(100% - 20px);
        padding: 12px;
    }


}


/* ==========================================================
   3. MAIN CONTENT SECTION
   ==========================================================
*/

.main-content {
    margin: 10px auto 20px auto;
    width: var(--main-maxwidth);
    box-sizing: border-box;
    padding: 1rem;
}

@media(max-width:800px) {
    .main-content{ width:100%; }
}


/* ==========================================================
   4. MAIN FOOTER SECTION
   ==========================================================
*/

.main-footer-section {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 30px 0;
    margin-top: 50px;
    width: 100%;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info .copyright {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-info strong {
    color: #59a9fd;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: #59a9fd;
}

@media (max-width: 640px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}