﻿
.inbox-card {
    background: rgba(255,255,255,.96);
    /*backdrop-filter: blur(12px);*/
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 12px rgba(0,0,0,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.inbox-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06), 0 10px 20px rgba(0,0,0,.10);
}

/*.inbox-home-box-services {
    position: sticky;
    top: 20px;
}
*/

.inbox-home-box-services {
    position: sticky;
    top: 86px;
    z-index: 10;
}

.inbox-home-box-info {
    position: sticky;
    top: 86px;
    z-index: 10;
}

@media (max-width: 768px) {
    .inbox-home-box-services {
        position: static;
    }

    .inbox-home-box-info {
        position: static;
    }

    .inbox-home-box-news {
        padding-left: 0 !important;
    }
}


.inbox-home-news-info {
    padding: 18px;
    border-left: 5px solid #8a84f1;
}

.inbox-home-news-warning {
    padding: 18px;
    border-left: 5px solid #ffc461;
}

.inbox-home-news-alert {
    padding: 18px;
    border-left: 5px solid #f87474;
}

.inbox-home-news-info,
.inbox-home-news-warning,
.inbox-home-news-alert {
    margin-bottom: 16px;
}

.inbox-home-box-news h1 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    color: #0f172a;
}

.inbox-home-box-news p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.inbox-home-box-services {
    border: none;
    border-radius: 6px;
    background: linear-gradient( 180deg, #ffffff 0%, #f8fafc 100% );
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05), 0 10px 12px rgba(0,0,0,.06);
}

.inbox-home-news-info,
.inbox-home-news-warning,
.inbox-home-news-alert {
    position: relative;
}

.inbox-home-box-news h1 {
    padding-right: 80px;
}

.inbox-home-news-info::after,
.inbox-home-news-warning::after,
.inbox-home-news-alert::after {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: .04em;
}

.inbox-home-news-info::after {
    content: "Info";
    position: absolute;
    top: 14px;
    right: 16px;
    font-weight: 600;
    background: rgba(59,130,246,.12);
/*    color: #3b82f6;
*/}

.inbox-home-news-warning::after {
    content: "Warning";
    position: absolute;
    top: 14px;
    right: 16px;
    font-weight: 600;
    background: rgba(245,158,11,.12);
/*    color: #f59e0b;
*/}

.inbox-home-news-alert::after {
    content: "Alert";
    position: absolute;
    top: 14px;
    right: 16px;
    font-weight: 600;
    background: rgba(239,68,68,.12);
/*    color: #ef4444;
*/}

.inbox-home-news-info,
.inbox-home-news-warning,
.inbox-home-news-alert {
    transition: transform .18s ease, box-shadow .18s ease, border-left-width .18s ease;
}

.inbox-home-news-info:hover,
.inbox-home-news-warning:hover,
.inbox-home-news-alert:hover {
    border-left-width: 8px;
}

.inbox-home-box-services {
    background: linear-gradient( 180deg, #ffffff 0%, #f8fafc 100% );
}


/*.inbox-home-box-services {
    background: var(--box-background);
    border: 1px solid var(--box-border-color);
    margin: 0;
    font-size: 14px;
    padding: 12px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
    border-color: #692ced;
}

.inbox-home-box-news {
}

.inbox-home-news-info {
    background: var(--box-background);
    border: 1px solid var(--box-border-color);
    margin: 0;
    font-size: 14px;
    padding: 12px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
    border-color: #692ced;
}

.inbox-home-news-warning {
    background: var(--box-background);
    border: 1px solid var(--box-border-color);
    margin: 0;
    font-size: 14px;
    padding: 12px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
    border-color: orange;
}

.inbox-home-news-alert {
    background: var(--box-background);
    border: 1px solid var(--box-border-color);
    margin: 0;
    font-size: 14px;
    padding: 12px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
    border-color: red;
}
*/

.tenant-homepage-title {
    height: var(--appbar-logo-height);
    width: auto;
    max-width: fit-content;
}


/* Contenitore generale */
.otp-section {
    margin-bottom: 24px;
}

.otp-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 14px;
    background: #fff8e9;
    border: 1px solid #f1d9a5;
    border-radius: 14px;
}

.otp-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    height: 42px;
    background: #ffebc2;
    color: #9a6700;
    border-radius: 12px;
    font-size: 22px;
}

.otp-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #303640;
}

.otp-section-description {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Elenco schede */
.otp-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.otp-card {
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .045);
}

.otp-card-expired {
    border-color: #e6d2d2;
}

.otp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #edf0f4;
}

.otp-card-operation {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #263345;
}

.otp-operation-icon {
    color: #4f80ad;
    font-size: 21px;
}

/* Stato OTP */
.otp-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.otp-status-pending {
    background: #fff0ce;
    color: #946000;
}

.otp-status-expired {
    background: #fde8e8;
    color: #ad3333;
}

.otp-status-neutral {
    background: #edf0f4;
    color: #596579;
}

.otp-card-body {
    padding: 20px;
}

/* Dettagli operazione */
.otp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.otp-info-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #7b8493;
    margin-bottom: 5px;
}

.otp-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #303b4b;
    overflow-wrap: anywhere;
}

/* Messaggio ricevuto */
.otp-message {
    background: #f5f7fa;
    border-left: 3px solid #9bb2cf;
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.otp-message-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #59677a;
    margin-bottom: 7px;
}

.otp-message-text {
    font-size: 13px;
    line-height: 1.6;
    color: #354052;
    /*white-space: pre-wrap;*/
    overflow-wrap: anywhere;
}

/* Conferma OTP */
.otp-confirm-section {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e4eaf1;
    border-radius: 12px;
    margin-bottom: 18px;
}

.otp-confirm-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #303b4b;
}

.otp-confirm-description {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 14px;
}

.otp-confirm-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.otp-code-input {
    width: 170px;
    max-width: 100%;
    height: 38px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 3px;
}

/* OTP scaduto */
.otp-expired-message {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    background: #fff5f5;
    border: 1px solid #f2dada;
    border-radius: 9px;
    color: #a23b3b;
    font-size: 13px;
    margin-bottom: 18px;
}

/* Footer */
.otp-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #edf0f4;
}

.otp-resend-label {
    font-size: 12px;
    color: #7b8493;
}

/* Responsive */
@media (max-width: 767px) {
    .otp-section-header,
    .otp-card-header,
    .otp-card-body {
        padding: 14px;
    }

    .otp-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .otp-confirm-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .otp-code-input {
        width: 100%;
    }

    .otp-confirm-controls .pill-button {
        width: 100%;
    }

    .otp-card-footer {
        justify-content: flex-start;
    }
}
