/* AI Korrekturlæser Frontend Styles */

/* Dropzone Styling */
.ai-dropzone {
    border: 2px dashed var(--ai-border);
    border-radius: var(--ai-radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.ai-dropzone:hover {
    border-color: var(--ai-primary);
    background: rgba(99, 102, 241, 0.02);
}

.ai-dropzone-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.ai-dropzone-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ai-text);
    margin-bottom: 8px;
}

.ai-dropzone-text {
    color: var(--ai-text-secondary);
    margin-bottom: 12px;
}

.ai-dropzone-hint {
    font-size: 0.875rem;
    color: var(--ai-text-muted);
}

/* File List */
.ai-file-list {
    margin-top: 16px;
    display: none;
}

.ai-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--ai-border);
    border-radius: var(--ai-radius);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.ai-file-item:hover {
    border-color: var(--ai-primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.ai-file-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ai-file-details {
    flex: 1;
    min-width: 0;
}

.ai-file-name {
    font-weight: 500;
    color: var(--ai-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-file-size {
    font-size: 0.875rem;
    color: var(--ai-text-muted);
    margin-top: 2px;
}

.ai-file-remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--ai-bg-soft);
    color: var(--ai-text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-file-remove:hover {
    background: var(--ai-error);
    color: white;
}

/* Button Spinner */
.btn-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Message Area */
#ai-korrekturlaeser-message {
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-dropzone {
        padding: 32px 16px;
    }

    .ai-dropzone-icon {
        font-size: 3rem;
    }

    .ai-dropzone-title {
        font-size: 1.1rem;
    }

    .ai-file-item {
        padding: 10px;
    }

    .ai-file-icon {
        font-size: 1.5rem;
    }
}

/* Legacy styles */
.proofreader-upload-wrap, 
.proofreader-settings-wrap, 
.proofreader-documents-wrap {
    max-width: 1100px;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 12px;
}

.text-muted {
    color: #6b7280;
}
