@import url('./design-tokens.css');
/* Color Wheel Container */
#color-wheel-container {
    display: none;              /* Initially hidden - shown via topbar button */
    flex-direction: column;     /* Header oben, Chart füllt den Rest */
    position: absolute;
    top: 570px;
    left: 10px;
    width: 420px;         /* oder 100% */
    height: 680px;        /* feste Startgröße, damit chart != 0 ist */
    resize: both;
    min-width: 500px;     /* Mindestgröße 500x500 Pixel */
    min-height: 700px;
    max-width: 75vw;
    max-height: 75vh;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #00bfff;
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 1040;
    user-select: none;
    pointer-events: auto;
}

/* When shown, use flex layout */
#color-wheel-container:not([style*="display: none"]),
#color-wheel-container[style*="display: flex"],
#color-wheel-container[style*="display: block"] {
    display: flex !important;
}

/* OLD Fullscreen class - deprecated, kept for backward compatibility */
/* Use .window-fullscreen from components.css instead */
#color-wheel-container.fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    z-index: var(--z-dropdown);
    resize: none !important;  /* Disable resize in fullscreen */
    overflow: hidden !important;  /* Hide scrollbars in fullscreen */
}

/* Header nutzt jetzt unified-header System aus window-header-unified.css */
#color-wheel-header {
    /* Unified Header übernimmt die meisten Styles */
    flex-shrink: 0;
}

/* Shimmer-Animation entfernt - unified header */

#color-wheel-title {
    flex: 1;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-align: left;
    margin-right: auto;
    padding-left: 10px;
}

#color-wheel-header .controls {
    display: flex;
    gap: 0px;
    align-items: center;
    margin-left: auto;
}

/* Toggle mode styling */
.header-title-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    flex: 1;
}

.header-title-group:hover {
    background: var(--glass-bg-light);
}

.mode-icon {
    font-size: 16px;
    line-height: 1;
}

.title-with-mode {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.mode-indicator {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.85;
    color: #00ffff;
    line-height: 1;
}

.header-title-group[data-mode="confidentiality"] .mode-indicator {
    color: #ffa500;
}

/* Buttons wie gehabt */
.audio-help-btn,
#color-wheel-fullscreen,
#color-wheel-toggle,
#color-wheel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    transition: background 0.18s;
    position: relative;
    z-index: var(--z-modal) !important;
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-help-btn {
    background: rgba(73, 167, 255, 0.15);
    border: 1.5px solid rgba(73, 167, 255, 0.4);
    margin-right: 8px;
    font-size: 16px;
}

.audio-help-btn:hover {
    background: rgba(73, 167, 255, 0.25);
    border-color: rgba(73, 167, 255, 0.6);
}

#color-wheel-fullscreen:hover,
#color-wheel-toggle:hover { background: #222; }
#color-wheel-close:hover   { background: #a00; }

/* Balance-Score Inline-Button (links neben Wichtigkeit-Switcher) */
.cw-balance-inline-btn {
    background: rgba(0, 220, 255, 0.14);
    border: 1.5px solid rgba(0, 220, 255, 0.5);
    border-radius: 20px;
    color: #00ddff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.cw-balance-inline-btn:hover {
    background: rgba(0, 220, 255, 0.26);
    box-shadow: 0 0 16px rgba(0, 220, 255, 0.35);
}

/* Legacy toolbar (nicht mehr genutzt) */
.cw-balance-toolbar { display: none; }
.cw-balance-toolbar button { display: none; }

#color-wheel-chart {
  flex: 1 1 auto;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

#color-wheel-chart canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}





