/* ============================================================
   BUTTONS MODULE
   ============================================================ */

/* BASE STYLES & OVERRIDES */
/* Estrazione da style.css (r. 226) */
.btn-secondary {
    border: none !important;
    position: relative !important;
    z-index: 1;
    border-radius: 12px !important;
    transition: transform 0.1s, box-shadow .2s !important;
    background-clip: padding-box !important;
    box-sizing: border-box !important;
}

.btn-secondary > * {
    position: relative;
    z-index: 10;
}

/* SECONDARY BUTTON (Gradient Border) */
.btn.btn-secondary, .btn-secondary {
    background-image: none !important;
    background-color: transparent !important;
    text-align: center;
}

/* Pseudo-elemento per bordo gradiente */
.btn.btn-secondary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2.5px; /* Spessore bordo */
    border-radius: 12px;
    background: linear-gradient(90deg, currentColor, currentColor);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 5;
    pointer-events: none;
}

/* PRIMARY BUTTON (Filled) */
.btn:not(.btn-secondary) {
    border: none !important;
    color: #fff !important;
    border-radius: 12px !important;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 #ffffff4d !important;
}

.btn:not(.btn-secondary)::before {
    display: none !important;
}

/* ACTIVE STATES */
.btn:not(.btn-secondary):active, .btn-danger:active {
    box-shadow: none !important;
    transform: scale(0.98);
}

/* SOCIAL BUTTONS */
.btn-social {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .1s;
    position: relative;
    z-index: 1;
}

.btn-social:active {
    transform: scale(0.98);
}

.btn-social.google {
    background-color: #FFF;
    color: #1f1f1f;
    box-shadow: 0 2px 5px #0003;
    border: 1px solid #0000001a !important;
}

/* ADD NEW ITEM BUTTON (Big Dashed) */
.add-new-item-btn {
    height: 70px !important;
    min-height: 70px !important;
    width: 100% !important;
    border: 2px dashed #80808066 !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--text-color) !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    opacity: .5;
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    border-radius: 14px !important;
    cursor: pointer;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.add-new-item-btn:active {
    background-color: #8080801a !important;
    opacity: 1;
    transform: scale(0.95);
}

/* DANGER BUTTON BASE (from original buttons.css) */
.btn-danger {
    background-color: var(--red);
    box-shadow: inset 0 1px 0 #ffffff4d !important;
}
