/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* ============================================
   Toggle Switch Styles
   ============================================ */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fcb69f;
    border-radius: 32px;
    transition: background-color 0.4s ease;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Checked state */
.toggle-switch input:checked + .toggle-slider {
    background-color: #667eea;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(28px);
}

/* Focus state for accessibility */
.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(247, 59, 32, 0.2);
}

/* ============================================
   Screen View Transitions
   ============================================ */
.screen-view {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.screen-view.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.screen-view.inactive {
    opacity: 0 !important;
    transform: translateX(-100%) !important;
}

/* Profile screen slides from right */
#screen-profile.inactive {
    transform: translateX(100%) !important;
}

/* ============================================
   Touch Hint Animation
   ============================================ */
#touch-hint {
    transition: opacity 0.3s ease;
}

/* ============================================
   Feature Card & Example Card Animations
   ============================================ */
.feature-card,
.example-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card.animate-in,
.example-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Slider Dots
   ============================================ */
#slider-dots > div {
    transition: background-color 0.3s ease, width 0.3s ease;
}

#slider-dots > div.active {
    width: 16px;
    border-radius: 4px;
}

/* ============================================
   Lightbox Modal
   ============================================ */
#lightbox {
    transition: opacity 0.3s ease;
}

#lightbox.show {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

#lightbox-img {
    transition: transform 0.3s ease;
    max-height: 90vh;
}

#lightbox-dots > div {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#lightbox-dots > div.active {
    background-color: white;
    transform: scale(1.2);
}

/* Lightbox navigation buttons */
#lightbox-prev,
#lightbox-next,
#lightbox-close {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-close:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Swipe hint on mobile */
@media (max-width: 768px) {
    #lightbox-prev,
    #lightbox-next {
        display: none;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
