/* Popup styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #ccc;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Enhance popup styling */

.input-container {
    max-width: 70%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h3 {
    text-align: center;
    font-size: 1.5em;
}

.instructions {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.instructions p {
    margin: 5px 0;
    color: #495057;
}

.instructions pre {
    background: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-family: monospace;
    white-space: pre-wrap;
}

.batch-textarea {
    width: 90%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 15px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.batch-textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.process-button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.process-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.process-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    max-height: 200px;
    overflow-y: auto;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.result-item {
    padding: 8px;
    margin: 4px 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.result-item.success {
    background: #d4edda;
}

.result-item.error {
    background: #f8d7da;
}