/**
 * Bulk Image Converter Pro - Main Stylesheet
 *
 * Custom styles supplementing TailwindCSS for the application.
 * Organized by component for easy maintenance.
 *
 * @author DemoHomeX
 * @version 2.0.0
 */

/* ===== Base Styles ===== */

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Material Symbols ===== */

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
}

/* ===== Custom Scrollbars ===== */

::-webkit-scrollbar {
    width: 8px;
}

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

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

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

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

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

.dark ::-webkit-scrollbar-thumb:hover {
    background: #3b4754;
}

/* ===== Animations ===== */

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

/* ===== Premium Animations & Effects ===== */

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.animate-float-slow {
    animation: float 8s ease-in-out infinite;
}

.animate-float-medium {
    animation: float 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

.animate-pulse-slow {
    animation: pulse-soft 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.parallax-wrapper {
    perspective: 10px;
    height: 100%;
}

.parallax-group {
    position: relative;
    transform-style: preserve-3d;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.layer-base {
    transform: translateZ(0);
    position: relative;
    z-index: 5;
}

.layer-back {
    transform: translateZ(-10px) scale(2);
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.layer-deep {
    transform: translateZ(-20px) scale(3);
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.layer-fore {
    transform: translateZ(5px) scale(0.5);
    pointer-events: none;
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


.shadow-3d {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15), 0 0 40px rgba(0, 102, 255, 0.05);
}

.dark .shadow-3d {
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 102, 255, 0.1);
}

.premium-hero-gradient {
    background: radial-gradient(circle at 0% 0%, #f0f7ff 0, transparent 50%),
        radial-gradient(circle at 100% 0%, #eef2ff 0, transparent 50%),
        radial-gradient(circle at 50% 100%, #eff6ff 0, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.dark .premium-hero-gradient {
    background: radial-gradient(circle at 0% 0%, rgba(30, 58, 138, 0.15) 0, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(49, 46, 129, 0.15) 0, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(30, 58, 138, 0.1) 0, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-radial-gradient {
    background: radial-gradient(circle at center, #E0F2FE 0%, #FFF 70%);
}

.dark .hero-radial-gradient {
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.2) 0%, #0f172a 70%);
}

.hexagon-pattern {
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuBc4ZWJ0o8MAyUw670aK7gh3NucyH2saZcGp5fjt-Ij83IT2Nk79384FBJOjFBWwt6EUQ-X47PMvpcqYkArroTRavNLebubCFTO_DAipXxbYwVEVbNVZySBYre1Ptqjxb0Cxdl56KXxMXVpMD79-a_Re0D2xvMmLJSvCvRy0kMQvywECu27a3g2jUdZvnr7BVdmKd9XZSyEhs7P0QrFOtko9Kv5pyOBlSoOPrcVCZGAgv7YrqD_CCeKqkoQ-v_AwncxV-t7-JTEkiQ);
}

.tilted-mockup {
    transform: perspective(1200px) rotateY(-12deg) rotateX(4deg);
    transition: transform 0.6s ease;
}

.tilted-mockup:hover {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.gradient-text {
    background: linear-gradient(135deg, #0066FF 0%, #0047B3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-anchor-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}


/* ===== Image Previews ===== */

.preview-grid img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

/* ===== Interactive States ===== */

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Modal Dialogs ===== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: min(600px, 90%);
    max-width: 90vw;
    margin: auto;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    max-height: min(90vh, 600px);
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .modal-content {
    background-color: #1c2127;
    color: white;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* ===== Full Screen Preview ===== */

.full-screen-preview {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.full-screen-preview.show {
    opacity: 1;
    visibility: visible;
}

/* ===== Responsive Utilities ===== */

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.input-group:focus-within .input-icon {
    color: #2563eb;
}

.modal-overlay {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.modal-enter {
    animation: modal-enter 0.3s ease-out;
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

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

.receipt-shadow {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05), 0 0 10px rgba(0, 0, 0, 0.02);
}

.tab-active {
    border-color: #0066FF;
    color: #0066FF;
}

.premium-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.stat-card-overlap {
    margin-top: -64px;
}

.card-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.shadow-premium {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 10px -2px rgba(0, 0, 0, 0.02);
}

.shadow-card-hover:hover {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

.support-container {
    height: calc(100vh - 180px);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 9999px;
}

.card-glass {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow, 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 10px -2px rgba(0, 0, 0, 0.03));
    transition: all 0.3s ease;
}

.card-glass:hover {
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

.circular-progress {
    background: radial-gradient(closest-side, white 79%, transparent 80% 100%),
        conic-gradient(#3b82f6 var(--pro-percent, 0%), #e2e8f0 0);
}

.text-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pro-badge-glow {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.modal-backdrop {
    backdrop-filter: blur(8px);
    background-color: rgba(15, 23, 42, 0.4);
}

.admin-login {
    background-image:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.18), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 55%),
        radial-gradient(circle at 10% 85%, rgba(255, 255, 255, 0.10), transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #7c3aed 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.admin-login .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.admin-login .btn-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.admin-login .btn-gradient:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}

.admin-login .brand-text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-split .pattern-bg {
    background-color: #0066FF;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
}

.auth-split .glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-split .pw-strength-bar {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.admin-invoice {
    --primary: #0f172a;
    --accent: #2563eb;
    --bg-main: #F9FAFB;
    --sidebar-bg: #ffffff;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 10px -2px rgba(0, 0, 0, 0.03);
}

.admin-invoice .invoice-paper {
    background: #ffffff;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.pricing-page .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.pricing-page .hero-gradient {
    background: radial-gradient(circle at top right, rgba(0, 102, 255, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.05), transparent);
}

.pricing-page .pricing-grid-bg {
    background-image: linear-gradient(#f1f5f9 1px, transparent 1px), linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
    background-size: 40px 40px;
}

.pricing-page .aurora-bg {
    background: linear-gradient(135deg, #0066FF 0%, #8B5CF6 100%);
}

.pricing-page .table-zebra tr:nth-child(even) {
    background-color: #f8faff;
}

.about-page .glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid #F1F5F9;
}

.about-page .section-light-blue {
    background-color: #F8FAFF;
}

.about-page .hero-pattern {
    background-image: radial-gradient(at 0% 0%, hsla(217, 100%, 98%, 0.5) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(262, 100%, 98%, 0.5) 0, transparent 50%),
        radial-gradient(at 50% 100%, hsla(210, 100%, 98%, 0.5) 0, transparent 45%);
}

.about-page .blob {
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.about-page .grid-bg {
    background-image: radial-gradient(circle at 1px 1px, #e2e8f0 1px, transparent 0);
    background-size: 40px 40px;
}

.about-page .gradient-text-shadow {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-page .btn-glow:hover {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

.about-page .app-mockup-outline {
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.tos-grid-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(at 0% 0%, hsla(217, 100%, 98%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(262, 100%, 98%, 1) 0, transparent 50%);
}

.privacy-page .hero-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(at 0% 0%, hsla(217, 100%, 98%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(210, 100%, 98%, 1) 0, transparent 50%);
}

.privacy-page .glass-nav-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.privacy-page .shadow-glass {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}