/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c42 100%);
    min-height: 100vh;
}

/* Header styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

.header__nav {
    display: flex;
    gap: 1rem;
}

.header__link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header__link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.header__link--active {
    background: #667eea;
    color: white;
    font-weight: 600;
}

/* Main content */
.main {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.cube-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* View controls */
.view-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.view-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.view-btn.active,
.edit-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Cube visualization container */
.cube-visualization {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    perspective: 1000px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* View-specific container styles */
.cube-visualization.view-3d {
    perspective: 1000px;
}

.cube-visualization.view-net {
    perspective: none;
}

/* Controls */
.controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.control-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.control-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn:active {
    transform: translateY(0);
}

.camera-btn {
    background: #007bff;
}

.camera-btn:hover {
    background: #0056b3;
}

.edit-btn {
    background: #6f42c1;
}

.edit-btn:hover {
    background: #5a32a3;
}

.validate-btn {
    background: #28a745;
}

.validate-btn:hover {
    background: #218838;
}

.reset-btn {
    background: #dc3545;
}

.reset-btn:hover {
    background: #c82333;
}

.solve-btn {
    background: #ffc107;
    grid-column: 1 / -1;
}

.solve-btn:hover {
    background: #e0a800;
}

.btn-icon {
    font-size: 1.2rem;
}

/* About page styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-section p,
.about-section li {
    color: #555;
    margin-bottom: 0.5rem;
}

.about-section ul,
.about-section ol {
    padding-left: 2rem;
}

.about-section li {
    margin-bottom: 0.75rem;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/*
 Instruction Modal */
.instruction-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.instruction-modal--show {
    opacity: 1;
    visibility: visible;
}

.instruction-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.instruction-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.instruction-modal--show .instruction-modal__content {
    transform: scale(1);
}

.instruction-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.instruction-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.instruction-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instruction-modal__close:hover {
    background-color: #e9ecef;
    color: #333;
}

.instruction-modal__body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    flex: 1;
}

/* Custom scrollbar for instruction modal */
.instruction-modal__body::-webkit-scrollbar {
    width: 8px;
}

.instruction-modal__body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.instruction-modal__body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.instruction-modal__body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.instruction-modal__message {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.instruction-modal__footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    flex-shrink: 0;
}

.instruction-modal__launch,
.instruction-modal__import,
.instruction-modal__cancel {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.instruction-modal__launch {
    background: #007bff;
    color: white;
}

.instruction-modal__launch:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.instruction-modal__import {
    background: #28a745;
    color: white;
}

.instruction-modal__import:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

.instruction-modal__cancel {
    background: #6c757d;
    color: white;
}

.instruction-modal__cancel:hover {
    background: #545b62;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .instruction-modal__content {
        width: 95vw;
        margin: 1rem;
    }
    
    .instruction-modal__footer {
        flex-direction: column;
    }
    
    .instruction-modal__launch,
    .instruction-modal__import,
    .instruction-modal__cancel {
        width: 100%;
    }
}
/* I
mport Notifications */
.import-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #007bff;
    max-width: 400px;
    z-index: 1100;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
}

.import-notification--show {
    opacity: 1;
    transform: translateX(0);
}

.import-notification--success {
    border-left-color: #28a745;
}

.import-notification--warning {
    border-left-color: #ffc107;
}

.import-notification--error {
    border-left-color: #dc3545;
}

.import-notification__content {
    flex: 1;
}

.import-notification__title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.import-notification__message {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.import-notification__close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.import-notification__close:hover {
    background: #f0f0f0;
    color: #666;
}

@media (max-width: 768px) {
    .import-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}/* Camera S
tatus Display */
.camera-status-display {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #007bff;
    max-width: 350px;
    z-index: 1200;
    padding: 1rem;
    animation: slideInRight 0.3s ease;
}

.camera-status-display--starting,
.camera-status-display--ready {
    border-left-color: #007bff;
}

.camera-status-display--capturing,
.camera-status-display--positioning {
    border-left-color: #ffc107;
}

.camera-status-display--processing {
    border-left-color: #17a2b8;
}

.camera-status-display--complete {
    border-left-color: #28a745;
}

.camera-status-display--error {
    border-left-color: #dc3545;
}

.camera-status-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.camera-status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.camera-status-text {
    flex: 1;
}

.camera-status-type {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.camera-status-message {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.camera-status-progress {
    margin-top: 0.75rem;
    background: #e9ecef;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.camera-status-progress-bar {
    height: 100%;
    background: #007bff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.camera-status-display--complete .camera-status-progress-bar {
    background: #28a745;
}

.camera-status-display--error .camera-status-progress-bar {
    background: #dc3545;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .camera-status-display {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 70px;
    }
}

/* Reset Button Styles */
.reset-btn {
    background: #dc3545;
}

.reset-btn:hover {
    background: #c82333;
}

.reset-btn--resetting {
    background: #6c757d;
    cursor: not-allowed;
}

.reset-btn--success {
    background: #28a745;
    cursor: default;
}

.reset-btn--error {
    background: #dc3545;
    cursor: default;
}

.btn-icon--spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Reset Confirmation Modal */
.reset-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reset-confirmation-modal--show {
    opacity: 1;
    visibility: visible;
}

.reset-confirmation-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.reset-confirmation-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    width: 400px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reset-confirmation-modal--show .reset-confirmation-modal__content {
    transform: scale(1);
}

.reset-confirmation-modal__header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.reset-confirmation-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.reset-confirmation-modal__body {
    padding: 1.5rem;
}

.reset-confirmation-modal__message {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.reset-confirmation-modal__footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.reset-confirmation-modal__confirm,
.reset-confirmation-modal__cancel {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-confirmation-modal__confirm {
    background: #dc3545;
    color: white;
}

.reset-confirmation-modal__confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.reset-confirmation-modal__cancel {
    background: #6c757d;
    color: white;
}

.reset-confirmation-modal__cancel:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Reset Notifications */
.reset-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #007bff;
    max-width: 350px;
    z-index: 1100;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
}

.reset-notification--show {
    opacity: 1;
    transform: translateX(0);
}

.reset-notification--success {
    border-left-color: #28a745;
}

.reset-notification--error {
    border-left-color: #dc3545;
}

.reset-notification--info {
    border-left-color: #17a2b8;
}

.reset-notification__content {
    flex: 1;
}

.reset-notification__title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.reset-notification__message {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.reset-notification__close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.reset-notification__close:hover {
    background: #f0f0f0;
    color: #666;
}

@media (max-width: 768px) {
    .reset-confirmation-modal__content {
        width: 95vw;
        margin: 1rem;
    }
    
    .reset-confirmation-modal__footer {
        flex-direction: column;
    }
    
    .reset-confirmation-modal__confirm,
    .reset-confirmation-modal__cancel {
        width: 100%;
    }
    
    .reset-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
/* ===================================
   Color Editor Styles
   =================================== */

/* Color Palette Container */
.color-palette {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.75rem 1.5rem 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, 
                visibility 0.3s ease,
                transform 0.3s ease;
}

/* Desktop/Tablet: Side positioning (left side) */
@media (min-width: 769px) {
    .color-palette {
        left: 20px;
        top: 50%;
        transform: translateY(-50%) translateX(-20px);
        width: 300px;
        min-width: 280px;
        max-width: 320px;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .color-palette--visible {
        opacity: 1;
        visibility: visible;
        /* transform handled by JS scroll handler */
    }
    
    .color-palette__colors {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-palette__color-btn {
        width: 960px;
        height: 64px;
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 1rem;
        gap: 0.75rem;
    }
    
    .color-palette__color-label {
        font-size: 0.85rem;
        padding: 0.35rem 0.65rem;
    }
}

/* Mobile: Bottom positioning (centered) */
@media (max-width: 768px) {
    .color-palette {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        min-width: 320px;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .color-palette--visible {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Palette Header */
.color-palette__header {
    position: relative;
    text-align: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
}

.color-palette__header h3 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Close button for mobile */
.color-palette__close-btn {
    position: absolute;
    left: 0;
    top: -4px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 4px;
}

.color-palette__close-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.color-palette__close-btn:active {
    transform: scale(0.95);
}

/* Hide close button on desktop */
@media (min-width: 769px) {
    .color-palette__close-btn {
        display: none;
    }
}

/* Color Buttons Container */
.color-palette__colors {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

/* Individual Color Button */
.color-palette__color-btn {
    width: 240px;
    height: 56px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    background-clip: padding-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hover state for color buttons */
.color-palette__color-btn:hover {
    transform: scale(1.03) translateY(-1px);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Active/pressed state */
.color-palette__color-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Selected state with prominent visual feedback */
.color-palette__color-btn--selected {
    border-color: #667eea;
    border-width: 4px;
    transform: scale(1.02);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25),
                0 4px 10px rgba(102, 126, 234, 0.2);
}

/* Keep selected state on hover */
.color-palette__color-btn--selected:hover {
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.35),
                0 5px 12px rgba(102, 126, 234, 0.3);
}

/* Color Label */
.color-palette__color-label {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8),
                 0 2px 8px rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
}

/* Info Text */
.color-palette__info {
    text-align: center;
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 500;
    font-style: italic;
    padding: 0.35rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
    .color-palette {
        left: 10px;
        right: 10px;
        bottom: 10px;
        transform: translateX(0) translateY(20px);
        min-width: auto;
        max-width: calc(100vw - 20px);
        padding: 1rem;
    }
    
    .color-palette--visible {
        transform: translateX(0) translateY(0);
    }
    
    .color-palette__colors {
        gap: 0.5rem;
    }
    
    .color-palette__color-btn {
        width: 48px;
        height: 48px;
    }
    
    .color-palette__color-label {
        font-size: 0.55rem;
        padding: 0.15rem 0.35rem;
    }
}

/* Ensure palette doesn't obstruct cube visualization */
@media (min-height: 600px) {
    .color-palette {
        bottom: 30px;
    }
}

/* Animation for palette appearance - Desktop (from left) */
@media (min-width: 769px) {
    @keyframes paletteSlideIn {
        from {
            opacity: 0;
            transform: translateY(-50%) translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }
    }
}

/* Animation for palette appearance - Mobile (from bottom) */
@media (max-width: 768px) {
    @keyframes paletteSlideIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* Accessibility: Focus states */
.color-palette__color-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.color-palette__color-btn:focus:not(:focus-visible) {
    outline: none;
}

.color-palette__color-btn:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Accessibility: Live region for screen reader announcements */
.color-palette__live-region {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
