/* ============================================================
   Direct Send (push notifications) page — scoped styles (fx-notif-)
   ============================================================ */

.fx-notif-page {
    padding: 1.25rem 1.5rem 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.fx-notif-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.25rem;
}

.fx-notif-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2d7bff, #4cc3ff);
    box-shadow: 0 8px 20px -8px rgba(45, 123, 255, .7);
    flex: 0 0 auto;
}

.fx-notif-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1b1b2f;
    line-height: 1.1;
}

.fx-notif-subtitle {
    font-size: .85rem;
    color: #6b6b80;
    margin-top: 2px;
}

.fx-notif-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1050px) {
    .fx-notif-layout { grid-template-columns: 1fr; }
}

.fx-notif-card {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 1px 3px rgba(20, 20, 50, .04);
}

.fx-notif-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: #2a2a40;
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .9rem;
}

.fx-notif-card-title .fx-notif-step {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e6f1ff;
    color: #2d7bff;
    font-size: .75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.fx-notif-hint {
    font-size: .78rem;
    color: #8a8a9c;
    margin: -.3rem 0 .7rem;
}

/* ---- selected-users chips ---- */
.fx-notif-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .6rem;
}

.fx-notif-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    background: #eef5ff;
    border: 1px solid #cfe2ff;
    color: #1f5fcf;
    border-radius: 999px;
    padding: .22rem .3rem .22rem .6rem;
}

.fx-notif-chip button {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #1f5fcf;
    display: grid;
    place-items: center;
    line-height: 1;
}

/* ---- search results list ---- */
.fx-notif-results {
    border: 1px solid #ececf3;
    border-radius: 12px;
    margin-top: .6rem;
    max-height: 280px;
    overflow-y: auto;
}

.fx-notif-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .5rem .7rem;
    border-bottom: 1px solid #f2f2f7;
}

.fx-notif-result:last-child { border-bottom: 0; }

.fx-notif-result-name {
    font-size: .85rem;
    font-weight: 600;
    color: #2a2a40;
}

.fx-notif-result-sub {
    font-size: .74rem;
    color: #9a9aac;
}

.fx-notif-token {
    font-size: .68rem;
    font-weight: 600;
    border-radius: 6px;
    padding: .12rem .45rem;
}

.fx-notif-token-yes { color: #1c7c54; background: #e3f7ec; }
.fx-notif-token-no  { color: #9a3b3b; background: #fdeaea; }

/* ---- phone preview ---- */
.fx-notif-preview {
    background: linear-gradient(160deg, #1b2440, #2a3a66);
    border-radius: 18px;
    padding: 1.1rem;
}

.fx-notif-preview-os {
    font-size: .72rem;
    color: #c7d3f0;
    text-align: center;
    margin-bottom: .6rem;
    letter-spacing: .03em;
}

.fx-notif-preview-card {
    background: rgba(255, 255, 255, .96);
    border-radius: 13px;
    padding: .7rem .8rem;
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}

.fx-notif-preview-appicon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2d7bff, #4cc3ff);
    color: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-weight: 800;
    font-size: .9rem;
}

.fx-notif-preview-body { min-width: 0; flex: 1; }

.fx-notif-preview-app {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a8a9c;
}

.fx-notif-preview-title {
    font-size: .88rem;
    font-weight: 700;
    color: #1b1b2f;
    margin: 1px 0;
    word-break: break-word;
}

.fx-notif-preview-text {
    font-size: .8rem;
    color: #43435a;
    word-break: break-word;
}

.fx-notif-preview-image {
    margin-top: .55rem;
    border-radius: 10px;
    display: block;
    width: 100%;
    height: 120px;          /* fixed-size container regardless of source image */
    object-fit: cover;
}

/* ---- result summary ---- */
.fx-notif-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-top: .4rem;
}

.fx-notif-stat {
    text-align: center;
    border-radius: 11px;
    padding: .6rem .3rem;
    border: 1px solid #ececf3;
}

.fx-notif-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.fx-notif-stat-label {
    font-size: .7rem;
    color: #8a8a9c;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-top: 3px;
}

.fx-notif-stat-targeted .fx-notif-stat-num { color: #2a2a40; }
.fx-notif-stat-sent     .fx-notif-stat-num { color: #1c7c54; }
.fx-notif-stat-failed   .fx-notif-stat-num { color: #c0392b; }
.fx-notif-stat-skipped  .fx-notif-stat-num { color: #b8860b; }

/* ---- Image upload control ---- */
.fx-notif-upload {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.fx-notif-upload-preview {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid #ececf3;
    background: #f7f8fc;
}

.fx-notif-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fx-notif-upload-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #b6b6c6;
}

.fx-notif-upload-actions {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    align-items: flex-start;
}

/* ---- CSV file chip ---- */
.fx-notif-file-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .6rem;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #2d5bb9;
    font-size: .8rem;
    font-weight: 600;
}

.fx-notif-file-chip button {
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    color: inherit;
    padding: 0;
}
