/* Custom macOS-style overrides */

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
    }
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Card hover effects */
.bg-macos-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.bg-macos-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Toast animations */
.toast-enter {
    animation: toastEnter 0.3s ease-out forwards;
}

.toast-exit {
    animation: toastExit 0.3s ease-in forwards;
}

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

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

/* Mobile optimizations */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2rem;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Refresh spinner */
@keyframes refresh-spin {
    to { transform: rotate(360deg); }
}
.refresh-spin {
    animation: refresh-spin 1s linear infinite;
}

/* Chart.js dark mode support */
@media (prefers-color-scheme: dark) {
    canvas {
        filter: brightness(0.95);
    }
}
