
/* Main Styles for Product Magnet Chrome Extension */

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

::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8B5CF6, #10B981);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7c3aed, #059669);
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Gradient text animation */
.gradient-text-animate {
    background: linear-gradient(90deg, #8B5CF6, #10B981, #8B5CF6);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Pulse animation for important elements */
@keyframes gentle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pulse-gentle {
    animation: gentle-pulse 2s ease-in-out infinite;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.2);
}

/* Custom button hover effects */
.btn-gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::after {
    left: 100%;
}

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark .hover-lift:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Custom form styles */
.custom-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background-color: #fff;
    color: #111827;
    transition: all 0.3s ease;
}

.dark .custom-input {
    border-color: #4b5563;
    background-color: #1f2937;
    color: #f9fafb;
}

.custom-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top: 3px solid #8B5CF6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom shadows */
.shadow-gradient {
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

/* Responsive typography */
@media (max-width: 768px) {
    .text-responsive {
        font-size: calc(1rem + 1vw);
    }
}

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

/* Dashboard specific styles */
.stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.dark .stat-card {
    background: linear-gradient(145deg, rgba(30,30,40,0.5), rgba(20,20,30,0.3));
    border: 1px solid rgba(255,255,255,0.05);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.plan-card {
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .table-container {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.product-item {
    transition: all 0.2s ease;
}

.product-item:hover {
    background-color: rgba(139, 92, 246, 0.05);
}

.dark .product-item:hover {
    background-color: rgba(139, 92, 246, 0.1);
}
