/**
 * Needs Your Attention panel + inline project messaging
 *
 * @package Silva_Customer_Portal
 * @since 3.1.0
 */

.portal-status-banner {
    margin-bottom: var(--spacing-md, 24px);
    padding: 14px 18px;
    border-radius: var(--radius-xl, 12px);
    font-size: 14px;
    line-height: 1.5;
}

.portal-status-banner--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.silva-empty-state--accordion {
    margin: 12px 0;
    padding: 40px 20px;
}

.attention-panel {
    background: var(--surface-white, #fff);
    border: 1px solid #fecaca;
    border-radius: var(--radius-2xl, 16px);
    box-shadow: var(--shadow-card, 0 1px 3px rgba(1, 67, 133, 0.08));
    margin-bottom: var(--spacing-md, 24px);
    overflow: hidden;
}

.attention-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border-bottom: 1px solid #fed7aa;
}

.attention-panel__heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #9a3412;
}

.attention-panel__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ea580c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.attention-panel__list {
    display: flex;
    flex-direction: column;
}

.attention-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.attention-item:last-child {
    border-bottom: none;
}

.attention-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary-blue, #014385);
}

.attention-item--warning .attention-item__icon {
    background: #fff7ed;
    color: #c2410c;
}

.attention-item--danger .attention-item__icon {
    background: #fef2f2;
    color: #dc2626;
}

.attention-item__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.attention-item__description {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.45;
}

.attention-item__action {
    white-space: nowrap;
}

.project-message-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.project-message-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.project-message-panel__title-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.project-message-panel__icon {
    width: 22px;
    height: 22px;
    color: var(--primary-blue, #014385);
    flex-shrink: 0;
    margin-top: 2px;
}

.project-message-panel__title {
    margin: 0 0 4px;
}

.project-message-panel__subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.project-message-panel__input {
    width: 100%;
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
}

.project-message-panel__input:focus {
    outline: 2px solid rgba(1, 67, 133, 0.25);
    border-color: var(--primary-blue, #014385);
}

.project-message-panel__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.project-message-panel__feedback {
    margin-top: 10px;
    font-size: 14px;
    color: #047857;
}

.project-message-panel--sent {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .attention-item {
        grid-template-columns: auto 1fr;
    }

    .attention-item__action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .project-message-panel__header {
        flex-direction: column;
    }

    .project-message-panel__view-all {
        width: 100%;
    }
}
