/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
    --accent-color: #264b6e;
    --accent-hover: #1e3a52;
    --accent-soft: rgba(38, 75, 110, 0.12);
    --sidebar-bg: #ffffff;
    --border-color: #e8eaed;
}

/* body typography comes from portale.css */

.accent {
    background-color: var(--accent-color);
}

.accent-hover:hover {
    filter: brightness(1.08);
}

.accent-text {
    color: var(--accent-color);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Centratura e aspetto pulito per la pagina di login */
.login-container {
    max-width: 420px;
    width: 90%;
    margin-inline: auto;
}


.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 36, 52, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1040;
}

.sidebar-overlay.active {
    display: block;
}

@media (min-width: 768px) {
    .sidebar-overlay {
        display: none !important;
    }
}

.toggle-switch input:checked + .toggle-bg {
    background-color: var(--accent-color);
}

.toggle-switch input:checked + .toggle-bg .toggle-dot {
    transform: translateX(1.25rem);
}

/* Stile per i tab */
.tab-button.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(38, 75, 110, 0.08);
}

/* Extensions for portale.css (.btn-ghost / .btn-cta) */
.btn-compact.btn-ghost,
.btn-compact.btn-cta,
.btn-compact.btn-danger-ghost {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--red, #c0392b);
    text-decoration: none;
    border: 1px solid rgba(192, 57, 43, 0.35);
    border-radius: 2rem;
    background: rgba(192, 57, 43, 0.08);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.btn-danger-ghost:hover {
    background: rgba(192, 57, 43, 0.15);
    border-color: rgba(192, 57, 43, 0.5);
}

/* Full-width primary button (login, etc.) */
.btn-cta-full {
    width: 100%;
    justify-content: center;
}
