.hint-button {
    position: fixed;
    bottom: 87px;
    right: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    transform: translateY(-5%);
}

.hint-button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.hint-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right 0.3s ease, background-color 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid rgba(0,0,0,0.1);
}

.hint-sidebar.active {
    right: 0;
}

.hint-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.hint-sidebar.transparent {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

.hint-sidebar.transparent:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.hint-sidebar.transparent .hint-item {
    background-color: rgba(248, 249, 250, 0.6);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

.hint-sidebar.transparent .hint-item:hover {
    background-color: rgba(233, 236, 239, 0.8);
}

.hint-sidebar.transparent .hint-item h3 {
    color: #007bff;
    font-weight: 600;
}

.hint-sidebar.transparent .hint-item p {
    color: #495057;
    font-weight: 500;
}

/* Transparency toggle button */
.hint-transparency-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1001;
}

.hint-transparency-toggle:hover {
    background-color: rgba(0, 123, 255, 1);
    transform: scale(1.1);
}

.hint-transparency-toggle i {
    font-size: 10px;
}

.hint-item {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(248, 249, 250, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0,0,0,0.05);
}

.hint-item:hover {
    background-color: rgba(233, 236, 239, 0.9);
}

.hint-item h3 {
    margin: 0 0 5px 0;
    color: #007bff;
    font-size: 16px;
}

.hint-item p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.hint-popup {
    position: fixed;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 12px 16px;
    max-width: 280px;
    min-width: 200px;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.hint-popup h3 {
    margin: 0 0 5px 0;
    color: #007bff;
    font-size: 14px;
}

.hint-popup p {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
}

.highlight-hint {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        background-color: rgba(0, 123, 255, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* Dark mode styles for hints */
[data-theme="dark"] .hint-button,
.hint-button.dark-mode {
    background-color: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .hint-button:hover,
.hint-button.dark-mode:hover {
    background-color: #1e40af !important;
}

[data-theme="dark"] .hint-sidebar,
.hint-sidebar.dark-mode {
    background-color: rgba(35, 38, 47, 0.4) !important;
    color: #e5e7eb !important;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3) !important;
    border-left: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .hint-sidebar:hover,
.hint-sidebar.dark-mode:hover {
    background-color: rgba(35, 38, 47, 0.6) !important;
}

[data-theme="dark"] .hint-sidebar.transparent,
.hint-sidebar.dark-mode.transparent {
    background-color: rgba(35, 38, 47, 0.15) !important;
}

[data-theme="dark"] .hint-sidebar.transparent:hover,
.hint-sidebar.dark-mode.transparent:hover {
    background-color: rgba(35, 38, 47, 0.25) !important;
}

[data-theme="dark"] .hint-sidebar.transparent .hint-item,
.hint-sidebar.dark-mode.transparent .hint-item {
    background-color: rgba(24, 26, 32, 0.6) !important;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

[data-theme="dark"] .hint-sidebar.transparent .hint-item:hover,
.hint-sidebar.dark-mode.transparent .hint-item:hover {
    background-color: rgba(42, 45, 58, 0.8) !important;
}

[data-theme="dark"] .hint-sidebar.transparent .hint-item h3,
.hint-sidebar.dark-mode.transparent .hint-item h3 {
    color: #60a5fa !important;
    font-weight: 600;
}

[data-theme="dark"] .hint-sidebar.transparent .hint-item p,
.hint-sidebar.dark-mode.transparent .hint-item p {
    color: #e5e7eb !important;
    font-weight: 500;
}

/* Dark mode styles for transparency toggle */
[data-theme="dark"] .hint-transparency-toggle,
.hint-transparency-toggle.dark-mode {
    background-color: rgba(96, 165, 250, 0.8) !important;
    color: #fff !important;
}

[data-theme="dark"] .hint-transparency-toggle:hover,
.hint-transparency-toggle.dark-mode:hover {
    background-color: rgba(96, 165, 250, 1) !important;
}

[data-theme="dark"] .hint-item,
.hint-item.dark-mode {
    background-color: rgba(24, 26, 32, 0.8) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .hint-item:hover,
.hint-item.dark-mode:hover {
    background-color: rgba(42, 45, 58, 0.9) !important;
}

[data-theme="dark"] .hint-item h3,
.hint-item.dark-mode h3 {
    color: #60a5fa !important;
}

[data-theme="dark"] .hint-item p,
.hint-item.dark-mode p {
    color: #9ca3af !important;
}

[data-theme="dark"] .hint-popup,
.hint-popup.dark-mode {
    background-color: #23262f !important;
    color: #e5e7eb !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
    border: 1px solid #2a2d3a !important;
}

[data-theme="dark"] .hint-popup h3,
.hint-popup.dark-mode h3 {
    color: #60a5fa !important;
}

[data-theme="dark"] .hint-popup p,
.hint-popup.dark-mode p {
    color: #9ca3af !important;
}

/* Mobile responsive styles for hint popup */
@media (max-width: 768px) {
    .hint-popup {
        max-width: 250px;
        min-width: 180px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .hint-popup h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .hint-popup p {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Dark mode highlight animation */
[data-theme="dark"] .highlight-hint {
    animation: highlightDark 2s ease;
}

@keyframes highlightDark {
    0% {
        background-color: rgba(96, 165, 250, 0.3);
        box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}
