/**
 * Process Management Tool Styles
 * Part of BPRboard Process Management System (Phase 2)
 * Follows Catppuccin dark theme color palette
 */

/* Container */
.process-management-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

/* Header with stats */
.pm-header {
    margin-bottom: 30px;
}

.pm-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color, #89b4fa);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: var(--text-muted, #a6adc8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toolbar */
.pm-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
    flex-wrap: wrap;
}

.pm-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-select {
    padding: 10px 15px;
    background: rgba(49, 50, 68, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    color: var(--text-primary, #f2f2ed);
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    background: rgba(69, 71, 90, 0.8);
    border-color: var(--primary-color, #89b4fa);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color, #89b4fa);
    box-shadow: 0 0 0 2px rgba(137, 180, 250, 0.2);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    background: rgba(49, 50, 68, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    color: var(--text-primary, #f2f2ed);
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color, #89b4fa);
    box-shadow: 0 0 0 2px rgba(137, 180, 250, 0.2);
}

.search-input::placeholder {
    color: var(--text-muted, #a6adc8);
}

.pm-actions {
    display: flex;
    gap: 10px;
}

/* Process Grid */
.pm-library {
    min-height: 400px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Process Card */
.process-card {
    position: relative;
    background: rgba(30, 30, 46, 0.8);
    border: 2px solid var(--border-color, #313244);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.process-card:hover {
    border-color: var(--primary-color, #89b4fa);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.process-card.selected {
    border-color: var(--primary-color, #89b4fa);
    background: rgba(137, 180, 250, 0.1);
}

/* Card selection */
.card-select {
    position: absolute;
    top: 15px;
    left: 15px;
}

.process-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color, #89b4fa);
}

/* Card header */
.card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft {
    background: rgba(166, 173, 200, 0.2);
    color: var(--text-muted, #a6adc8);
}

.status-candidate {
    background: rgba(249, 226, 175, 0.2);
    color: var(--yellow, #f9e2af);
}

.status-best {
    background: rgba(166, 227, 161, 0.2);
    color: var(--green, #a6e3a1);
}

.status-archived {
    background: rgba(108, 112, 134, 0.2);
    color: var(--gray, #6c7086);
}

/* Card body */
.card-body {
    margin-bottom: 15px;
}

.process-name {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-primary, #f2f2ed);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.process-description {
    font-size: 0.9em;
    color: var(--text-muted, #a6adc8);
    line-height: 1.5;
    margin: 0 0 15px 0;
}

/* Metrics preview */
.metrics-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(49, 50, 68, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.metric-item {
    flex: 1;
    min-width: 0;
    text-align: center;
    overflow: hidden;
}

.metric-label {
    display: block;
    font-size: 0.7em;
    color: var(--text-muted, #a6adc8);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-value {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color, #89b4fa);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tags */
.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(137, 180, 250, 0.2);
    border: 1px solid rgba(137, 180, 250, 0.3);
    border-radius: 12px;
    font-size: 0.8em;
    color: var(--primary-color, #89b4fa);
}

/* Card meta */
.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: var(--text-muted, #a6adc8);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card actions */
.card-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color, #313244);
}

.card-action-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(49, 50, 68, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 6px;
    color: var(--text-primary, #f2f2ed);
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-action-btn:hover {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
    border-color: var(--primary-color, #89b4fa);
}

.card-action-btn.delete-btn:hover {
    background: var(--red, #f38ba8);
    border-color: var(--red, #f38ba8);
}

.card-action-btn.best-btn:hover {
    background: var(--green, #a6e3a1);
    border-color: var(--green, #a6e3a1);
    color: #1e1e2e;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: rgba(30, 30, 46, 0.6);
    border: 2px dashed var(--border-color, #313244);
    border-radius: 12px;
}

.empty-icon {
    font-size: 5em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.8em;
    color: var(--text-primary, #f2f2ed);
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1em;
    color: var(--text-muted, #a6adc8);
    margin-bottom: 10px;
}

.empty-state .hint {
    font-size: 0.95em;
    font-style: italic;
    margin-bottom: 30px;
}

/* Details view */
.process-details-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(49, 50, 68, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    color: var(--text-primary, #f2f2ed);
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
    border-color: var(--primary-color, #89b4fa);
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
    flex-wrap: wrap;
}

.details-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-title h2 {
    font-size: 2em;
    color: var(--text-primary, #f2f2ed);
    margin: 0;
}

.details-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Details sections */
.details-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.details-section {
    padding: 25px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.details-section h3 {
    font-size: 1.5em;
    color: var(--text-primary, #f2f2ed);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color, #313244);
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.85em;
    color: var(--text-muted, #a6adc8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 1.05em;
    color: var(--text-primary, #f2f2ed);
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.metric-card {
    padding: 20px;
    background: rgba(49, 50, 68, 0.5);
    border: 1px solid var(--border-color, #313244);
    border-radius: 10px;
    text-align: center;
}

.metric-name {
    font-size: 0.85em;
    color: var(--text-muted, #a6adc8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.metric-card .metric-value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color, #89b4fa);
}

/* Model summary */
.model-summary {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.model-stat {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: rgba(49, 50, 68, 0.5);
    border-radius: 10px;
    text-align: center;
}

.model-stat .stat-label {
    display: block;
    font-size: 0.9em;
    color: var(--text-muted, #a6adc8);
    margin-bottom: 10px;
}

.model-stat .stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color, #89b4fa);
}

/* Transformation list */
.transformation-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transformation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(49, 50, 68, 0.5);
    border-radius: 8px;
    gap: 15px;
    flex-wrap: wrap;
}

.transformation-type {
    font-weight: 600;
    color: var(--primary-color, #89b4fa);
}

.transformation-tool {
    color: var(--text-muted, #a6adc8);
}

.transformation-date {
    font-size: 0.9em;
    color: var(--text-muted, #a6adc8);
}

/* Comparison view */
.comparison-container {
    padding: 20px;
}

/* Settings panel */
.settings-content {
    height: 100%;
    overflow-y: auto;
}

.pm-settings {
    padding: 15px;
}

.pm-settings h3 {
    font-size: 1.3em;
    color: var(--text-primary, #f2f2ed);
    margin: 0 0 20px 0;
}

.pm-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #313244);
}

.pm-section:last-child {
    border-bottom: none;
}

.pm-section h4 {
    font-size: 1em;
    color: var(--text-secondary, #cdd6f4);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-btn {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: rgba(49, 50, 68, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    color: var(--text-primary, #f2f2ed);
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.settings-btn:hover {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
    border-color: var(--primary-color, #89b4fa);
}

.settings-btn.danger:hover {
    background: var(--red, #f38ba8);
    border-color: var(--red, #f38ba8);
}

.setting-hint {
    font-size: 0.85em;
    color: var(--text-muted, #a6adc8);
    font-style: italic;
    margin-top: 10px;
}

/* Stats list */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(49, 50, 68, 0.5);
    border-radius: 6px;
}

.stat-row span {
    color: var(--text-muted, #a6adc8);
}

.stat-row strong {
    color: var(--text-primary, #f2f2ed);
}

/* Action buttons */
.action-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
    border-color: var(--primary-color, #89b4fa);
}

.action-btn.primary:hover {
    background: var(--purple, #cba6f7);
    border-color: var(--purple, #cba6f7);
}

.action-btn.secondary {
    background: rgba(49, 50, 68, 0.8);
    color: var(--text-primary, #f2f2ed);
}

.action-btn.secondary:hover {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
    border-color: var(--primary-color, #89b4fa);
}

.action-btn.danger {
    background: rgba(243, 139, 168, 0.2);
    color: var(--red, #f38ba8);
    border-color: var(--red, #f38ba8);
}

.action-btn.danger:hover {
    background: var(--red, #f38ba8);
    color: #1e1e2e;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn:disabled:hover {
    background: rgba(49, 50, 68, 0.8);
    color: var(--text-primary, #f2f2ed);
    border-color: var(--border-color, #313244);
}

/* Responsive design */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .pm-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-filters {
        flex-direction: column;
    }

    .details-header {
        flex-direction: column;
    }

    .details-actions {
        width: 100%;
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .metrics-preview {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pm-stats {
        flex-direction: column;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-action-btn {
        width: 100%;
    }
}

/* ========================================
   COMPARISON VIEW STYLES
   ======================================== */

/* Comparison container */
.comparison-container {
    height: 100%;
    overflow-y: auto;
}

/* Comparison header */
.comparison-header {
    margin-bottom: 30px;
}

.comparison-title {
    margin-top: 15px;
}

.comparison-title h2 {
    font-size: 2em;
    color: var(--text-primary, #f2f2ed);
    margin: 0 0 10px 0;
}

.comparison-title p {
    font-size: 1.05em;
    color: var(--text-muted, #a6adc8);
    margin: 0;
}

/* Comparison error state */
.comparison-error {
    text-align: center;
    padding: 80px 40px;
    background: rgba(243, 139, 168, 0.1);
    border: 2px dashed var(--red, #f38ba8);
    border-radius: 12px;
    margin-top: 20px;
}

.error-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.comparison-error h3 {
    font-size: 1.8em;
    color: var(--red, #f38ba8);
    margin-bottom: 15px;
}

.comparison-error p {
    font-size: 1.1em;
    color: var(--text-muted, #a6adc8);
    margin-bottom: 10px;
}

/* Summary section */
.comparison-summary {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.comparison-summary h3 {
    font-size: 1.5em;
    color: var(--text-primary, #f2f2ed);
    margin: 0 0 20px 0;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    padding: 20px;
    background: rgba(49, 50, 68, 0.5);
    border: 1px solid var(--border-color, #313244);
    border-radius: 10px;
    text-align: center;
}

.summary-card .card-label {
    font-size: 0.85em;
    color: var(--text-muted, #a6adc8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.summary-card .card-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color, #89b4fa);
}

/* Metric selection */
.metric-selection {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.metric-selection label {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-secondary, #cdd6f4);
    margin-bottom: 15px;
}

.metric-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.metric-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(49, 50, 68, 0.5);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    color: var(--text-primary, #f2f2ed);
    cursor: pointer;
    transition: all 0.3s ease;
}

.metric-checkbox-label:hover {
    background: rgba(137, 180, 250, 0.1);
    border-color: var(--primary-color, #89b4fa);
}

.metric-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color, #89b4fa);
}

/* Comparison table */
.comparison-table-container {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
    overflow-x: auto;
}

.comparison-table-container h3 {
    font-size: 1.5em;
    color: var(--text-primary, #f2f2ed);
    margin: 0 0 20px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.comparison-table thead {
    background: rgba(49, 50, 68, 0.5);
}

.comparison-table th {
    padding: 15px;
    text-align: left;
    color: var(--text-secondary, #cdd6f4);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color, #313244);
}

.comparison-table th.winner {
    background: rgba(166, 227, 161, 0.2);
    color: var(--green, #a6e3a1);
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color, #313244);
    color: var(--text-primary, #f2f2ed);
}

.comparison-table tbody tr:hover {
    background: rgba(49, 50, 68, 0.3);
}

.comparison-table .metric-name {
    font-weight: 600;
    color: var(--text-secondary, #cdd6f4);
}

.comparison-table .metric-value {
    text-align: center;
}

.comparison-table .best-value {
    color: var(--green, #a6e3a1);
    font-weight: bold;
}

.comparison-table .variance-value {
    text-align: center;
    color: var(--text-muted, #a6adc8);
    font-style: italic;
}

/* Winner analysis */
.winner-analysis {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(166, 227, 161, 0.1);
    border: 2px solid var(--green, #a6e3a1);
    border-radius: 12px;
}

.winner-analysis h3 {
    font-size: 1.5em;
    color: var(--green, #a6e3a1);
    margin: 0 0 20px 0;
}

.winner-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.winner-info h4 {
    font-size: 1.3em;
    color: var(--text-primary, #f2f2ed);
    margin: 0 0 15px 0;
}

.winner-info p {
    font-size: 1em;
    color: var(--text-primary, #f2f2ed);
    margin: 8px 0;
}

.winner-strengths h5 {
    font-size: 1.1em;
    color: var(--text-secondary, #cdd6f4);
    margin: 0 0 15px 0;
}

.winner-strengths ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.winner-strengths li {
    padding: 8px 0;
    padding-left: 25px;
    color: var(--text-primary, #f2f2ed);
    position: relative;
}

.winner-strengths li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--green, #a6e3a1);
    font-weight: bold;
}

/* Recommendations */
.comparison-recommendations {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.comparison-recommendations h3 {
    font-size: 1.5em;
    color: var(--text-primary, #f2f2ed);
    margin: 0 0 20px 0;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(49, 50, 68, 0.5);
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.recommendation-item.high {
    border-left-color: var(--red, #f38ba8);
    background: rgba(243, 139, 168, 0.1);
}

.recommendation-item.medium {
    border-left-color: var(--yellow, #f9e2af);
    background: rgba(249, 226, 175, 0.1);
}

.recommendation-item.low {
    border-left-color: var(--green, #a6e3a1);
    background: rgba(166, 227, 161, 0.1);
}

.rec-icon {
    font-size: 1.5em;
    line-height: 1;
}

.rec-content {
    flex: 1;
}

.rec-content strong {
    display: block;
    font-size: 1.05em;
    color: var(--text-primary, #f2f2ed);
    margin-bottom: 5px;
}

.rec-content p {
    font-size: 0.95em;
    color: var(--text-muted, #a6adc8);
    margin: 0;
    line-height: 1.5;
}

/* Process details grid */
.process-details-grid {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.process-details-grid h3 {
    font-size: 1.5em;
    color: var(--text-primary, #f2f2ed);
    margin: 0 0 20px 0;
}

.process-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.comparison-process-card {
    padding: 20px;
    background: rgba(49, 50, 68, 0.5);
    border: 2px solid var(--border-color, #313244);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.comparison-process-card:hover {
    border-color: var(--primary-color, #89b4fa);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.comparison-process-card.winner-card {
    border-color: var(--green, #a6e3a1);
    background: rgba(166, 227, 161, 0.1);
}

.comparison-process-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #313244);
}

.comparison-process-card .card-header h4 {
    font-size: 1.2em;
    color: var(--text-primary, #f2f2ed);
    margin: 0;
}

.comparison-process-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comparison-process-card .card-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comparison-process-card .metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(30, 30, 46, 0.5);
    border-radius: 6px;
}

.comparison-process-card .metric-label {
    font-size: 0.9em;
    color: var(--text-muted, #a6adc8);
}

.comparison-process-card .metric-value {
    font-weight: 600;
    color: var(--primary-color, #89b4fa);
}

.comparison-process-card .card-meta {
    font-size: 0.9em;
    color: var(--text-muted, #a6adc8);
}

.comparison-process-card .card-meta p {
    margin: 5px 0;
}

.comparison-process-card .card-description {
    font-style: italic;
    padding-top: 10px;
    border-top: 1px solid rgba(49, 50, 68, 0.5);
}

/* Comparison actions */
.comparison-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 25px;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
    flex-wrap: wrap;
}

/* Responsive comparison view */
@media (max-width: 1024px) {
    .winner-details {
        grid-template-columns: 1fr;
    }

    .process-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .comparison-table-container {
        overflow-x: scroll;
    }

    .comparison-table {
        min-width: 600px;
    }

    .metric-checkboxes {
        flex-direction: column;
    }

    .comparison-actions {
        flex-direction: column;
    }

    .comparison-actions .action-btn {
        width: 100%;
    }
}
