/* Custom scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #1a202c; /* bg-gray-850 */
}
::-webkit-scrollbar-thumb {
    background: #4a5568; /* bg-gray-600 */
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #718096; /* bg-gray-500 */
}

/* Custom checkbox */
.custom-checkbox {
    appearance: none;
    background-color: #4a5568; /* bg-gray-600 */
    border-radius: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #718096; /* border-gray-500 */
    transition: background-color 0.2s, border-color 0.2s;
}
.custom-checkbox:checked {
    background-color: #4299e1; /* bg-blue-500 */
    border-color: #4299e1; /* border-blue-500 */
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

/* Screen transition animation */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.screen-transition {
    animation: slide-in 0.3s ease-out forwards;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* Static Page Overlay */
.static-page-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.static-page-overlay.active {
    opacity: 1;
}

.static-page-overlay .overlay-content {
    background-color: #0d1117; /* bg-gray-900 */
    width: 100%;
    max-height: 90vh;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.static-page-overlay.active .overlay-content {
    transform: translateY(0);
}

.overlay-header {
    padding: 0.75rem;
    border-bottom: 1px solid #2d3748; /* gray-750 */
    cursor: grab;
    position: relative;
    text-align: center;
}

.drag-handle {
    width: 3rem;
    height: 0.25rem;
    background-color: #4A5568; /* gray-700 */
    border-radius: 9999px;
    margin: 0 auto 0.5rem;
}

/* Custom Notification (Toast) */
.notification {
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

.notification.show {
    transform: translateY(0);
}
