
/* Notat-panel Styles */
.notes-toggle-btn {
    position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); color: white; padding: 5px 10px;
    border-radius: 4px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s;
}
.notes-toggle-btn:hover { background: rgba(255,255,255,0.2); }

.notes-panel {
    margin-top: 20px; width: 100%; max-width: 1000px; background: #1a1a1a;
    border-radius: 6px; padding: 15px; border: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; gap: 10px;
}
.notes-panel h4 { margin: 0; color: var(--klar-text); font-weight: 600; }
.notes-list {
    display: flex; flex-direction: column; gap: 10px; max-height: 200px;
    overflow-y: auto; padding-right: 5px;
}
.note-item {
    background: rgba(255,255,255,0.05); padding: 10px; border-radius: 4px;
    font-size: 0.9rem;
}
.note-header {
    display: flex; justify-content: space-between; font-size: 0.8rem;
    color: var(--klar-text-muted); margin-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3px;
}
.note-content { color: white; white-space: pre-wrap; }
.notes-input-area { display: flex; gap: 10px; margin-top: 5px; }
.notes-input-area textarea {
    flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    color: white; padding: 8px; border-radius: 4px; font-family: 'Outfit', sans-serif;
    resize: vertical; min-height: 40px;
}
.notes-input-area button {
    background: var(--klar-primary); color: white; border: none; padding: 0 15px;
    border-radius: 4px; cursor: pointer; font-weight: 600;
}
.notes-input-area button:hover { background: #2980b9; }

/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 20;
}
.video-container:hover .custom-video-controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.2s;
}
.control-btn:hover {
    color: var(--klar-primary);
}

.time-display {
    color: white;
    font-size: 12px;
    font-family: monospace;
    user-select: none;
}

.progress-bar {
    flex: 1;
    cursor: pointer;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    outline: none;
}
.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}
.progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

/* Info Tabs Styles */
.info-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}
.info-tab-btn:hover {
    color: white;
}
.info-tab-btn.active {
    color: white;
    border-bottom: 2px solid var(--klar-primary);
}

.player-list-item {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 4px;
    margin-left: -4px;
    transition: background 0.2s, color 0.2s;
}
.player-list-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Ghosting CSS */
.defending-ghost-player {
    opacity: 0.7;
    border-style: dashed !important;
    pointer-events: none; /* Skal ikke kunne dras */
    z-index: 100;
}
.ghost-player {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease, top 0.3s ease;
}
