/* Custom styles for getPaid dashboard */

* { scrollbar-width: thin; scrollbar-color: #262a35 transparent; }
*::-webkit-scrollbar { width: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background-color: #262a35; border-radius: 3px; }
::selection { background-color: rgba(204, 85, 0, 0.3); color: #e8eaed; }

/* Skeleton shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #1c2029 25%, #262a35 50%, #1c2029 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 6px;
}

/* Slide-over panel animation */
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOut { from { transform: translateX(0); } to { transform: translateX(100%); } }
.slide-in { animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-out { animation: slideOut 0.15s ease-in forwards; }

/* Fade in */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease-out; }

/* Toast animation */
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.toast-in { animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.toast-out { animation: toastOut 0.2s ease-in forwards; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; }

/* Input focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #cc5500;
    box-shadow: 0 0 0 3px rgba(204, 85, 0, 0.12);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Tab active state */
.tab-active { border-bottom: 2px solid #cc5500; color: #cc5500; }

/* Table row transition */
table tbody tr { transition: background-color 0.1s ease; }

/* Pulse effect for expiring items */
@keyframes pulse-accent {
    0%, 100% { box-shadow: 0 0 0 0 rgba(204, 85, 0, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(204, 85, 0, 0); }
}
.pulse-accent { animation: pulse-accent 2s ease-in-out infinite; }

/* Stagger fade-in for lists */
@keyframes staggerIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.stagger-in > * {
    animation: staggerIn 0.3s ease-out both;
}
.stagger-in > *:nth-child(1) { animation-delay: 0ms; }
.stagger-in > *:nth-child(2) { animation-delay: 40ms; }
.stagger-in > *:nth-child(3) { animation-delay: 80ms; }
.stagger-in > *:nth-child(4) { animation-delay: 120ms; }
.stagger-in > *:nth-child(5) { animation-delay: 160ms; }
.stagger-in > *:nth-child(n+6) { animation-delay: 200ms; }

/* Smooth border radius on cards */
.card-hover {
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card-hover:hover {
    border-color: #3a3f4d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
