/* --- GLOBAL VARIABLES --- */
       body { padding-top: 70px; font-family: 'Inter', sans-serif; }
        .navbar-custom {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid #f1f5f9;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
            padding: 10px 0;
        }

        .brand-box {
            width: 36px; height: 36px;
            background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
            color: white; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem; margin-right: 8px;
        }

        .nav-link {
            color: #475569 !important; font-weight: 600; font-size: 1.0rem;
            padding: 8px 16px !important; transition: 0.2s;
        }
        .nav-link:hover, .nav-link.active { color: #4f46e5 !important; }

        /* --- DESKTOP MEGAMENU --- */
        @media (min-width: 992px) {
            .dropdown:hover .dropdown-menu {
                display: block; opacity: 1; visibility: visible; margin-top: 0;
            }
            .megamenu {
                width: 900px; left: 50%; transform: translateX(-50%);
                position: absolute; top: 100%;
                border: none; border-radius: 16px;
                box-shadow: 0 10px 40px rgba(0,0,0,0.1);
                padding: 20px; opacity: 0; visibility: hidden;
                transition: all 0.2s ease;
            }
            /* Small Dropdown (Banking) */
            .dropdown-menu.small-dropdown {
                width: 260px; left: 0; transform: none;
            }
        }

        /* --- MOBILE MENU FIXES (The critical part) --- */
        @media (max-width: 991px) {
            .navbar-collapse {
                background: white; border-top: 1px solid #f1f5f9;
                max-height: 80vh; overflow-y: auto; padding: 10px;
            }
            
            /* Make dropdowns static so they push content down instead of floating */
            .megamenu, .dropdown-menu {
                position: static !important;
                float: none !important;
                width: 100% !important;
                transform: none !important;
                box-shadow: none !important;
                border: none !important;
                background: #f8fafc; /* Slight bg distinction */
                margin-top: 0;
                padding-left: 10px;
                display: none; /* Let bootstrap JS handle toggle */
            }
            
            /* Force show when class 'show' is added by bootstrap */
            .dropdown-menu.show { display: block; }
            
            .megamenu-link { padding: 10px 5px; border-bottom: 1px solid #eee; }
        }

        /* Menu Links */
        .category-header {
            font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
            color: #94a3b8; letter-spacing: 0.5px; margin: 10px 0 5px 10px;
        }
        .megamenu-link {
            display: flex; align-items: center; padding: 8px 12px;
            color: #334155; text-decoration: none; font-weight: 500;
            border-radius: 8px; transition: 0.2s;
        }
        .megamenu-link:hover { background: #f1f5f9; color: #4f46e5; }
        .megamenu-link i { width: 24px; text-align: center; margin-right: 8px; }
   
        /* General UI */
        .tool-card {
            max-width: 1000px; margin: 0 auto 50px; background: white; 
            border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); padding: 30px;
            border: 1px solid var(--border-color);
        }
        .btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border: none; }
        .btn-primary:hover { box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3); transform: translateY(-1px); }
        .upload-area { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.3s; background: #f8fafc; }
        .upload-area:hover { border-color: var(--primary); background: #eef2ff; }

        /* Footer */
        footer { background: #020617; color: #94a3b8;  margin-top: auto; }
        footer h6 { color: white; text-transform: uppercase; margin-bottom: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; }
        footer a { color: #94a3b8; display: block; margin-bottom: 10px; font-size: 0.9rem; transition: 0.2s; }
        footer a:hover { color: white; padding-left: 5px; }
        
    .tool-wrapper { max-width: 950px; margin: 50px auto; }
/* cropper */
