/**
 * Custom CSS for Axis WooAdmin
 *
 * Additional styles to complement Tailwind CSS
 *
 * @package Axis_WooAdmin
 * @version 1.0.0
 */

/* Global Font Family - Poppins */
* {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Custom responsive width classes */
.w-95 {
    width: 95%;
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .lg\:w-95 {
        width: 95%;
    }
}

@media (min-width: 1280px) and (max-width: 1535px) {
    .xl\:w-95 {
        width: 95%;
    }
}

@media (min-width: 1536px) {
    .xl\:w-95 {
        width: 80% !important;
    }
}

html,
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Custom gradients - Using brand colors */
.gradient-primary {
    background: linear-gradient(135deg, #3C087E 0%, #873EFF 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #873EFF 0%, #A76BFF 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #23282D 0%, #3A4046 100%);
}

/* Loading spinner - Using brand colors */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #873EFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Custom hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Status indicators - Using brand colors */
.status-active {
    background-color: #873EFF;
    color: #ffffff;
}

.status-inactive {
    background-color: #23282D;
    color: #ffffff;
}

.status-pending {
    background-color: #3C087E;
    color: #ffffff;
}

/* Custom scrollbar - Using brand colors */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #873EFF;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3C087E;
}

/* Form enhancements - Using brand colors */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(135, 62, 255, 0.1);
    border-color: #873EFF;
}

/* Button enhancements - Using brand colors */
.btn-primary {
    background: linear-gradient(135deg, #3C087E 0%, #873EFF 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2A0559 0%, #3C087E 100%);
    transform: translateY(-1px);
}

/* Ensure proper hover states for buttons with group hover */
.group:hover .group-hover\:text-white {
    color: white !important;
}

/* Specific hover states for sync dashboard buttons */
.hover\:bg-primary:hover {
    background-color: #3C087E !important;
}

.hover\:text-white:hover {
    color: white !important;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }

    .mobile-full {
        width: 100%;
    }
}

/* Sticky Navigation Styles */
.sticky-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.sticky-nav:hover {
    background: rgba(255, 255, 255, 0.98);
}

/* Smooth scroll behavior for floating nav */
html {
    scroll-behavior: smooth;
}

/* Add top padding to body to account for sticky nav */
body {
    padding-top: 80px;
}

/* Responsive adjustments for sticky nav */
@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
}

/* Enhanced backdrop blur for better browser support */
@supports (backdrop-filter: blur(12px)) {
    .sticky-nav {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

@supports not (backdrop-filter: blur(12px)) {
    .sticky-nav {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Navigation dropdown helpers */
.rotate-180 {
    transform: rotate(180deg);
}

.group-menu {
    min-width: 14rem;
}

/* Mobile menu enhancements */
.mobile-menu {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Prevent body scroll when mobile menu open */
.no-scroll {
    overflow: hidden;
}

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

    .print-full-width {
        width: 100% !important;
    }

    body {
        padding-top: 0;
    }
}

/* Product thumbnail hover zoom */
.thumb-zoom {
    position: relative;
    overflow: visible;
}

.thumb-zoom img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center center;
}

.thumb-zoom:hover {
    z-index: 50;
}

.thumb-zoom:hover img {
    transform: scale(2.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
