/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* Animations */
@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }

    to {
        bottom: 20px;
        opacity: 1;
    }
}

.toast-enter {
    animation: slideUp 0.3s ease-out forwards;
}

/* Card Transitions */
.password-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.view-tab.active {
    background-color: #1c1917;
    color: white;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }
}

/* Ranking Badge */
.rank-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #fcd34d;
}

.rank-1 {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    color: #78350f;
    border: 1px solid #fcd34d;
}

.rank-2 {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
    color: #374151;
    border: 1px solid #f3f4f6;
}

.rank-3 {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #7c2d12;
    border: 1px solid #fdba74;
}

.rank-other {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* Restaurant Modal */
#restaurant-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#restaurant-modal.show {
    opacity: 1;
}

#restaurant-modal .restaurant-modal-content {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

#restaurant-modal.show .restaurant-modal-content {
    transform: scale(1) translateY(0);
}