/* Tema Light - Default Theme */

/* Tutte le regole CSS del tema light/default sono qui.
   Queste regole si applicano quando nessun altro tema è attivo. */

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(180deg, #7db8d9 0%, var(--white) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    transition: none;
    font-size: calc(1rem * var(--font-size, 1));
}

.container {
    max-width: 95rem;
    margin: 0 auto;
    padding: 1.875rem 2.5rem;
}

/* Media Queries per responsive design fluid - breakpoint in px */
@media (min-width: 1920px) {
    /* Full HD 1920px */
    .container {
        max-width: 112rem;
        padding: 1rem 2rem;
    }
}

@media (min-width: 2560px) {
    /* 2K 2560px */
    .container {
        max-width: 142rem;
        padding: 1.5rem 2.5rem;
    }
}

@media (min-width: 3840px) {
    /* 4K 3840px */
    .container {
        max-width: 170rem;
        padding: 2rem 3rem;
    }
}

/* Header */
.header {
    margin-bottom: 3.125rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: none;
    border-radius: 0.625rem;
    padding: 0.5rem 0.75rem;
    box-shadow: var(--glow-soft);
}

.font-control-btn {
    background: rgba(255, 255, 255, 0.4);
    border: none;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: var(--transition);
    outline: none;
    min-width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-soft);
}

.font-control-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: var(--glow-medium);
    transform: scale(1.05);
}

.font-control-btn:active {
    transform: scale(0.95);
}

/* Theme Buttons Container Fixed */
.theme-buttons-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Theme Button Fixed */
.theme-button-fixed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--glow-soft);
}

.theme-button-fixed:hover {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    box-shadow: var(--glow-medium);
}

.theme-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.theme-button-fixed:hover .theme-icon {
    transform: rotate(90deg);
}

/* Scroll Button Fixed */
.scroll-button-fixed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--glow-soft);
}

.scroll-button-fixed:hover {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    box-shadow: var(--glow-medium);
}

.scroll-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.scroll-button-fixed:hover .scroll-icon {
    transform: scale(1.1);
}

.scroll-icon.scroll-up {
    transform: rotate(180deg);
}

.scroll-button-fixed:hover .scroll-icon.scroll-up {
    transform: rotate(180deg) scale(1.1);
}

.logo-img {
    height: 4.6875rem;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) brightness(1.1);
    transition: var(--transition);
    opacity: 0.95;
}

.logo-img:hover {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8)) brightness(1.2);
    opacity: 1;
}

.logo-fallback {
    font-size: 2rem;
    font-weight: 300;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 2px 10px rgba(179, 225, 255, 0.4);
}

.language-selector {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: none;
    border-radius: 0.75rem;
    padding: 0.625rem 2.5rem 0.625rem 1.125rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    box-shadow: var(--glow-soft);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a5a7a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.language-selector:hover {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    box-shadow: var(--glow-medium);
}

.language-selector:focus {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--glow-medium);
}

.language-selector option {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    padding: 0.625rem;
}

/* Stilizzazione dropdown nativi */
select {
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1920px) {
    .main-content {
        gap: 1.5rem;
    }
}

@media (min-width: 2560px) {
    .main-content {
        gap: 2rem;
    }
}

@media (min-width: 3840px) {
    .main-content {
        gap: 2.5rem;
    }
}

.title-section {
    text-align: center;
    margin: 0.625rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Main Title - stili specifici tema light */
body.theme-light .main-title,
body:not([data-theme]) .main-title {
    font-size: 5rem;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.3);
}

body.theme-light .main-title:hover,
body:not([data-theme]) .main-title:hover {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4);
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.guide-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.guide-link svg {
    width: 18px;
    height: 18px;
}

/* Search Section */
.search-section {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    margin: 0.625rem 0;
}

/* Search Input - stili specifici tema light */
body.theme-light .search-input,
body:not([data-theme]) .search-input {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    color: var(--text-primary);
    box-shadow: var(--glow-medium);
}

body.theme-light .search-input:focus,
body:not([data-theme]) .search-input:focus {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    box-shadow: 0 0 60px rgba(179, 225, 255, 0.8), 0 8px 40px rgba(179, 225, 255, 0.5), 0 0 100px rgba(255, 255, 255, 0.3);
}

body.theme-light .search-input::placeholder,
body:not([data-theme]) .search-input::placeholder {
    color: var(--text-lighter);
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 0.3125rem 0.625rem;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(179, 225, 255, 0.3));
    transition: all 0.3s ease;
}

.clear-btn:hover {
    color: var(--text-secondary);
    transform: translateY(-50%) scale(1.2);
    filter: drop-shadow(0 0 8px rgba(179, 225, 255, 0.6));
}

.smart-filter-suggestion-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    height: 9rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Container mantiene sempre 9rem di altezza anche quando nascosto */
.smart-filter-suggestion-container:has(> .smart-filter-suggestion[style*="display: none"]) {
    height: 9rem;
    margin: 0;
}

.smart-filter-suggestion {
    position: relative;
    width: 95%;
    max-width: 100rem;
    padding: 0.875rem 1.375rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    box-shadow: var(--glow-medium);
    animation: slideDown 0.3s ease;
    z-index: 10;
}

@media (min-width: 1920px) {
    .smart-filter-suggestion {
        max-width: 100rem;
    }
}

@media (min-width: 2560px) {
    .smart-filter-suggestion {
        max-width: 100rem;
    }
}

.suggestion-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.suggestion-text {
    flex: 0 0 auto;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.suggestion-text {
    flex: 1;
}

.filter-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: rgba(107, 169, 219, 0.7);
    color: var(--white);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(107, 169, 219, 0.4);
    flex-shrink: 0;
}

.filter-icon-btn:hover {
    background: rgba(87, 149, 199, 0.85);
    transform: translateY(-0.0625rem);
    box-shadow: 0 0 15px rgba(107, 169, 219, 0.6);
}

.filter-icon-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.smart-filter-suggestion .btn-filter-suggest {
    background: rgba(107, 169, 219, 0.7);
    color: var(--white);
    border: none;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    margin-left: 0.625rem;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(107, 169, 219, 0.4);
}

.smart-filter-suggestion .btn-filter-suggest:hover {
    background: rgba(87, 149, 199, 0.85);
    transform: translateY(-0.0625rem);
    box-shadow: 0 0 15px rgba(107, 169, 219, 0.6);
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.form-checkbox {
    margin-right: 0.5rem;
    cursor: pointer;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        filter: brightness(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(1);
    }
}

/* Controls Section - stili specifici tema light (struttura base in style.css) */
/* Control Groups - nessun bordo verticale (rimosso per design più pulito) */
body.theme-light .control-group,
body:not([data-theme]) .control-group {
    border-right: none;
}

.control-group-contacts {
    /* Operazioni: Add, Delete */
}

.control-group-import-export {
    /* Import, Export, Backup */
}

.control-group-display {
    /* Visualizzazione: Colonne */
}

.control-group-search {
    /* Ricerca: Ricerca Combinata */
}

/* Tooltip styling - Browser default con miglioramenti */
.btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #000;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 0.5rem;
    pointer-events: none;
}

.sort-selector option[disabled][selected] {
    color: var(--text-lighter);
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    color: var(--text-primary);
    box-shadow: var(--glow-soft);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    transform: translateY(-2px);
    box-shadow: var(--glow-medium);
}

.btn-primary {
    background: rgba(107, 169, 219, 0.85);
    color: var(--white);
    font-weight: 600;
    box-shadow: var(--glow-medium), 0 0 25px rgba(107, 169, 219, 0.5);
    border: 1px solid rgba(107, 169, 219, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.25rem;
}

/* Icona + più grande e visibile nel pulsante Aggiungi */
.btn-primary .btn-icon {
    margin-right: 0.5rem;
}

.btn-primary .btn-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 3;
}

.btn-primary:hover {
    background: rgba(87, 149, 199, 0.95);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    box-shadow: var(--glow-intense), 0 0 35px rgba(107, 169, 219, 0.7);
    border-color: rgba(107, 169, 219, 0.8);
    color: var(--white);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.4);
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3), 0 4px 15px rgba(255, 107, 107, 0.15);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.6);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.5), 0 6px 20px rgba(255, 107, 107, 0.25);
}

.btn-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* SVG icona nel btn-icon */
.btn-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.btn-icon-chevron {
    width: 10px;
    height: 10px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.375rem;
}

/* Icona colonne nel pulsante Colonne */
#columns-menu-btn .btn-icon {
    margin-right: 0.5rem;
}

#columns-menu-btn .btn-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.btn:hover .btn-icon-chevron {
    opacity: 0.9;
}

.export-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--glow-medium);
    display: flex;
    flex-direction: column;
    min-width: 120px;
    z-index: 100;
    animation: slideDown 0.3s ease;
}

.export-option {
    padding: 0.75rem 1.125rem;
    border: none;
    background: none;
    text-align: left;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
}

.export-option:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.export-option:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.export-option:hover {
    background: rgba(179, 225, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(179, 225, 255, 0.2);
}

/* Table Section */
.table-section {
    margin-top: 0.9375rem;
}

/* Table Container - stili specifici tema light */
body.theme-light .table-container,
body:not([data-theme]) .table-container {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    padding: 1.875rem;
    box-shadow: var(--glow-strong);
}

@media (min-width: 1920px) {
    body.theme-light .table-container,
    body:not([data-theme]) .table-container {
        padding: 2rem 2.5rem;
    }
}

@media (min-width: 2560px) {
    body.theme-light .table-container,
    body:not([data-theme]) .table-container {
        padding: 2.5rem 3rem;
    }
}

@media (min-width: 3840px) {
    body.theme-light .table-container,
    body:not([data-theme]) .table-container {
        padding: 3rem 4rem;
    }
}

body.theme-light .table-container:hover,
body:not([data-theme]) .table-container:hover {
    box-shadow: var(--glow-intense);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.contacts-table thead {
    background: rgba(179, 225, 255, 0.15);
    border-radius: 0.5rem;
}

.contacts-table th {
    padding: 1.125rem 0.9375rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(179, 225, 255, 0.2);
    position: relative;
}

.contacts-table th:last-child {
    border-right: none;
}

/* Colonna Altro - solo header con colore leggermente diverso */
.contacts-table th[data-column="note"] {
    background: rgba(141, 209, 240, 0.25);
}

.contacts-table th.resizable {
    position: relative;
    min-width: 100px;
}

.checkbox-cell {
    width: 2.5rem;
    padding: 1.125rem 0.5rem !important;
    text-align: center;
}

.select-all-checkbox,
.contact-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--celeste);
}

.selected-count {
    margin-left: 0.375rem;
    font-weight: 600;
    opacity: 0.9;
}

.contacts-table th.actions-header {
    width: 5rem;
    min-width: 5rem;
    max-width: 5rem;
    padding: 1.125rem 0.5rem;
}

.contacts-table th.checkbox-header {
    width: 2.5rem;
    min-width: 2.5rem;
    max-width: 2.5rem;
    padding: 1.125rem 0.5rem;
    text-align: center;
}

.resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.5rem;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    z-index: 20;
    user-select: none;
}

.contacts-table th.resizable .resize-handle {
    right: 0;
    width: 0.5rem;
}

/* Resize handle ora sempre a destra senza bottoni di visibilità */

.resize-handle:hover {
    background: rgba(179, 225, 255, 0.5);
}

.resize-handle:active {
    background: rgba(179, 225, 255, 0.7);
}

.contacts-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.contacts-table th.sortable:hover {
    background: rgba(179, 225, 255, 0.2);
}

.contacts-table th.sortable.active {
    background: rgba(179, 225, 255, 0.3);
}

.contacts-table th.sortable span {
    display: inline-block;
    margin-right: 0.5rem;
}

.sort-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    z-index: 25;
    pointer-events: none;
}

.contacts-table th.sortable.active .sort-icon {
    opacity: 1;
}

.contacts-table th.sortable.active.asc .sort-icon path:first-child {
    opacity: 1;
}

.contacts-table th.sortable.active.desc .sort-icon path:last-child {
    opacity: 1;
}

.contacts-table td {
    padding: 1.125rem 0.9375rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.95rem;
}

.contacts-table td:last-child {
    border-right: none;
}

/* Colonna Altro - senza colore di fondo speciale */

.contacts-table tbody tr {
    transition: var(--transition);
}

.contacts-table tbody tr {
    position: relative;
}

.contacts-table tbody tr:hover {
    background: rgba(179, 225, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(179, 225, 255, 0.15);
}

.contacts-table tbody tr:last-child td {
    border-bottom: none;
}

.actions-cell {
    width: 5rem;
    padding: 0.5rem !important;
}

.action-buttons {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    align-items: center;
}

.action-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    backdrop-filter: var(--blur-soft);
    -webkit-backdrop-filter: var(--blur-soft);
    box-shadow: var(--glow-soft);
    color: var(--text-secondary);
}

.action-btn-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    transform: translateY(-1px) scale(1.05);
    box-shadow: var(--glow-medium);
}

.action-btn-icon.edit {
    color: var(--celeste-deep);
}

.action-btn-icon.edit:hover {
    background: rgba(179, 225, 255, 0.3);
    color: var(--celeste-deep);
}

.action-btn-icon.delete {
    color: #ff6b6b;
}

.action-btn-icon.delete:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff5252;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.25);
}

.action-btn-icon svg {
    width: 16px;
    height: 16px;
}

.empty-state {
    text-align: center;
    padding: 3.75rem 1.25rem;
    color: var(--text-lighter);
    font-size: 1.1rem;
    text-shadow: 0 2px 6px rgba(179, 225, 255, 0.3);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(179, 225, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        filter: brightness(0.9);
    }
    to {
        opacity: 1;
        filter: brightness(1);
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: none;
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 37.5rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--glow-strong);
    animation: slideUp 0.3s ease;
}

.modal-small {
    max-width: 25rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: brightness(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.875rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(179, 225, 255, 0.3);
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    font-size: 2rem;
    color: var(--text-lighter);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    backdrop-filter: var(--blur-soft);
    -webkit-backdrop-filter: var(--blur-soft);
    box-shadow: var(--glow-soft);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    color: var(--text-secondary);
    transform: rotate(90deg);
    box-shadow: var(--glow-medium);
}

.modal-body {
    margin-bottom: 1.875rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 3px rgba(179, 225, 255, 0.2);
    font-weight: 400;
    line-height: 1.7;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5625rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1.125rem;
    border: none;
    border-radius: 0.75rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    transition: var(--transition);
    outline: none;
    box-shadow: var(--glow-soft);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    box-shadow: var(--glow-intense);
}

.form-group textarea {
    resize: vertical;
    min-height: 6.25rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.9375rem;
    margin-top: 0.9375rem;
    padding-top: 1.5625rem;
    border-top: 1px solid rgba(179, 225, 255, 0.3);
}

/* ==================== TRASH SECTION STYLES ==================== */

.trash-section {
    padding: 1.875rem 1.25rem;
    animation: fadeIn 0.3s ease;
}

.trash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.875rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--blur-soft);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.trash-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.trash-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.trash-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.trash-actions .selected-count {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-left: 4px;
}

/* ==================== PAGINATION STYLES ==================== */

/* Selettore items-per-page in alto */
.pagination-selector-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--blur-soft);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    border: 0.0625rem solid var(--border-color);
}

.pagination-info-top {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--blur-soft);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    border: 0.0625rem solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.9375rem;
}

.pagination-stats-container {
    display: flex;
    align-items: center;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.items-per-page-selector {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur-soft);
    border: 0.0625rem solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.items-per-page-selector:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-soft);
}

.pagination-stats {
    margin-left: 0.625rem;
    font-weight: 500;
    opacity: 0.8;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur-soft);
    border: 0.0625rem solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    min-width: 2.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    transform: translateY(-0.125rem);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-page-info {
    padding: 0.5rem 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 3.75rem;
    text-align: center;
}

/* Numeri di pagina cliccabili */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur-soft);
    border: 0.0625rem solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    min-width: 2.5rem;
    text-align: center;
    user-select: none;
}

.pagination-number:hover:not(.active):not(.ellipsis) {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    transform: translateY(-0.125rem);
    border-color: var(--primary-color, #4a90e2);
}

.pagination-number.active {
    background: var(--primary-color, #4a90e2);
    color: white;
    border-color: var(--primary-color, #4a90e2);
    font-weight: 700;
    box-shadow: 0 0.125rem 0.375rem rgba(74, 144, 226, 0.3);
}

.pagination-number.ellipsis {
    cursor: default;
    background: transparent;
    border: none;
    padding: 0.5rem 0.25rem;
    min-width: auto;
}

.pagination-number.ellipsis:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive: nascondi alcuni numeri su schermi piccoli */
@media (max-width: 768px) {
    .pagination-numbers {
        gap: 0.125rem;
        margin: 0 0.25rem;
    }
    
    .pagination-number {
        padding: 0.375rem 0.5rem;
        min-width: 2rem;
        font-size: 0.85rem;
    }
}

/* ==================== COLUMN TOGGLE STYLES ==================== */
/* Bottoni di visibilità rimossi - ora si usa solo il menu in alto */

/* Columns Menu */
.columns-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--blur-medium);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    min-width: 12.5rem;
    z-index: 1000;
    padding: 0.75rem 0;
    animation: fadeIn 0.2s ease;
}

.columns-menu-header {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.show-all-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: var(--transition);
    border-radius: 4px;
}

.show-all-btn:hover {
    opacity: 1;
    background: rgba(179, 225, 255, 0.3);
}

.show-all-btn svg {
    width: 14px;
    height: 14px;
}

.columns-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.column-menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.column-menu-item:hover {
    background: rgba(179, 225, 255, 0.2);
}

.column-menu-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--celeste);
}

.column-menu-item span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ==================== FOOTER ==================== */

.footer {
    margin-top: 3.75rem;
    padding: 3.125rem 2.5rem;
    background: transparent;
    border-top: 0.0625rem solid var(--border-color);
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1920px) {
    .footer-container {
        max-width: 120rem;
        gap: 3rem;
    }
}

@media (min-width: 2560px) {
    .footer-container {
        max-width: 160rem;
        gap: 4rem;
    }
}

@media (min-width: 3840px) {
    .footer-container {
        max-width: 100%;
        gap: 5rem;
    }
}

.footer-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Blocco Logo (Sinistra) */
.footer-logo {
    align-items: center;
    margin-left: 1.25rem;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.625rem;
}

/* Logo, since e center: dimensioni e layout gestiti da footer.css e responsive */
/* Qui solo override di colori/filtri per il tema light se necessario */

.footer-message {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.footer-accent {
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
}

.footer-heart {
    font-size: 1.2em;
    vertical-align: middle;
}

/* Blocco Navigazione (Destra) */
.footer-nav {
    align-items: flex-start;
    margin-right: 1.25rem;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-link {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--text-primary);
    font-weight: 500;
    transform: translateX(-0.1875rem);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: var(--celeste);
    transition: var(--transition);
}

.footer-link:hover::after {
    width: 100%;
}

/* ==================== COMBINED SEARCH STYLES ==================== */

.org-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 15rem;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
}

.org-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
}

.org-item:hover {
    background: rgba(179, 225, 255, 0.3);
}
.org-item input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--celeste);
}

.org-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.selected-orgs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
}

.selected-org-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(107, 169, 219, 0.2);
    border: 1px solid rgba(107, 169, 219, 0.5);
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.selected-org-tag button {
    background: none;
    border: none;
    color: rgba(107, 169, 219, 0.8);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.selected-org-tag button:hover {
    color: rgba(87, 149, 199, 0.9);
}

/* ==================== BACKUP MODAL STYLES ==================== */

.modal-backup {
    max-width: 55rem;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-backup .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.backup-tab {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.backup-tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
}

.backup-tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 0.5rem 0.5rem 0 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.backup-tab-button:hover {
    background: rgba(107, 169, 219, 0.1);
}

.backup-tab-button.active {
    background: var(--celeste);
    color: white;
    border-color: var(--celeste);
}

/* Storage Info Grid */
.storage-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.storage-info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(107, 169, 219, 0.1) 0%, rgba(107, 169, 219, 0.05) 100%);
    border: 1px solid rgba(107, 169, 219, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.storage-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.storage-icon {
    font-size: 2.5rem;
    line-height: 1;
    min-width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storage-details {
    flex: 1;
}

.storage-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--celeste);
    margin-bottom: 0.25rem;
}

.storage-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.storage-hint {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* Backup Actions */
.backup-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.backup-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Backup List */
.backup-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(107, 169, 219, 0.05);
    border: 1px solid rgba(107, 169, 219, 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.backup-item:hover {
    background: rgba(107, 169, 219, 0.1);
}

.backup-item-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.backup-item-meta {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.backup-item-meta-item {
    display: inline-block;
    margin-right: 1rem;
}

.backup-item-actions {
    display: flex;
    gap: 0.5rem;
}

.backup-item-actions button {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.backup-item-actions button:hover {
    background: rgba(107, 169, 219, 0.1);
    border-color: var(--celeste);
}

.backup-item-actions button.restore {
    background: var(--celeste);
    color: white;
    border-color: var(--celeste);
}

.backup-item-actions button.delete {
    color: #e74c3c;
}

/* Import Area */
.import-area {
    border: 2px dashed rgba(107, 169, 219, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    background: rgba(107, 169, 219, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.import-area:hover {
    border-color: rgba(107, 169, 219, 0.6);
    background: rgba(107, 169, 219, 0.1);
}

.import-area.drag-over {
    border-color: var(--celeste);
    background: rgba(107, 169, 219, 0.15);
}

.import-button-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.import-button-area p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.import-button-area .btn {
    min-width: 150px;
}

.import-button-area .btn {
    min-width: 150px;
}

/* Control Groups Responsive */
@media (max-width: 1200px) {
    .control-group {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .controls-section {
        flex-direction: row;
        gap: 0.5rem;
    }

    .controls-left {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .control-group {
        border-right: none;
        padding-right: 0;
    }

    .control-group .btn {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }

    .control-group .btn span {
        display: none;
    }

    .control-group .btn .btn-icon {
        display: inline;
        margin: 0;
    }

    .controls-left {
        gap: 0.4rem;
    }

    .controls-section {
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
}

.import-preview-content {
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    color: #555;
}

/* Animation per slide-in/slide-out */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==================== CUSTOM TOOLTIP STYLING ==================== */

/* Tooltip semplice e pulito */
.btn[title],
button[title],
a[title] {
    position: relative;
}

/* Tooltip content - minimalista */
.btn[title]::before,
button[title]::before,
a[title]::before {
    content: attr(title);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: #333333;
    color: #ffffff;
    padding: 0.375rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tooltip arrow */
.btn[title]::after,
button[title]::after,
a[title]::after {
    content: '';
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333333;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10000;
}

/* Show on hover */
.btn[title]:hover::before,
.btn[title]:hover::after,
button[title]:hover::before,
button[title]:hover::after,
a[title]:hover::before,
a[title]:hover::after {
    opacity: 1;
}


