.beta-archopinion-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.beta-archopinion-header {
    text-align: center;
    margin-bottom: 40px;
}

.beta-archopinion-header h2 {
    font-size: 2.5em;
    color: #333;
    margin: 0;
    font-weight: 300;
}

.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.upload-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
}

.upload-box:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.upload-box.dragover {
    border-color: #667eea;
    background: #f0f2ff;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.upload-box.has-files {
    border-color: #28a745;
    background: #f8fff9;
}

/* Update the upload area styles */
.upload-area {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: visible; /* Don't clip the file input */
}

.upload-area * {
    pointer-events: none; /* Make child elements not block the input */
}

.upload-area input[type="file"] {
    pointer-events: all !important; /* Ensure the input can receive events */
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.7;
    pointer-events: none;
}

.upload-area h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
    pointer-events: none;
}

.upload-placeholder {
    color: #6c757d;
    margin: 10px 0;
    font-size: 0.9em;
    pointer-events: none;
}

/* Ensure uploaded files section doesn't block the input */
.uploaded-files {
    margin-top: 15px;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.uploaded-file {
    background: white;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 0.9em;
    color: #28a745;
    border: 1px solid #d4edda;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: all;
}

.file-name {
    flex: 1;
    text-align: left;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    pointer-events: all;
}

.remove-file:hover {
    background: #c82333;
}

/* Analyzer Selection */
.analyzer-section {
    width: 100%;
}

.analyzer-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.analyzer-dropdown {
    position: relative;
    width: 100%;
}

.analyzer-dropdown-btn {
    background: #667eea;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

.analyzer-dropdown-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.analyzer-dropdown-btn:after {
    content: '▼';
    position: absolute;
    right: 15px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.analyzer-dropdown.show .analyzer-dropdown-btn:after {
    transform: rotate(180deg);
}

.analyzer-dropdown-content {
    display: none;
    position: absolute;
    background: white;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    max-height: 250px;
    overflow-y: auto;
    top: calc(100% + 5px);
    left: 0;
}

.analyzer-dropdown-content.show {
    display: block;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analyzer-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    user-select: none;
}

.analyzer-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.analyzer-option:first-child {
    border-radius: 8px 8px 0 0;
}

.analyzer-option:hover {
    background: #f8f9ff;
}

.analyzer-option input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    transform: scale(1.1);
}

.analyzer-option span {
    font-size: 0.9em;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
}

.selected-analyzers {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 20px;
}

.analyzer-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 8px 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: tagSlideIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.tag-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-tag {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
}

.remove-tag:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

/* Prompt Section */
.prompt-section {
    text-align: center;
    margin-bottom: 40px;
}

.prompt-section h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

.prompt-input-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.prompt-input {
    width: 100%;
    padding: 20px 60px 20px 25px;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    font-size: 1.1em;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    resize: none;
    min-height: 60px;
}

.prompt-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%);
    box-shadow: none;
}

/* Result Section */
.result-section {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 30px;
}

.processing-message {
    margin-bottom: 30px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    font-size: 1.2em;
    color: #28a745;
    margin-bottom: 20px;
    font-weight: 500;
}

.download-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    font-weight: 500;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Scrollbar styling for dropdown */
.analyzer-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.analyzer-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.analyzer-dropdown-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.analyzer-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upload-box {
        padding: 20px 15px;
        min-height: 150px;
    }
    
    .prompt-input {
        padding: 15px 50px 15px 20px;
        font-size: 1em;
    }
    
    .submit-btn {
        width: 40px;
        height: 40px;
        right: 5px;
    }
    
    .beta-archopinion-header h2 {
        font-size: 2em;
    }
    
    .prompt-section h2 {
        font-size: 1.5em;
    }
    
    .analyzer-dropdown-content {
        max-height: 200px;
    }
    
    .tag-text {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .beta-archopinion-container {
        padding: 15px;
    }
    
    .upload-box {
        padding: 15px 10px;
        min-height: 120px;
    }
    
    .upload-area h3 {
        font-size: 1em;
    }
    
    .analyzer-dropdown-content {
        max-height: 180px;
    }
    
    .analyzer-option {
        padding: 10px 12px;
    }
    
    .analyzer-option span {
        font-size: 0.85em;
    }
}