/* EsyConnect Smart Suggestions & Voice Search — front-end styles */

.esc-profile-status,
.esc-job-suggestions,
.esc-daily-tasks,
.esc-voice-search-wrap {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 16px 0;
    font-family: inherit;
}

.esc-progress-bar {
    background: #eee;
    border-radius: 20px;
    height: 14px;
    overflow: hidden;
    margin: 10px 0;
}

.esc-progress-fill {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    height: 100%;
    transition: width 0.4s ease;
}

.esc-missing-fields li,
.esc-job-suggestions ul li,
.esc-daily-tasks ul li {
    list-style: none;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.esc-missing-fields li:last-child,
.esc-job-suggestions ul li:last-child,
.esc-daily-tasks ul li:last-child {
    border-bottom: none;
}

.esc-match-score {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #777;
}

.esc-task-clicked {
    opacity: 0.55;
    text-decoration: line-through;
}

/* Voice search */
.esc-voice-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.esc-voice-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 24px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.esc-mic-btn,
.esc-search-submit-btn {
    border: none;
    background: #f1f1f1;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.esc-mic-btn:hover,
.esc-search-submit-btn:hover {
    background: #e0e0e0;
}

.esc-mic-btn.esc-listening {
    background: #ffcdd2;
    animation: esc-pulse 1s infinite;
}

@keyframes esc-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.esc-voice-status {
    font-size: 13px;
    color: #555;
    min-height: 18px;
    margin: 8px 0 0;
}

.esc-voice-results-list {
    margin: 10px 0 0;
    padding: 0;
}

.esc-voice-results-list li {
    list-style: none;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.esc-voice-results-list a {
    font-weight: 600;
    text-decoration: none;
}

.esc-result-excerpt {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
}

/* Injected "Complete your profile" item inside the theme's
   "Admin tools" sidebar (pxp-dashboard-side-label) */
.esc-admin-tools-profile-item {
    margin-top: 4px;
}

.esc-admin-tools-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.esc-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.esc-status-dot.esc-status-incomplete {
    background: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

.esc-status-dot.esc-status-complete {
    background: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

/* Site-wide floating voice reminder button */
#esc-voice-reminder-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #2962ff;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

#esc-voice-reminder-btn:hover {
    background: #1e4fd6;
    transform: scale(1.08);
}
