/* Controls Styles for PressPective Viewer */

/* Layout Controls */
.layout-controls {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 6px;
}

.layout-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.layout-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.layout-button.active {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.4);
    color: #4a9eff;
}

/* Pane Controls */
.pane-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(26, 26, 26, 0.95);
    padding: 8px;
    border-radius: 6px;
    z-index: 1000;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* File Selector Styles */
.file-selector select {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.file-selector select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.file-selector select:focus {
    outline: none;
    border-color: rgba(74, 158, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

/* Dropdown Options Styling */
.file-selector select option {
    background-color: #1a1a1a;
    color: white;
    padding: 8px;
}

.file-selector select option:hover,
.file-selector select option:focus,
.file-selector select option:active,
.file-selector select option:checked {
    background-color: rgba(74, 158, 255, 0.2);
}

/* For Firefox */
.file-selector select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 white;
}

/* For IE/Edge */
.file-selector select::-ms-expand {
    display: none;
}

/* Sync Button */
.sync-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sync-button.synced {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    border-color: rgba(74, 158, 255, 0.4);
}

.sync-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sync-button.synced:hover {
    background: rgba(74, 158, 255, 0.25);
}

.sync-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.sync-button.synced .sync-icon {
    transform: rotate(180deg);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Header button styling */
.header-button {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.header-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-button svg {
    width: 20px;
    height: 20px;
}

.header-button.active {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
}

/* Help/Tutorial Button */
#help-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(74, 158, 255, 0.8);
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 3000;
    transition: all 0.3s ease;
}

#help-button:hover {
    background: rgba(74, 158, 255, 1);
    transform: scale(1.05);
}

/* Checkbox styling */
.filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
}

.filter-group input[type="checkbox"]:checked {
    background: #4a9eff;
    border-color: #4a9eff;
}

.filter-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    left: 2px;
    top: -1px;
}

.annotating {
    cursor: crosshair;
}

/* Keyboard shortcut styling */
.keyboard-shortcut {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}
