/* Custom Styles for SMM Panel Design System */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Smooth transitions for theme switching */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override transitions for specific elements that shouldn't animate */
input[type="checkbox"],
input[type="radio"],
.no-transition {
    transition: none !important;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(to right, #06b6d4, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom focus styles for better accessibility */
*:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header,
    footer,
    #themeToggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Responsive utilities */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
}

/* Loading animation for toggle switches */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Copy color card hover effect enhancement */
.color-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Table responsive wrapper */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Enhanced button effects */
button:active {
    transform: scale(0.98);
}

/* Tooltip animations */
@keyframes tooltip-fade {
    0% {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Dark mode specific enhancements */
.dark .hover-lift:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #ff6b35 0%, #ea580c 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Backdrop blur for modern glass effect (optional use) */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .glass-effect {
    background: rgba(30, 41, 59, 0.8);
}

/* Selection styling */
::selection {
    background-color: #06b6d4;
    color: white;
}

.dark ::selection {
    background-color: #ff6b35;
    color: white;
}

/* Accessibility - Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

