/* Review Panel Styles */

.review-panel {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Loom URL Input */
.loom-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.loom-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.loom-input-group input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Transcript Display */
.transcript-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.transcript-header h4 {
    margin: 0;
    color: #333;
}

.video-duration {
    color: #666;
    font-size: 14px;
}

.transcript-content {
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
}

.transcript-segment {
    margin: 8px 0;
}

.timestamp {
    color: #4F46E5;
    font-weight: 500;
    margin-right: 8px;
    font-size: 12px;
}

/* Feedback Display */
.feedback-section {
    margin: 20px 0;
}

.feedback-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-item {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #4F46E5;
}

.feedback-item.feedback-remove {
    border-left-color: #DC2626;
    background: #FEF2F2;
}

.feedback-item.feedback-add {
    border-left-color: #059669;
    background: #ECFDF5;
}

.feedback-item strong {
    color: #333;
}

.feedback-item ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.feedback-item li {
    margin: 5px 0;
}

.feedback-confidence {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
}

/* Comparison View */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.comparison-column {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-header h4 {
    margin: 0;
}

.gold-score {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

.comparison-column .story-content {
    padding: 20px;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
}

/* Diff View */
.diff-view {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.diff-content {
    line-height: 1.8;
}

.diff-added {
    background-color: #d4edda;
    padding: 2px 4px;
    border-radius: 3px;
}

.diff-removed {
    background-color: #f8d7da;
    text-decoration: line-through;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Feedback Application Status */
.feedback-application ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.feedback-application li {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
}

.feedback-application li.addressed {
    background: #ECFDF5;
    color: #059669;
}

.feedback-application li.partial {
    background: #FEF3C7;
    color: #D97706;
}

.feedback-application li.missed {
    background: #FEF2F2;
    color: #DC2626;
}

/* Loading State */
.review-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    background: rgba(255,255,255,0.9);
}

.review-loader.hidden {
    display: none;
}

.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4F46E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast.hidden {
    display: none;
}

.toast-success {
    background: #059669;
}

.toast-error {
    background: #DC2626;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Buttons */
.review-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #4F46E5;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #4338CA;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #047857;
}

.btn-danger {
    background: #DC2626;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #B91C1C;
}

.btn-secondary {
    background: #E5E7EB;
    color: #374151;
}

.btn-secondary:hover:not(:disabled) {
    background: #D1D5DB;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    background: #E5E7EB;
    color: #374151;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Manual Paste Fallback */
.manual-paste-fallback {
    margin-top: 15px;
    padding: 15px;
    background: #FEF3C7;
    border-radius: 6px;
    border: 1px solid #F59E0B;
}

.manual-paste-fallback.hidden {
    display: none;
}

/* Review History */
.review-history {
    margin-top: 30px;
}

.review-history-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.review-history-item .status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.review-history-item .status.completed {
    background: #ECFDF5;
    color: #059669;
}

.review-history-item .status.in-progress {
    background: #FEF3C7;
    color: #D97706;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .loom-input-group {
        flex-direction: column;
    }

    .review-actions {
        flex-direction: column;
    }

    .review-actions .btn {
        width: 100%;
    }
}
