/**
 * Publication Co-Pilot - Frontend Styles
 * Modern, clean, scientific UI
 */

:root {
    --pcp-primary: #2563eb;
    --pcp-primary-hover: #1d4ed8;
    --pcp-primary-light: #eff6ff;
    --pcp-success: #16a34a;
    --pcp-warning: #d97706;
    --pcp-danger: #dc2626;
    --pcp-gray-50: #f9fafb;
    --pcp-gray-100: #f3f4f6;
    --pcp-gray-200: #e5e7eb;
    --pcp-gray-300: #d1d5db;
    --pcp-gray-400: #9ca3af;
    --pcp-gray-500: #6b7280;
    --pcp-gray-700: #374151;
    --pcp-gray-900: #111827;
    --pcp-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --pcp-radius: 12px;
}

/* Container */
.pcp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Tab Navigation */
.pcp-tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px;
    background: white;
    border-radius: var(--pcp-radius);
    box-shadow: var(--pcp-shadow);
    overflow-x: auto;
    flex-wrap: wrap;
}

.pcp-tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--pcp-gray-600);
    transition: all 0.2s;
    white-space: nowrap;
}

.pcp-tab-btn:hover {
    background: var(--pcp-gray-100);
    color: var(--pcp-gray-900);
}

.pcp-tab-btn.active {
    background: var(--pcp-primary);
    color: white;
}

/* Tab Content */
.pcp-tab-content {
    display: none;
}

.pcp-tab-content.active {
    display: block;
}

/* Coming Soon Feature Panels */
.feature-coming-soon {
    text-align: center;
    padding: 40px 20px;
}

.feature-coming-soon .icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.feature-coming-soon h3 {
    margin: 0 0 12px 0;
    color: var(--pcp-gray-900);
}

.feature-coming-soon > p {
    color: var(--pcp-gray-600);
    margin-bottom: 24px;
}

.feature-coming-soon ul {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
    color: var(--pcp-gray-600);
}

/* Mock Content */
.mock-content {
    background: var(--pcp-gray-50);
    border: 2px dashed var(--pcp-gray-300);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mock-content h4 {
    margin-top: 0;
    color: var(--pcp-gray-700);
}

/* OCR Modal Button Hover Effects */
.btn-manual-search:hover {
    border-color: #3b82f6 !important;
    background: #f9fafb !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-ai-extract:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.btn-manual-search:active,
.btn-ai-extract:active {
    transform: translateY(0);
}

/* Mock Editor */
.mock-editor {
    max-width: 900px;
    margin: 30px auto;
    text-align: left;
}

.mock-editor label {
    display: block;
    font-weight: 500;
    color: var(--pcp-gray-700);
    margin-bottom: 8px;
    margin-top: 20px;
}

.mock-editor label:first-child {
    margin-top: 0;
}

.mock-editor input[type="text"],
.mock-editor input[type="number"],
.mock-editor select,
.mock-editor textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.mock-editor textarea {
    resize: vertical;
    font-family: inherit;
}

.mock-editor .action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Method List */
.method-list {
    display: grid;
    gap: 16px;
}

.method-item {
    padding: 16px;
    background: white;
    border: 1px solid var(--pcp-gray-200);
    border-radius: 8px;
}

.method-item strong {
    color: var(--pcp-primary);
    display: block;
    margin-bottom: 8px;
}

.method-item p {
    margin: 0 0 8px 0;
    color: var(--pcp-gray-600);
}

.method-item .source {
    font-size: 12px;
    color: var(--pcp-gray-400);
}

.meta-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
}

.meta-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #e5e7eb;
    color: #374151;
}

.meta-badge.fulltext {
    background: #d1fae5;
    color: #065f46;
}

.meta-badge.abstract {
    background: #fef3c7;
    color: #92400e;
}

/* Mock Search */
.mock-search {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pcp-gray-600);
    font-size: 14px;
}
/* ==================== LITERATURE TAB ==================== */

.literature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.literature-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
}

.literature-item.unconfirmed {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.literature-item.confirmed {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.literature-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lit-header h4 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.confirmed {
    background: #10b981;
    color: white;
}

.status-badge:not(.confirmed) {
    background: #f59e0b;
    color: white;
}

.badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    background: #e5e7eb;
    color: #6b7280;
    white-space: nowrap;
}

.lit-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lit-metadata {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.lit-metadata strong {
    color: #374151;
    font-weight: 600;
}

.lit-annotations {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.lit-annotations label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.lit-annotations input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.lit-annotations input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lit-annotations input[type="range"]::-webkit-slider-thumb:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.lit-annotations input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.lit-annotations .score-value {
    display: inline-block;
    min-width: 30px;
    padding: 2px 8px;
    background: #667eea;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.lit-annotations .checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.lit-annotations .checkboxes label {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.lit-annotations .checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lit-annotations textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.lit-annotations textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lit-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lit-actions .btn-primary {
    flex: 1;
}

.lit-actions .btn-delete {
    background: #ef4444;
    color: white;
}

.lit-actions .btn-delete:hover {
    background: #dc2626;
}

.tab-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.tab-status #confirmed-count {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.tab-status .help-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 15px;
}

/* ==================== PUBMED SEARCH MODAL ==================== */

.modal-large {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.form-group input[type="text"],
.form-group select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group .help-text {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.token-cost {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 11px;
    margin-left: 8px;
}

.progress-message {
    padding: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    text-align: center;
    font-weight: 500;
    margin: 16px 0;
}

/* ==================== PUBMED RESULTS ==================== */

#pubmed-results {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

#pubmed-results h4 {
    margin-bottom: 16px;
    color: #1f2937;
}

.action-buttons-inline {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Author Action Buttons - Override for white background */
.pcp-author-actions .btn-small {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.pcp-author-actions .btn-small:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.pcp-author-actions .btn-confirm-author {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pcp-author-actions .btn-confirm-author:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.pcp-author-actions .btn-confirm-author.confirmed,
.pcp-author-item.confirmed .btn-confirm-author {
    background: #28a745;
    border-color: #28a745;
}

.pcp-author-actions .btn-delete-author {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.pcp-author-actions .btn-delete-author:hover {
    background: #c82333;
    border-color: #c82333;
}


.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.pubmed-result-item {
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pubmed-result-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.pubmed-result-item label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    align-items: start;
}

.pubmed-result-item input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.paper-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.paper-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.paper-header strong {
    color: #1f2937;
}

.paper-title {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.paper-meta {
    font-size: 12px;
    color: #6b7280;
}

/* ==================== ANIMATIONS ==================== */

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.token-display.pulse {
    animation: token-pulse 0.6s ease;
}

@keyframes token-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .lit-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lit-annotations .checkboxes {
        grid-template-columns: 1fr;
    }
    
    .lit-actions {
        flex-direction: column;
    }
    
    .modal-large {
        max-width: 95vw;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
/* Literature Results */
.literature-results {
    display: grid;
    gap: 16px;
}

.lit-item {
    padding: 16px;
    background: white;
    border: 1px solid var(--pcp-gray-200);
    border-radius: 8px;
}

.lit-item h5 {
    margin: 0 0 8px 0;
    color: var(--pcp-gray-900);
    font-size: 16px;
}

.lit-item .authors {
    margin: 4px 0;
    color: var(--pcp-gray-600);
    font-size: 14px;
}

.lit-item .journal {
    margin: 4px 0 12px 0;
    color: var(--pcp-gray-500);
    font-size: 13px;
    font-style: italic;
}

.lit-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lit-actions .btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    background: white;
    color: var(--pcp-gray-700);
    text-decoration: none;
    border: 1px solid var(--pcp-gray-300);
    cursor: pointer;
    transition: all 0.2s;
}

.lit-actions .btn-small:hover {
    background: var(--pcp-gray-50);
}

/* Author Item Styles */
.pcp-author-item {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: #fff;
}

.pcp-author-item.confirmed {
    border-color: #28a745;
    background: #f0fff4;
}

.pcp-author-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pcp-author-number {
    font-weight: bold;
    color: #666;
}

.pcp-author-actions {
    display: flex;
    gap: 10px;
}

/* Word Count Display */
.word-count-display {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
}

.status-badge.ok {
    background: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.error {
    background: #f8d7da;
    color: #721c24;
}

/* Manuscript Preview */
.manuscript-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
}

.preview-item {
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    border-left: 4px solid #007bff;
}

.preview-item.ok {
    border-left-color: #28a745;
}

.preview-item.warning {
    border-left-color: #ffc107;
}

.preview-item.error {
    border-left-color: #dc3545;
}

/* Export History */
.export-history-item {
    padding: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CRediT Roles */
.credit-roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.credit-role-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Danger Zone */
.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Token Balance Bar (Sticky) */
.pcp-token-bar {
    position: sticky;
    top: 32px; /* WordPress admin bar */
    z-index: 100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 20px;
    border-radius: var(--pcp-radius);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--pcp-shadow);
}

.token-display {
    font-size: 18px;
}

.token-display strong {
    font-size: 24px;
    margin: 0 4px;
}

.token-display.pulse {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Panel */
.pcp-panel {
    background: white;
    border: 1px solid var(--pcp-gray-200);
    border-radius: var(--pcp-radius);
    box-shadow: var(--pcp-shadow);
    padding: 24px;
}

.panel-header {
    margin-bottom: 20px;
}

.panel-header h2 {
    margin: 0 0 8px 0;
    color: var(--pcp-gray-900);
}

.help-text {
    color: var(--pcp-gray-500);
    margin: 0;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--pcp-gray-50);
    border-radius: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 10px 16px;
    border: 1px solid var(--pcp-gray-300);
    background: white;
    color: var(--pcp-gray-700);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--pcp-gray-50);
    border-color: var(--pcp-gray-400);
}

.btn.primary {
    background: var(--pcp-primary);
    color: white;
    border-color: var(--pcp-primary);
}

.btn.primary:hover {
    background: var(--pcp-primary-hover);
}

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

/* Figures List */
.figures-list {
    display: grid;
    gap: 20px;
}

.pcp-figure-item {
    border: 1px solid var(--pcp-gray-200);
    border-radius: 12px;
    padding: 16px;
    background: white;
    transition: all 0.2s;
}

.pcp-figure-item:hover {
    box-shadow: var(--pcp-shadow);
}

/* Collapsible Figure Header */
.figure-collapse-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--pcp-gray-50);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0;
}

.figure-collapse-header:hover {
    background: var(--pcp-gray-100);
}

.figure-collapse-header.expanded {
    background: var(--pcp-primary-light);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.collapse-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid var(--pcp-primary);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    transition: transform 0.2s;
    margin-right: 8px;
    display: inline-block;
}

.figure-collapse-header.expanded .collapse-arrow {
    transform: rotate(90deg);
    border-left-color: var(--pcp-primary-hover);
}

.figure-title-display {
    font-weight: 600;
    color: var(--pcp-gray-900);
    flex: 1;
}

.confirmed-badge {
    background: var(--pcp-success);
    color: white;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Collapsible Content */
.figure-collapse-content {
    padding: 16px;
    border-top: 1px solid var(--pcp-gray-200);
}

/* Figure Header */
.figure-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pcp-gray-200);
}

.figure-number-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-label {
    font-weight: 600;
    color: var(--pcp-gray-700);
}

.figure-number-edit {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.figure-actions {
    display: flex;
    gap: 8px;
}

.btn-delete {
    padding: 6px 12px;
    background: var(--pcp-danger);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.btn-delete:hover {
    background: #b91c1c;
}

.relates-to-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.relates-to-input input {
    width: 150px;
    padding: 4px 8px;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 6px;
    font-size: 13px;
}

.relates-to-input .help-icon {
    color: var(--pcp-gray-400);
    cursor: help;
}

/* Figure Preview */
.figure-preview {
    margin: 16px 0;
    text-align: center;
}

.pcp-figure-thumb {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pcp-figure-thumb:hover {
    transform: scale(1.05);
}

/* Figure Fields */
.figure-fields {
    display: grid;
    gap: 16px;
}

.figure-fields label {
    display: block;
    font-weight: 500;
    color: var(--pcp-gray-700);
    margin-bottom: 6px;
    font-size: 14px;
}

.figure-fields input[type="text"],
.figure-fields textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.figure-fields textarea {
    resize: vertical;
}

.figure-fields input:focus,
.figure-fields textarea:focus {
    outline: none;
    border-color: var(--pcp-primary);
    box-shadow: 0 0 0 3px var(--pcp-primary-light);
}

/* Yellow highlight for missing info (?) */
.figure-fields textarea {
    line-height: 1.6;
}

/* Confirmed Button State */
.btn.confirmed {
    background: var(--pcp-success);
    border-color: var(--pcp-success);
}

.btn.confirmed:hover {
    background: #15803d;
}

/* Style the highlighted ? spans from AI response */
.pcp-figure-item textarea::after {
    content: '';
}

/* AI Controls */
.ai-controls {
    margin: 16px 0;
}

.btn-ai {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-ai:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cost-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.ai-badge {
    background: var(--pcp-primary-light);
    color: var(--pcp-primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.ai-error {
    margin-top: 10px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: var(--pcp-danger);
    font-size: 14px;
}

.btn-retry {
    margin-left: 10px;
    padding: 6px 12px;
    background: var(--pcp-danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Confirm Label */
.confirm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--pcp-gray-700);
    cursor: pointer;
}

.confirm-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Lightbox */
.pcp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}

.pcp-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Toast Notifications */
.pcp-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--pcp-gray-900);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.pcp-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.pcp-toast-success {
    background: var(--pcp-success);
}

.pcp-toast-error {
    background: var(--pcp-danger);
}

/* Loading Overlay */
.pcp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* Upload Modal */
.pcp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9997;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--pcp-gray-200);
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--pcp-gray-400);
    line-height: 1;
}

.modal-close:hover {
    color: var(--pcp-gray-700);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--pcp-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--pcp-gray-200);
    background: var(--pcp-gray-50);
}

.btn-cancel {
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 8px;
    cursor: pointer;
}

.btn-upload {
    padding: 10px 16px;
    background: var(--pcp-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Empty State */
.pcp-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.pcp-empty-state h3 {
    margin: 0 0 8px 0;
    color: var(--pcp-gray-700);
}

/* Help Section */
.pcp-help-section {
    margin-top: 24px;
}

.pcp-help-section details {
    background: var(--pcp-gray-50);
    border: 1px solid var(--pcp-gray-200);
    border-radius: 10px;
    padding: 16px;
}

.pcp-help-section summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--pcp-gray-700);
}

.help-content {
    margin-top: 16px;
}

.help-content h4 {
    margin: 20px 0 10px 0;
    color: var(--pcp-gray-700);
}

.help-content ul,
.help-content ol {
    margin: 10px 0;
    padding-left: 24px;
}

.help-content li {
    margin: 6px 0;
    color: var(--pcp-gray-600);
}

/* Messages */
.pcp-message {
    padding: 16px;
    border-radius: 10px;
    margin: 20px 0;
}

.pcp-info {
    background: var(--pcp-primary-light);
    border: 1px solid var(--pcp-primary);
    color: var(--pcp-primary);
}

.pcp-warning {
    background: #fef3c7;
    border: 1px solid var(--pcp-warning);
    color: var(--pcp-warning);
}

/* ==================== LITERATURE STYLES ==================== */

.literature-container {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 1024px) {
    .literature-container {
        grid-template-columns: 1fr 1fr;
    }
}

.literature-section {
    background: var(--pcp-gray-50);
    border: 1px solid var(--pcp-gray-200);
    border-radius: 10px;
    padding: 20px;
}

.literature-section h3 {
    margin: 0 0 16px 0;
    color: var(--pcp-gray-900);
}

.upload-dropzone {
    border: 2px dashed var(--pcp-gray-300);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: var(--pcp-gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.upload-dropzone:hover {
    border-color: var(--pcp-primary);
    background: var(--pcp-primary-light);
    color: var(--pcp-primary);
}

.search-input {
    display: grid;
    gap: 10px;
}

.search-input textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

/* Literature Item (similar to Figure) */
.lit-item {
    border: 1px solid var(--pcp-gray-200);
    border-radius: 12px;
    padding: 16px;
    background: white;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.lit-item:hover {
    box-shadow: var(--pcp-shadow);
}

.lit-collapse-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--pcp-gray-50);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.lit-collapse-header:hover {
    background: var(--pcp-gray-100);
}

.lit-collapse-header.expanded {
    background: var(--pcp-primary-light);
}

.lit-title-display {
    font-weight: 600;
    color: var(--pcp-gray-900);
    flex: 1;
}

.lit-collapse-content {
    padding: 16px;
    border-top: 1px solid var(--pcp-gray-200);
}

/* Literature Metadata */
.lit-metadata {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: var(--pcp-gray-700);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.ai-reason-box {
    background: var(--pcp-primary-light);
    border: 1px solid var(--pcp-primary);
    border-radius: 8px;
    padding: 12px;
    color: var(--pcp-primary);
    font-size: 14px;
}

.fulltext-badge,
.abstract-only-badge {
    font-size: 13px;
    font-weight: 500;
    margin: 8px 0;
}

.fulltext-badge {
    color: var(--pcp-success);
}

.abstract-only-badge {
    color: var(--pcp-gray-500);
}

/* Literature Annotations */
.lit-annotations {
    background: var(--pcp-gray-50);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.lit-annotations h4 {
    margin: 0 0 16px 0;
    color: var(--pcp-gray-700);
    font-size: 16px;
}

.slider-group {
    margin-bottom: 16px;
}

.slider-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--pcp-gray-700);
    font-weight: 500;
    font-size: 14px;
}

.slider-value {
    color: var(--pcp-primary);
}

.slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--pcp-gray-200);
    outline: none;
    -webkit-appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--pcp-primary);
    cursor: pointer;
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--pcp-primary);
    cursor: pointer;
    border: none;
}

.checkboxes {
    display: grid;
    gap: 10px;
}

.checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--pcp-gray-700);
    cursor: pointer;
}

.checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Literature Actions */
.lit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--pcp-gray-200);
}

/* Search Results Modal */
.search-result-item {
    border: 1px solid var(--pcp-gray-200);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: var(--pcp-gray-50);
}

.search-result-checkbox {
    display: flex;
    gap: 12px;
    cursor: pointer;
}

.search-result-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 4px;
}

.paper-info h4 {
    margin: 0 0 8px 0;
    color: var(--pcp-gray-900);
    font-size: 15px;
}

.paper-info .authors {
    margin: 4px 0;
    color: var(--pcp-gray-600);
    font-size: 14px;
}

.paper-info .journal {
    margin: 4px 0;
    color: var(--pcp-gray-500);
    font-size: 13px;
    font-style: italic;
}

.paper-info .pmid {
    margin: 4px 0;
    color: var(--pcp-gray-400);
    font-size: 12px;
}

.paper-info .ai-reason {
    margin: 8px 0 0 0;
    padding: 8px;
    background: var(--pcp-primary-light);
    border-radius: 6px;
    color: var(--pcp-primary);
    font-size: 13px;
}

.badge-fulltext,
.badge-abstract {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.badge-fulltext {
    background: #d1fae5;
    color: var(--pcp-success);
}

.badge-abstract {
    background: var(--pcp-gray-100);
    color: var(--pcp-gray-600);
}

/* All Sources Section */
.all-sources {
    margin-top: 30px;
}

.all-sources h3 {
    margin: 0 0 16px 0;
    color: var(--pcp-gray-900);
}

.source-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--pcp-gray-50);
    border-radius: 8px;
    flex-wrap: wrap;
}

.source-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pcp-gray-700);
    font-size: 14px;
    cursor: pointer;
}

/* Yellow highlight for missing info in AI-generated legends */
/* This targets inline HTML from Claude's response */
.figure-fields textarea[data-legend] {
    /* Enable HTML rendering for yellow ? boxes */
    white-space: pre-wrap;
}

/* Style for the yellow ? highlight spans that will be in the textarea value */
/* Note: This is a visual guide - the actual yellow highlighting comes from 
   the HTML in Claude's response with inline styles */
mark.pcp-missing-info,
span[style*="background-color: #ffeb3b"],
span[style*="background-color:#ffeb3b"] {
    background-color: #ffeb3b !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #000;
}

/* Next Section */
.pcp-next-section {
    padding: 20px;
    background: var(--pcp-gray-50);
    border-radius: 10px;
    border: 2px dashed var(--pcp-gray-300);
}

.pcp-next-section .btn {
    font-size: 16px;
    padding: 12px 24px;
}

/* ==================== BETA ACCESS DENIED ==================== */

.pcp-beta-denied {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 3px solid #ffc107;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

.pcp-beta-denied .beta-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.pcp-beta-denied h3 {
    margin: 0 0 16px 0;
    color: #856404;
    font-size: 24px;
}

.pcp-beta-denied > p {
    margin: 0 0 20px 0;
    color: #664d03;
    font-size: 16px;
    line-height: 1.6;
}

.pcp-beta-denied .user-status {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin: 20px 0;
    color: #664d03;
    font-size: 15px;
}

.pcp-beta-denied .user-status strong {
    color: #856404;
}

.pcp-beta-denied .beta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
    flex-wrap: wrap;
}

.pcp-beta-denied .btn-upgrade,
.pcp-beta-denied .btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pcp-beta-denied .btn-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pcp-beta-denied .btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.pcp-beta-denied .btn-contact {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.pcp-beta-denied .btn-contact:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.pcp-beta-denied .help-note {
    margin: 24px 0 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(133, 100, 4, 0.2);
}

.pcp-beta-denied .help-note small {
    color: #856404;
    font-size: 13px;
    font-style: italic;
}

/* Responsive für Beta-Denied */
@media (max-width: 768px) {
    .pcp-beta-denied {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .pcp-beta-denied .beta-actions {
        flex-direction: column;
    }
    
    .pcp-beta-denied .btn-upgrade,
    .pcp-beta-denied .btn-contact {
        width: 100%;
        justify-content: center;
    }
}

body.page-id-2230 .geschichtenonkel-nav-container {
    display: none !important;
}

/* ==================== METHODS TAB ==================== */

.methods-extract-section,
.methods-list-section,
.methods-generate-section,
.methods-output-section {
    padding: 20px;
    background: var(--pcp-gray-50);
    border-radius: 10px;
    border: 1px solid var(--pcp-gray-200);
}

.section-help {
    font-size: 14px;
    color: var(--pcp-gray-600);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Methods Table */
.methods-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.methods-table thead tr {
    background: var(--pcp-gray-50);
    border-bottom: 2px solid var(--pcp-gray-200);
}

.methods-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--pcp-gray-700);
    white-space: nowrap;
}

.methods-table tbody tr {
    border-bottom: 1px solid var(--pcp-gray-200);
    transition: background 0.2s;
}

.methods-table tbody tr:hover {
    background: var(--pcp-gray-50);
}

.methods-table tbody tr:last-child {
    border-bottom: none;
}

.methods-table td {
    padding: 12px;
    vertical-align: top;
}

.methods-table select,
.methods-table textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--pcp-gray-300);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.methods-table select {
    cursor: pointer;
    background: white;
}

.methods-table select:focus,
.methods-table textarea:focus {
    outline: none;
    border-color: var(--pcp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.methods-table textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.4;
}

.methods-table .btn-delete {
    padding: 6px 12px;
    font-size: 13px;
    background: var(--pcp-danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.methods-table .btn-delete:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Methods Empty State */
#methods-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--pcp-gray-500);
    background: var(--pcp-gray-50);
    border: 2px dashed var(--pcp-gray-300);
    border-radius: 10px;
    margin-top: 20px;
}

#methods-empty-state p {
    margin: 0;
    font-size: 15px;
}

/* Extract Result Box */
#extract-result {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

/* Methods Output Section */
#methods-output-section {
    background: white;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid var(--pcp-gray-200);
}

#methods-text {
    width: 100%;
    font-size: 15px;
    line-height: 1.8;
    border: 2px solid var(--pcp-gray-200);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Georgia', serif;
    resize: vertical;
    min-height: 400px;
    transition: border-color 0.2s;
}

#methods-text:focus {
    outline: none;
    border-color: var(--pcp-primary);
}

#methods-word-count {
    font-weight: 600;
    color: var(--pcp-primary);
}

/* Add Method Modal Specific */
.modal-content .form-group label span {
    color: var(--pcp-danger);
    font-weight: 600;
}

.modal-content .form-group .description {
    font-size: 12px;
    color: var(--pcp-gray-500);
    margin: 4px 0 0 0;
    font-style: italic;
}

/* Section Confirm */
.section-confirm {
    background: var(--pcp-gray-50);
    border: 1px solid var(--pcp-gray-200);
    border-radius: 8px;
    padding: 20px;
}

.section-confirm .confirm-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--pcp-gray-700);
    cursor: pointer;
    margin: 0;
}

.section-confirm input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--pcp-success);
}

.section-confirm input[type="checkbox"]:checked + strong {
    color: var(--pcp-success);
}

/* Methods Status Text */
#methods-status-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    transition: color 0.3s;
}

/* Requirements Box */
#methods-gen-requirements {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

/* Proceed Button States */
#btn-proceed-abstract:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#btn-proceed-abstract:not(:disabled) {
    animation: pulse 2s infinite;
}

/* Generate Button AI Style */
#btn-generate-methods {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s;
}

#btn-generate-methods:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#btn-generate-methods:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Confirm Button Success State */
#btn-confirm-methods.confirmed,
#btn-confirm-methods[style*="pcp-success"] {
    background: var(--pcp-success) !important;
    border-color: var(--pcp-success) !important;
}

/* Action Buttons Group */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.action-buttons .btn {
    flex: 0 0 auto;
}

.action-buttons .btn.primary {
    flex: 1;
}

/* Save Indicator */
#methods-save-indicator {
    font-size: 13px;
    color: var(--pcp-success);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

#methods-save-indicator[style*="inline"] {
    opacity: 1;
}

/* Table Scrolling on Small Screens */
@media (max-width: 1200px) {
    .methods-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .methods-table {
        min-width: 900px;
    }
}

/* Responsive Methods Table */
@media (max-width: 768px) {
    .methods-table {
        font-size: 13px;
    }
    
    .methods-table th,
    .methods-table td {
        padding: 8px;
    }
    
    .methods-table select,
    .methods-table textarea {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .methods-table textarea {
        min-height: 50px;
    }
    
    .methods-extract-section,
    .methods-list-section,
    .methods-generate-section,
    .methods-output-section {
        padding: 16px;
    }
    
    #methods-text {
        font-size: 14px;
        padding: 12px;
        min-height: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

/* Methods Tab Specific Help Section */
.methods-list-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--pcp-gray-900);
}

.methods-output-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--pcp-gray-900);
}

/* Loading State in Table */
#methods-table-container .pcp-loading {
    padding: 40px;
    text-align: center;
}

/* Cost Badge in Button */
.btn .cost-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .pcp-wrap {
        padding: 10px;
    }
    
    .action-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .pcp-figure-thumb {
        max-width: 150px;
        max-height: 150px;
    }
    
    .pcp-token-bar {
        top: 0;
        flex-direction: column;
        gap: 10px;
    }
}
