.content-links-page {
    padding: 24px;
    background: #f6f8fc;
    min-height: 100vh;
}

/* Header */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;

    h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
    }

    p {
        margin-top: 8px;
        color: #6d7488;
        font-size: 12px;
        max-width: 850px;
        line-height: 1.5;
    }
}

/* Show dropdown */

.show-selection {
    background: #fff;
    border: 1px solid #dde4ef;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;

    label {
        font-weight: 600;
    }

    select {
        width: 260px;
        height: 40px;
        border: 1px solid #d7dce5;
        border-radius: 8px;
        padding: 0 12px;
        background: #fff;
    }
}

/* Sections */

.link-section {
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Top */

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f5;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge.blue {
    background: #1f3d72;
    color: white;
}

.badge.purple {
    background: #f4ebff;
    color: #7b2ff7;
}

.count {
    color: #687082;
    font-size: 12px;
}

.step-title {
    padding: 18px 18px 0;
    font-size: 13px;
    font-weight: 600;
    color: #566074;
}

/* Card */

.link-card {
    margin: 18px;
    border: 1px solid #e6ebf3;
    border-radius: 10px;
    padding: 16px 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
}

.cms {
    background: #edf3ff;
    color: #2962ff;
}

.video {
    background: #fff2f2;
    color: #ff4444;
}

.link-left h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Tags */

.tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f2f5fb;
    color: #4c5b70;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 12px;
}

.video-tag {
    background: #ffe8e8;
    color: #ff4d4f;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 12px;
}

.status.active {
    color: #1ca74d;
    font-size: 12px;
    font-weight: 600;
}

.url {
    color: #5b73a7;
    font-size: 12px;
}

/* Actions */

.actions {
    display: flex;
    gap: 10px;
}

.edit-btn,
.delete-btn {
    border: none;
    background: #f5f7fb;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.edit-btn {
    color: #2962ff;
}

.delete-btn {
    color: #ff4d4f;
}


@keyframes popup {

    from {
        transform: scale(.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }

}
/* ================= Overlay ================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ================= Popup ================= */

.modal-container {
    width: 560px;
    max-width: 95%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
    animation: popup .25s ease;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================= Header ================= */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #202634;
}

.close-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #f2f5fa;
    color: #64748b;
    cursor: pointer;
    font-size: 20px;
    transition: .2s;
}

.close-btn:hover {
    background: #e8edf5;
}

/* ================= Body ================= */

.modal-body {
    padding: 0 24px 22px;
}

/* ================= Row ================= */

.form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.small {
    width: 80px;
    flex: unset;
}

/* ================= Label ================= */

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #253046;
    margin-bottom: 7px;
}

/* ================= Input ================= */

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    background: #fff;
    transition: .2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

/* Placeholder */

input::placeholder {
    color: #9ca3af;
}

/* ================= Helper ================= */

small {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

/* ================= Toggle ================= */

.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.toggle-row label {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
}

/* iOS Switch */

.toggle-row input[type="checkbox"] {
    appearance: none;
    width: 38px;
    height: 22px;
    border-radius: 20px;
    background: #cbd5e1;
    cursor: pointer;
    position: relative;
    transition: .25s;
}

.toggle-row input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: .25s;
}

.toggle-row input[type="checkbox"]:checked {
    background: #14b8a6;
}

.toggle-row input[type="checkbox"]:checked::before {
    left: 18px;
}

/* ================= Footer ================= */

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px 22px;
}

/* ================= Buttons ================= */

.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #fff;
    border: 1px solid #d9e2ef;
    color: #475569;
    border-radius: 10px;
    height: 42px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f8fafc;
}