/* AI Coin Identifier Styles */
.ai-coin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ai-coin-upload-area {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.ai-coin-upload-area.drag-over {
    border-color: #007cba;
    background: #f0f7ff;
}

.upload-box {
    cursor: pointer;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-box h3 {
    margin: 0 0 8px 0;
    color: #333;
}

.upload-box p {
    margin: 0 0 20px 0;
    color: #666;
}

.ai-coin-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.ai-coin-btn.primary {
    background: #007cba;
    color: white;
}

.ai-coin-btn.primary:hover {
    background: #005a87;
}

.ai-coin-btn.secondary {
    background: #6c757d;
    color: white;
}

.ai-coin-btn.secondary:hover {
    background: #545b62;
}

.ai-coin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Preview Styles */
.preview-container {
    margin-top: 20px;
}

#imagePreview {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.preview-actions {
    margin-top: 16px;
}

/* Loading Styles */
.loading-container {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Styles */
.ai-coin-results {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f8f9fa;
}

.confidence-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.result-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.result-card h4 {
    margin: 0 0 12px 0;
    color: #333;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item label {
    font-weight: 500;
    color: #666;
}

.result-item .highlight {
    color: #28a745;
    font-weight: 600;
    font-size: 16px;
}

.results-actions {
    text-align: center;
}

.ai-coin-login-required {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .ai-coin-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}