/* Core Styles */
.eep-email-extractor-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #2d3748;
}

.eep-email-extractor-container h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a365d;
    margin: 0 0 1.5rem;
    font-weight: 600;
    font-size: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.eep-title-icon {
    color: #4299e1;
}

/* Input Area */
#eep-email-extractor-input {
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

#eep-email-extractor-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* Tool Controls */
.eep-tool-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.eep-button-group {
    display: flex;
    gap: 0.75rem;
    flex-grow: 1;
}

.eep-file-upload-area {
    flex-grow: 1;
}

/* Buttons */
.eep-btn-primary, .eep-btn-secondary, .eep-btn-toggle, .eep-upload-label {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.eep-btn-primary {
    background: #4299e1;
    color: white;
}

.eep-btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.eep-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.eep-btn-secondary:hover {
    background: #cbd5e0;
}

/* Toggle Button Styles */
.eep-btn-toggle {
    position: relative;
    background: #edf2f7;
    color: #4a5568;
    padding: 0.75rem 1.25rem 0.75rem 3.5rem;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #cbd5e0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.eep-btn-toggle.eep-active {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
    padding-left: 4rem;
}

.eep-toggle-switch {
    position: absolute;
    left: 0.75rem;
    width: 2.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.eep-toggle-switch::before {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #cbd5e0;
    left: 0.125rem;
    top: 0.125rem;
    transition: all 0.2s ease;
}

.eep-btn-toggle.eep-active .eep-toggle-switch {
    background: rgba(255,255,255,0.2);
}

.eep-btn-toggle.eep-active .eep-toggle-switch::before {
    background: white;
    left: 1.125rem;
}

.eep-toggle-status {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.eep-btn-toggle.eep-active .eep-toggle-status {
    opacity: 1;
}

/* File Upload */
#eep-file-upload {
    display: none;
}

.eep-upload-label {
    width: 100%;
    justify-content: center;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    color: #4a5568;
}

.eep-upload-label:hover {
    background: #ebf8ff;
    border-color: #4299e1;
    color: #4299e1;
}

/* Results Area */
.eep-result-area {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.eep-result-item {
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: white;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 0.875rem;
    word-break: break-all;
    transition: background 0.2s ease;
}

.eep-result-item:hover {
    background: #ebf8ff;
}

/* Status Messages */
.eep-status-message {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.eep-status-processing {
    background: #ebf8ff;
    color: #2b6cb0;
    border-left: 4px solid #4299e1;
}

.eep-status-success {
    background: #f0fff4;
    color: #276749;
    border-left: 4px solid #48bb78;
}

.eep-status-error {
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #f56565;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .eep-email-extractor-container {
        padding: 1.5rem;
    }
    
    .eep-tool-controls {
        flex-direction: column;
    }
    
    .eep-button-group {
        flex-direction: column;
    }
}

/* Copy Button Styles */
#eep-copy-all-button {
    background: #48bb78; /* Green 500 */
    color: white;
    border: none;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#eep-copy-all-button:hover {
    background: #38a169; /* Green 600 */
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#eep-copy-all-button:active {
    background: #2f855a; /* Green 700 */
    transform: translateY(0);
}