/* Brand Colors & Design System */
.muster-email-extractor {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 20px auto;
    max-width: 800px;
    width: 100%;
}

.ee-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ee-title-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.ee-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0b1120;
    margin: 0;
    text-align: center;
}

.ee-version {
    background: #e8f2f4;
    color: #0e7e94;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
}

.ee-description {
    color: #4b5563;
    font-size: 0.95rem;
    margin: 8px 0 24px 0;
    text-align: center;
}

.ee-label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.ee-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    font-family: monospace;
    resize: vertical;
}

.ee-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0 16px;
    padding: 10px 0;
    border-top: 1px solid #e8f2f4;
    border-bottom: 1px solid #e8f2f4;
}

.ee-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #374151;
}

.ee-filter-section {
    margin: 16px 0;
}

.ee-filter-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
}

.ee-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ee-filter-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 6px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ee-filter-btn:hover {
    background: #0e7e94;
    border-color: #0e7e94;
    color: #ffffff;
}

.ee-filter-btn.active {
    background: #0e7e94;
    color: white;
    border-color: #0e7e94;
}

.ee-filter-btn.active:hover {
    background: #0a6475;
    border-color: #0a6475;
}

.ee-keyword-filter {
    flex: 1;
    min-width: 200px;
}

.ee-keyword-filter input {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.85rem;
    background: #ffffff;
}

.ee-keyword-filter input:focus {
    border-color: #0e7e94;
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 126, 148, 0.1);
}

.ee-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 10px;
    margin: 16px 0;
}

.ee-stat {
    text-align: center;
}

.ee-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
}

.ee-stat span:last-child {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0e7e94;
}

.ee-domain-group {
    margin: 16px 0;
    background: #fafcfc;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e8f2f4;
}

.ee-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.ee-domain-item {
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #dbe4ea;
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.ee-domain-count {
    font-weight: bold;
    color: #0e7e94;
}

.ee-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0 12px;
}

.ee-output-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ee-badge {
    background: #e8f2f4;
    color: #0e7e94;
    border-radius: 40px;
    padding: 2px 10px;
    font-size: 0.75rem;
}

.ee-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ee-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.ee-btn-primary {
    background: #0e7e94;
    color: white;
}
.ee-btn-primary:hover {
    background: #0a6475;
}
.ee-btn-secondary {
    background: #e8f2f4;
    color: #0e7e94;
}
.ee-btn-secondary:hover {
    background: #0e7e94;
    color: white;
}
.ee-btn-outline {
    background: transparent;
    border: 1px solid #dbe4ea;
    color: #4b5563;
}
.ee-btn-outline:hover {
    background: #0e7e94;
    color: white;
}

.ee-output-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding: 8px;
    background: white;
}

.ee-output-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ee-output-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #f0f2f4;
}
.ee-email-text {
    font-family: monospace;
    word-break: break-all;
    flex: 2;
}
.ee-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 500;
}
.ee-tag-business { background: #d1fae5; color: #065f46; }
.ee-tag-personal { background: #dbeafe; color: #1e40af; }
.ee-occurrence {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Single copy button - fixed hover visibility */
.ee-copy-single {
    background: #e8f2f4;
    border: 1px solid #dbe4ea;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    color: #0e7e94;
    transition: all 0.2s;
}
.ee-copy-single:hover {
    background: #0e7e94;
    border-color: #0e7e94;
    color: #ffffff;
}

.ee-sample {
    margin-top: 24px;
    background: #fafcfc;
    border-radius: 10px;
    padding: 12px;
}

/* Responsive */
@media (max-width: 640px) {
    .ee-card { padding: 16px; }
    .ee-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ee-filter-buttons { flex-direction: column; align-items: stretch; }
    .ee-keyword-filter { width: 100%; }
    .ee-keyword-filter input { width: 100%; }
    .ee-output-header { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Make filter buttons taller/touch-friendly on mobile */
    .ee-filter-btn {
        min-height: 42px;
        padding: 12px 20px;
        font-size: 18px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}