/* Staff Call Popup - Modern Frontend CSS */

/* Floating Button */
.scp-float-button-wrapper {
    position: fixed !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.scp-float-button-wrapper:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.35);
}

.scp-float-ping {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    opacity: 0.75;
    animation: scpPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes scpPulse {
    0% { transform: scale(1); opacity: 0.8; }
    70%, 100% { transform: scale(1.35); opacity: 0; }
}

.scp-float-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

.scp-float-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.scp-float-icon-emoji {
    font-size: 20px;
}

/* Modal Overlay */
.scp-popup-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
}

.scp-popup-overlay.scp-show {
    opacity: 1;
    visibility: visible;
}

.scp-popup-container {
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.scp-popup-overlay.scp-show .scp-popup-container {
    transform: scale(1) translateY(0);
}

.scp-popup-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scp-popup-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scp-header-icon { font-size: 22px; }

.scp-popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
}

.scp-popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.scp-popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.scp-popup-body {
    padding: 16px;
    max-height: 420px;
    overflow-y: auto;
}

/* Staff Rows */
.scp-staff-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scp-staff-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.scp-staff-row:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.scp-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.scp-row-avatar, .scp-row-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.scp-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.scp-row-info {
    flex-grow: 1;
    min-width: 0;
    padding-right: 6px;
}

.scp-row-name {
    margin: 0 0 2px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    word-break: break-word;
    white-space: normal;
}

.scp-row-position {
    font-size: 12px;
    color: #64748b;
    display: block;
}

.scp-row-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.scp-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.scp-btn-call {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff !important;
}

.scp-btn-call:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: scale(1.05);
}

.scp-btn-zalo {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
}

.scp-btn-zalo:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: scale(1.05);
}

.scp-btn-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.scp-popup-footer {
    padding: 10px 16px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.scp-popup-footer p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

/* Shortcode Grid */
.scp-staff-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.scp-staff-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.scp-staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.scp-staff-avatar-box {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
}

.scp-staff-img, .scp-staff-initials {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
}

.scp-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.scp-staff-name {
    margin: 8px 0 4px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.scp-staff-position {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #64748b;
}

.scp-staff-card-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.scp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Fix icon image sizes for shortcode buttons and cards */
.scp-btn-icon-img,
.scp-action-icon,
.scp-trigger-btn img,
.scp-action-btn img,
.scp-btn-action img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.scp-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0284c7;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.scp-trigger-btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

/* Call Pulse Effect for CTA Wrapper */
.nt-call-pulse-wrapper {
    width: 100%;
    margin-bottom: 10px;
}

.nt-call-pulse-wrapper .scp-trigger-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #d97706 0%, #dc2626 100%);
    color: #ffffff !important;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
    animation: scpPulseBtn 2s infinite;
}

@keyframes scpPulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

