/* ============================================
   THRILLER BOARD - Canvas Style for Mystery Elements
   ============================================ */

/* ============================================
   MAIN CONTAINER
   ============================================ */

.thriller-board-container {
    display: flex;
    height: 100vh;
    background: var(--bg-primary);
}

/* ============================================
   CANVAS AREA
   ============================================ */

.thriller-board-canvas-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.thriller-board-canvas {
    position: absolute;
    width: 3000px;
    height: 2000px;
    cursor: grab;
    transform-origin: 0 0;
    transition: transform 0.1s ease;
}

.thriller-board-canvas.dragging {
    cursor: grabbing;
}

.thriller-board-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.thriller-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.thriller-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.thriller-empty-icon svg {
    width: 40px;
    height: 40px;
}

.thriller-empty-state h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.thriller-empty-state p {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   FLOATING ADD BUTTON
   ============================================ */

.floating-add-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
}

.floating-add-button:hover {
    background: #f0a000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.floating-add-button:active {
    transform: scale(0.95);
}

.floating-add-button svg {
    width: 28px;
    height: 28px;
}

/* ============================================
   ELEMENTS
   ============================================ */

.thriller-element-card {
    position: absolute;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s ease;
}

.thriller-element-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.thriller-element-card.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.thriller-element-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: white;
    gap: 12px;
}

.thriller-element-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thriller-element-icon svg {
    width: 20px;
    height: 20px;
}

.thriller-element-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thriller-element-actions {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.thriller-element-card:hover .thriller-element-actions {
    opacity: 1;
}

.thriller-element-content {
    padding: 16px;
}

.thriller-element-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ============================================
   CONNECTIONS
   ============================================ */

.thriller-connection {
    pointer-events: none;
    stroke-linecap: round;
}

/* ============================================
   CONTEXT PANEL
   ============================================ */

.thriller-board-context-panel {
    width: 300px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.thriller-board-context-panel.collapsed {
    width: 50px;
}

.thriller-context-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.thriller-context-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.thriller-context-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.thriller-stats h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.thriller-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.thriller-stat-item:last-child {
    border-bottom: none;
}

.thriller-stat-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thriller-stat-icon svg {
    width: 16px;
    height: 16px;
}

.thriller-stat-label {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
}

.thriller-stat-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 12px;
}

.thriller-recent h4 {
    margin: 20px 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.thriller-recent-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-bottom: 4px;
}

.thriller-recent-item:hover {
    background: var(--bg-tertiary);
}

.thriller-recent-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thriller-recent-icon svg {
    width: 14px;
    height: 14px;
}

.thriller-recent-title {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   TYPE SELECTOR MODAL
   ============================================ */

.thriller-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.thriller-type-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 56px;
}

.thriller-type-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 6px 22px rgba(255, 193, 7, 0.12);
    transform: translateY(-2px);
}

.thriller-type-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.thriller-type-icon svg {
    width: 24px;
    height: 24px;
}

.thriller-type-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.thriller-type-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

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

@media (max-width: 768px) {
    .thriller-board-toolbar {
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .thriller-toolbar-left,
    .thriller-toolbar-center,
    .thriller-toolbar-right {
        flex: 1;
        justify-content: center;
    }

    .thriller-board-context-panel {
        width: 250px;
    }

    .thriller-board-context-panel.collapsed {
        width: 40px;
    }

    .thriller-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MODAL FORM ENHANCEMENTS
   ============================================ */

/* Form rows for side-by-side fields */
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Form sections with background */
.form-section {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color)
    background-color: var(--bg-primary);
    margin-bottom: 16px;
}

.form-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Character and Scene Pills */
.character-pills-container,
.scene-pills-container {
    margin-bottom: 8px;
}

.pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 32px;
}

.character-pill,
.scene-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--accent-gold);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.character-pill {
    background-color: #3498db;
}

.scene-pill {
    background-color: #9b59b6;
}

.pill-remove {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.pill-remove:hover {
    opacity: 1;
}

.pill-selector {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
}

/* List items for weaknesses, misleading clues, etc. */
.list-item-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.list-item-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
}

.list-item-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    .thriller-element-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .thriller-element-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .form-section {
        background-color: var(--bg-primary);
    }
}
/* ============================================
   GRID VIEW
   ============================================ */

.thriller-grid-view {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg-primary);
}

.thriller-board-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

.thriller-board-toolbar .btn.active {
    background: var(--accent-gold);
    color: white;
}

.thriller-grid-container {
    flex: 1;
    overflow: auto;
    padding: 24px;
    background: var(--bg-tertiary);
}

.thriller-grid-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.thriller-grid-empty-state i {
    margin-bottom: 16px;
}

.thriller-grid-empty-state p {
    margin: 12px 0 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Grid Table */
.thriller-grid-table {
    display: table;
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Header Row */
.thriller-grid-header-row {
    display: table-row;
    background: var(--bg-secondary);
}

.thriller-grid-row-header-cell {
    display: table-cell;
    padding: 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    border-right: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    min-width: 180px;
    max-width: 180px;
    vertical-align: middle;
    position: sticky;
    left: 0;
    z-index: 10;
    background: var(--bg-secondary);
}

.thriller-grid-column-header {
    display: table-cell;
    padding: 16px;
    border-right: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    min-width: 280px;
    width: 320px;
    vertical-align: middle;
    background: var(--bg-secondary);
}

.thriller-grid-column-header:last-child {
    border-right: none;
}

.thriller-grid-column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.btn-icon-sm {
    padding: 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-icon-sm:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-icon-sm i {
    width: 14px;
    height: 14px;
}

/* Swimlane Row */
.thriller-grid-row {
    display: table-row;
}

.thriller-grid-row-header {
    display: table-cell;
    padding: 16px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    min-width: 180px;
    max-width: 180px;
    vertical-align: top;
    position: sticky;
    left: 0;
    z-index: 5;
    background: var(--bg-primary);
}

.thriller-grid-row-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.thriller-grid-row-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.thriller-grid-row-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.thriller-grid-row-header:hover .thriller-grid-row-actions {
    opacity: 1;
}

/* Grid Cell */
.thriller-grid-cell {
    display: table-cell;
    padding: 12px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    min-width: 280px;
    width: 320px;
    max-height: 500px;
    vertical-align: top;
    background: var(--bg-primary);
    position: relative;
}

.thriller-grid-cell:last-child {
    border-right: none;
}

.thriller-grid-cell-empty {
    min-height: 150px;
    background: var(--bg-primary);
    transition: all 0.2s ease;
    position: relative;
}

.thriller-grid-cell-empty::before {
    content: 'Déposer un élément ici';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.thriller-grid-cell-empty:hover::before {
    opacity: 0.5;
}

.thriller-grid-cell-empty.drop-target-hover::before {
    content: 'Déposer ici';
    opacity: 1;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Card Stack */
.thriller-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.thriller-card-wrapper {
    position: relative;
    top: 0;
    left: 0;
    width: calc(100% - 24px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: grab;
}

.thriller-card-wrapper:active {
    cursor: grabbing;
}

.thriller-card-wrapper:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Drag & Drop States */
.thriller-card-wrapper.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: scale(0.95) rotate(2deg);
    z-index: 9999;
}

.thriller-grid-cell.drop-target-hover {
    background: rgba(212, 175, 55, 0.1);
    border: 2px dashed var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Stack Indicator */
.thriller-stack-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    z-index: 1001;
    pointer-events: none;
}

.thriller-stack-count {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.thriller-stack-more {
    color: var(--accent-gold);
    font-size: 10px;
    font-weight: 500;
}

.thriller-card-count-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000;
}

.thriller-card-count-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thriller-stack-add-btn {
    position: absolute;
    top: 8px;
    left: 0;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000;
}

.thriller-stack-add-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

.thriller-stack-add-btn i {
    width: 16px;
    height: 16px;
}

/* Stack Modal */
.thriller-stack-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.thriller-stack-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.thriller-stack-modal-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gold);
}

.thriller-stack-modal-item-header {
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.thriller-stack-modal-item-header i {
    width: 14px;
    height: 14px;
}

.thriller-stack-modal-item-content {
    flex: 1;
}

.thriller-stack-modal-item-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.thriller-stack-modal-item-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.thriller-stack-modal-item-status i {
    width: 12px;
    height: 12px;
}

.thriller-stack-modal-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Thriller Card */
.thriller-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
}

.thriller-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Card Header */
.thriller-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.thriller-card-header:hover {
    opacity: 0.9;
}

.thriller-card-header i {
    flex-shrink: 0;
}

.thriller-card-type {
    flex-shrink: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.thriller-card-title {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thriller-card-delete-btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 24px;
    height: 24px;
}

.thriller-card-delete-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.thriller-card-header:hover .thriller-card-delete-btn,
.thriller-card-delete-btn:focus {
    opacity: 1;
}

.thriller-card-delete-btn i {
    width: 14px;
    height: 14px;
}

/* Card Body */
.thriller-card-body {
    padding: 12px;
    background: var(--bg-primary);
    cursor: default;
}

.thriller-card-property {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
}

.thriller-card-property:last-child {
    margin-bottom: 0;
}

.thriller-card-property-header {
    font-size: 12px;
    margin-bottom: 8px;
}

.thriller-card-property-header .thriller-card-property-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.thriller-card-property-content {
    flex: 1;
    font-size: 12px;
    line-height: 1.4;
}

.thriller-card-property-label {
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 2px;
}

.thriller-card-property-value {
    color: var(--text-primary);
    display: block;
}

/* Card Socket */
.thriller-card-socket {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    transition: all 0.15s ease;
    position: relative;
}

.thriller-card-socket-left {
    margin-right: 8px;
}

.thriller-card-socket-right {
    margin-left: 8px;
}

.thriller-card-socket:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.2);
}

.thriller-card-socket.active-socket {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.3);
}

.thriller-card-socket.hover-target {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.thriller-card-socket.hover-target i {
    color: white;
}

.thriller-card-socket.connected-highlight {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.3);
    z-index: 100;
}

.thriller-card-socket.connected-highlight i {
    color: white;
}

.thriller-card-socket i {
    width: 10px;
    height: 10px;
    color: var(--text-muted);
}

.thriller-card-socket:hover i {
    color: white;
}

/* Card Footer */
.thriller-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.thriller-card-footer:hover {
    filter: brightness(1.1);
}

.thriller-card-footer i {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .thriller-grid-container {
        padding: 16px;
    }

    .thriller-grid-cell {
        min-width: 240px;
    }

    .thriller-grid-column-header {
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .thriller-grid-container {
        padding: 12px;
    }

    .thriller-grid-cell {
        min-width: 200px;
    }

    .thriller-grid-column-header {
        min-width: 200px;
    }

    .thriller-grid-row-header-cell {
        min-width: 140px;
        max-width: 140px;
    }

    .thriller-grid-row-header {
        min-width: 140px;
        max-width: 140px;
    }
}

/* Connection SVG Styles */
.thriller-grid-connections {
    pointer-events: none;
}

.thriller-connection-line {
    pointer-events: stroke;
    transition: all 0.2s ease;
}

.temp-connection {
    pointer-events: none;
    opacity: 0.7;
}

.thriller-grid-wrapper {
    position: relative;
}

.thriller-grid-table {
    position: relative;
}

/* ============================================
   CARD STATUS POPOVER
   ============================================ */

.thriller-card-status-popover {
    position: fixed;
    z-index: 10000;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.thriller-card-status-popover-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    min-width: 200px;
}

.thriller-card-status-popover-header {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.thriller-card-status-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-left: 3px solid transparent;
    font-size: 13px;
    color: var(--text-primary);
}

.thriller-card-status-option:hover {
    background: var(--bg-tertiary);
}

.thriller-card-status-option.active {
    background: var(--bg-tertiary);
    font-weight: 600;
}

.thriller-card-status-option i {
    flex-shrink: 0;
}

.thriller-card-status-option span {
    flex: 1;
}
