/* Email Extractor Pro – Frontend Styles */

.ee-frontend-wrap {
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #1d2327;
}

.ee-fe-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.ee-fe-icon { font-size: 28px; }
.ee-fe-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
}

.ee-fe-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Tabs */
.ee-fe-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f0f0f1;
}
.ee-fe-tab {
    background: none;
    border: none;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #50575e;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}
.ee-fe-tab.active { color: #2271b1; border-bottom-color: #2271b1; }
.ee-fe-tab:hover { color: #2271b1; }

/* Multi layout */
.ee-fe-multi-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 600px) {
    .ee-fe-multi-layout { grid-template-columns: 1fr; }
}

.ee-fe-url-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: #50575e;
}
.ee-fe-url-area textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    color: #1d2327;
}
.ee-fe-url-area textarea:focus { outline: 2px solid #2271b1; border-color: #2271b1; }

.ee-fe-options-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ee-fe-options-panel label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.ee-fe-options-panel input,
.ee-fe-options-panel select {
    padding: 7px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
}

/* Single row */
.ee-fe-single-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ee-fe-single-row input[type="url"] {
    flex: 1;
    min-width: 220px;
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
}
.ee-fe-single-row select { padding: 8px; border: 1px solid #c3c4c7; border-radius: 4px; }

/* Buttons */
.ee-fe-btn-primary {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
}
.ee-fe-btn-primary:hover { background: #135e96; }
.ee-fe-btn-primary:disabled { background: #a7aaad; cursor: not-allowed; }

.ee-fe-btn-sm {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #1d2327;
}
.ee-fe-btn-sm:hover { background: #dcdcde; }

/* Progress */
.ee-fe-batch-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin: 14px 0 6px;
    font-weight: 600;
}
.ee-fe-progress {
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.ee-fe-progress div {
    height: 8px;
    background: linear-gradient(90deg, #2271b1, #72aee6);
    border-radius: 4px;
    width: 0;
    transition: width .5s ease;
}
.ee-fe-live-url {
    font-size: 11px;
    font-family: monospace;
    color: #50575e;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ee-fe-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #50575e;
}
.ee-fe-stats strong { color: #1d2327; font-size: 16px; }
.ee-fe-status { font-size: 12px; font-family: monospace; color: #50575e; margin-top: 6px; }

/* Results */
.ee-fe-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.ee-fe-results-header h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ee-fe-badge {
    background: #2271b1;
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}
.ee-fe-result-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ee-fe-result-actions input {
    padding: 5px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
}
#ee-fe-copy-notice {
    background: #d1fae5;
    color: #065f46;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Email list */
#ee-fe-email-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #f0f0f1;
    border-radius: 4px;
}
.ee-fe-email-row {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid #f6f7f7;
    gap: 10px;
    transition: background .15s;
}
.ee-fe-email-row:hover { background: #f6f7f7; }
.ee-fe-email-row:last-child { border-bottom: none; }
.ee-fe-email-addr {
    font-family: monospace;
    font-size: 13px;
    flex: 1;
    color: #1d2327;
}
.ee-fe-email-src {
    font-size: 11px;
    color: #a7aaad;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}
