﻿/*
 * This file is part of the GiDiNet website (www.gidinet.com).
 * Public availability does not imply an open-source license.
 * All rights reserved. Copying, modification or reuse is prohibited
 * without prior written permission.
 */

.search-spinner {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
    pointer-events: none;
    z-index: 10;
}

.search-spinner-small {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border: 2px solid #ccc;
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
    pointer-events: none;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-box {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 6px;
    padding-right: 28px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 2px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.search-box:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.4);
}

.search-box-small {
    height: 16px;
    font-size: 10px;
    padding: 0 24px 0 4px;
    border: 1px solid #bbb;
    border-radius: 2px;
    background-color: #fff;
    box-sizing: border-box;
    line-height: 14px;
    outline: none;
    vertical-align: middle;
}

    .search-box-small:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 2px rgba(74, 144, 226, 0.3);
    }

    .search-box::placeholder,
    .search-box-small::placeholder {
        color: #888;
        font-style: italic;
    }

.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    width: 280px;
    z-index: 1000;
}

.search-results-small {
    position: absolute;
    background-color: #fff;
    border: 1px solid #bbb;
    max-height: 160px;
    overflow-y: auto;
    width: 200px;
    z-index: 1000;
    font-size: 11px;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .search-results-small .result-item {
        padding: 4px 6px;
        cursor: pointer;
    }

        .search-results-small .result-item:hover,
        .search-results-small .result-item.highlight {
            background-color: #e6f0ff;
        }

.result-item {
    padding: 8px;
    cursor: pointer;
}

    .result-item:hover {
        background-color: #f0f0f0;
    }

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.box {
    display: flex;
    align-items: flex-start;
    border: 1px solid #DCDCDC;
    /*background-color: #e5e5e5;*/
    background-color: #ffffff;
    padding: 12px;
    border-radius: 6px;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.box-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.box-title {
    color: #ff6600;
    margin: 0;
    font-size: 18px;
}

.box-description {
    color: #000;
    margin: 4px 0 0 0;
    font-size: 14px;
}

.result-item.highlight {
    background-color: #d0e4ff;
}

.adv-search-dropdown {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    font-size: 13px;
    text-align: left;
}

    .adv-search-dropdown .item {
        padding: 6px 10px;
        cursor: pointer;
        text-align: left;
    }

        .adv-search-dropdown .item:hover {
            background-color: #e6f0ff;
        }

.adv-search-container {
    width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.adv-search-dropdown .item.highlight {
    background-color: #d0e4ff;
}

.warning-box {
    display: flex;
    align-items: flex-start;
    max-width: 600px;
    margin: 20px auto; /* centrato orizzontalmente */
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 8px;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.warning-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-text {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #856404;
}

    .warning-text a {
        color: #856404;
        text-decoration: underline;
    }

.dashboard-wrapper {
    max-width: 1100px;
    margin: auto;
    padding-top: 0px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    column-gap: 20px;
    row-gap: 0;
}

.dashboard-box {
    position: relative;
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #DCDCDC;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 16px;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 40px;
}

.manage-user-links-link {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 13px;
    color: #00457c;
    text-decoration: none;
}

    .manage-user-links-link:hover {
        text-decoration: underline;
    }

.dashboard-box-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.dashboard-box-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff6600;
    margin: 0;
}

.dashboard-box-text {
    font-size: 14px;
    margin: 6px 0;
}

.dashboard-box.large-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.left-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-content-centered {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dashboard-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.dashboard-box.centered-content {
    text-align: center;
    align-items: center;
    flex-direction: column;
}

.dashboard-button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    background-color: #426184;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 6px;
    transition: background-color 0.2s;
}

    .dashboard-button:hover {
        background-color: #2e4865;
    }

.dashboard-actions-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

    .dashboard-actions-list li {
        margin: 6px 0;
    }

    .dashboard-actions-list a {
        color: #00457c;
        text-decoration: none;
        font-size: 14px;
    }

        .dashboard-actions-list a:hover {
            text-decoration: underline;
        }

.dashboard-alerts {
    max-width: 1100px;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-alert {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    gap: 10px;
}

    .dashboard-alert svg {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
    }

.dashboard-alert-inline {
    align-items: center;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    gap: 10px;
}

    .dashboard-alert-inline svg {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
    }

.dashboard-alert-info {
    background-color: #e8f4fd;
    border: 1px solid #b6d8f6;
    color: #0b4f78;
}

.dashboard-alert-warning {
    background-color: #fff8e1;
    border: 1px solid #ffe08c;
    color: #7c5a00;
}

.dashboard-alert-error {
    background-color: #fdecea;
    border: 1px solid #f5b5b0;
    color: #a12619;
}

.dashboard-container {
    max-width: 1100px;
    margin: 0 auto 30px auto;
    padding: 0 15px;
}

.dashboard-input {
    height: 30px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    vertical-align: middle;
    box-sizing: border-box;
    background-color: #fff;
    color: #000;
    line-height: normal;
    margin-right: 8px; /* spazio rispetto al pulsante */
}

    .dashboard-input:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 3px rgba(74, 144, 226, 0.4);
        outline: none;
    }

.dashboard-button.primary {
    background-color: #ff6600;
}

    .dashboard-button.primary:hover {
        background-color: #cc5200;
    }

.dashboard-button.secondary {
    background-color: #e0e0e0;
    color: #333;
    border: 1px solid #ccc;
}

    .dashboard-button.secondary:hover {
        background-color: #d5d5d5;
        border-color: #bbb;
        color: #000;
    }

.beta-notice {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #fff3cd; /* giallo chiaro stile warning */
    color: #7c5a00;
    padding: 6px 12px;
    border: 1px solid #ffe08c;
    border-radius: 5px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

    .beta-notice a {
        color: #7c5a00;
        text-decoration: underline;
        margin-left: 4px;
    }

        .beta-notice a:hover {
            text-decoration: none;
        }


.chkDomainSelect{

}

:root {
    --brand: #ff6600;
    --ink: #1f2937;
    --muted: #6b7280;
    --paper: #ffffff;
    --paper-alt: #f9fafb;
    --ring: rgba(255,102,0,0.35);
    --shadow: 0 6px 18px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --radius: 14px;
    --space: 16px;
}

.cta-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space);
    align-items: center;
    padding: calc(var(--space) * 1.25);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    background: var(--paper);
}

.cta-primary {
    border-color: var(--brand);
    background: linear-gradient(0deg, rgba(255,102,0,0.05), rgba(255,102,0,0.05)), var(--paper);
}

.cta-subtle {
    border-color: #e5e7eb;
    background: var(--paper-alt);
}

.cta-outline {
    border-color: var(--brand);
    background: var(--paper);
}

.cta-title {
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 4px 0;
}

    .cta-title .highlight {
        color: var(--brand);
    }

.cta-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.cta-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    will-change: transform;
}

    .btn:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px var(--ring);
    }

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

    .btn-primary:hover {
        filter: brightness(0.98);
    }

.btn-ghost {
    background: transparent;
    color: var(--brand);
    border-color: rgba(255,102,0,0.4);
}

    .btn-ghost:hover {
        background: rgba(255,102,0,0.06);
    }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: #e5e7eb;
}

    .btn-outline:hover {
        background: #f3f4f6;
    }

.btn-lg {
    padding: 12px 20px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 12px;
    font-size: .9rem;
}

.btn .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

@media (max-width: 720px) {
    .cta-box {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}

.action-cta-box {
    max-width: 640px;
    margin: 28px auto 0;
    padding: 20px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.action-cta-text {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 14px;
}

    .action-cta-text .emoji {
        font-size: 1.1em;
        vertical-align: middle;
    }

.action-cta-link {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    background-color: #ff6600;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

    .action-cta-link:hover {
        background-color: #cc5200;
    }

    .action-cta-link.secondary {
        padding: 6px 12px;
        background-color: #e0e0e0;
        color: #333;
        border: 1px solid #ccc;
        font-weight: normal;
    }

        .action-cta-link.secondary:hover {
            background-color: #d5d5d5;
            border-color: #bbb;
            color: #000;
        }

.action-cta-note {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

    .action-cta-note a {
        color: #00457c;
        text-decoration: underline;
    }

        .action-cta-note a:hover {
            color: #002a4d;
        }
