/* Cutli.link Theme */

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #4b5563; }

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 24px;
    background: #059669;
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #dc2626; }
.toast.info { background: #2563eb; }

/* Smooth transitions */
* { transition-property: background-color, border-color, color; transition-duration: 150ms; }

/* Loading spinner */
.spinner {
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.dark .glass { background: rgba(17, 24, 39, 0.7); }

/* Focus styles */
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #6366f1; outline-offset: -2px; }

/* Code blocks */
pre code { font-family: 'Fira Code', 'Consolas', monospace; }

/* Responsive tables */
@media (max-width: 640px) {
    .responsive-table { display: block; }
    .responsive-table thead { display: none; }
    .responsive-table tbody tr { display: block; padding: 12px; border-bottom: 1px solid #e5e7eb; }
    .responsive-table td { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
    .responsive-table td::before { content: attr(data-label); font-weight: 600; color: #6b7280; font-size: 12px; }
}

/* Grid background pattern */
.bg-grid-slate-100 { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(148 163 184 / 0.1)'%3e%3cpath d='M .5 32 V .5 H 32'/%3e%3c/svg%3e"); }

/* Ad placeholder */
.ad-container { min-height: 90px; display: flex; align-items: center; justify-content: center; background: #f9fafb; border-radius: 12px; border: 1px dashed #d1d5db; color: #9ca3af; font-size: 13px; }
.dark .ad-container { background: #1f2937; border-color: #374151; color: #6b7280; }

/* Button hover lift */
.btn-lift { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-lift:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2); }

/* Card hover effect */
.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.dark .card-hover:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
.dark .skeleton { background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%); background-size: 200% 100%; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Transitions for dark mode */
html { transition: background-color 0.3s ease; }
