  .loader-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.loader, .loader2, .loader3 {
    width: 20px;
    height: 5px;
    background-size: 400% 15px;
    background-repeat: no-repeat;
    animation: blink 1200ms infinite;
}

.loader {
    background:#499EE2;
    animation-delay: 4s;
}

.loader2 {
    background:#3176BB;
    animation-delay: 4s;
}

.loader3 {
    background:#214978;
    animation-delay: 4s;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
        /* Floating Circles Animation */
        #floating-circles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .floating-circle {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: floatAnimation 15s infinite ease-in-out;
        }

        @keyframes floatAnimation {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(50px, 50px) scale(1.1); }
            50% { transform: translate(-50px, 100px) scale(0.9); }
            75% { transform: translate(100px, -50px) scale(1.2); }
        }

        /* Decorative Shapes */
        .shapes {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .shape {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        .shape-1 {
            width: 300px;
            height: 300px;
            top: -250px;
            right: 50px;
            animation: growShrink 8s ease-in-out infinite;
        }

        .shape-2 {
            width: 50px;
            height: 50px;
            bottom: 200px;
            right: 100px;
            animation: growShrink 6s ease-in-out infinite reverse;
        }

        .shape-3 {
            width: 100px;
            height: 100px;
            top: 17%;
            left: 47.5%;
            transform: translateY(-50%);
            animation: growShrink 8s ease-in-out infinite;
        }

        @keyframes growShrink {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        /* Navigation Styles */
        .nav-menu {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 1rem 2rem;
            /* Added higher z-index so dropdowns appear above tool sections */
            position: relative;
            z-index: 100;
        }

        .nav-item {
            position: relative;
            padding: 0.5rem 1rem;
            /* Added padding-bottom to create overlap area for smooth hover transition */
            padding-bottom: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .nav-item:hover {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 8px;
        }
        .nav-item.active {
 text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}


        .dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 8px;
            min-width: 200px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            /* Removed margin-top gap to prevent hover loss */
            margin-top: 0;
            /* Increased z-index to ensure dropdowns appear above all content */
            z-index: 1001;
        }

        .nav-item:hover .dropdown {
            display: block;
        }

        .dropdown-item {
            padding: 0.75rem 1rem;
            color: #1e40af;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(37, 99, 235, 0.1);
        }

        .dropdown-item:last-child {
            border-bottom: none;
        }

        .dropdown-item:hover {
            background: rgba(37, 99, 235, 0.1);
            padding-left: 1.5rem;
        }

        /* Submenu Styles for Nested Dropdowns */
        .nav-item-sub {
            position: relative;
            padding: 0.75rem 1rem;
            color: #1e40af;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(37, 99, 235, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }

        .nav-item-sub:last-child {
            border-bottom: none;
        }

        .nav-item-sub:hover {
            background: rgba(37, 99, 235, 0.1);
            padding-left: 1.5rem;
        }

        .dropdown-sub {
            display: none;
            position: absolute;
            top: 0;
            left: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 8px;
            min-width: 200px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            margin-left: 0;
            z-index: 1002;
        }

        .nav-item-sub:hover .dropdown-sub {
            display: block;
        }

        /* Tool Card Styles */
        .tool-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .tool-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
        }

        /* Button Styles */
        .cta {
            position: relative;
            padding: 12px 24px;
            transition: all 0.6s ease;
            border: none;
            background: none;
            cursor: pointer;
        }

        .cta:before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            border-radius: 60px;
            background: rgba(32, 113, 243, 0.5);
            width: 45px;
            height: 45px;
            transition: all 0.6s ease;
        }

        .cta span {
            position: relative;
            font-family: "Ubuntu", sans-serif;
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 0.05em;
            color: #ffffff;
        }

        .cta:hover:before {
            width: 100%;
            background: #2563eb;
        }

        .cta:active {
            transform: scale(0.95);
        }

        /* Upload Area */
        .upload-area {
            border: 3px dashed rgba(255, 255, 255, 0.4);
            border-radius: 12px;
            padding: 3rem;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .upload-area:hover {
            border-color: rgba(255, 255, 255, 0.8);
            background: rgba(255, 255, 255, 0.05);
        }

        .upload-area.dragover {
            border-color: #2563eb;
            background: rgba(37, 99, 235, 0.1);
        }

        /* Hidden file input */
        #fileInput,
        /* Added styles for all file inputs */
        input[type="file"] {
            display: none;
        }

        /* Preview Image */
        #preview {
            max-width: 100%;
            max-height: 400px;
            border-radius: 8px;
            margin-top: 1rem;
        }

        /* Tool Section */
        .tool-section {
            display: none;
        }

        .tool-section.active {
            display: block;
        }

        /* Added TOPSCINET banner styles */
        .topscinet-banner {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border-bottom: 2px solid rgba(255, 255, 255, 0.2);
            padding: 0.75rem 0;
            position: sticky;
            top: 0;
            z-index: 200;
        }

        .topscinet-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.25rem;
            font-weight: bold;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .topscinet-logo:hover {
            transform: scale(1.05);
            color: rgba(255, 255, 255, 0.9);
        }

        .topscinet-logo svg {
            width: 32px;
            height: 32px;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 8px;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .back-link:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateX(-5px);
        }        


        /* QR Code specific styles */
        #qrCodeCanvas {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin: 0 auto;
            display: block;
        }

        .qr-preview-container {
            background: rgba(255, 255, 255, 0.95);
            padding: 2rem;
            border-radius: 16px;
            text-align: center;
        }

        input[type="file"] {
            display: none;
        }

        .color-picker-wrapper {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .color-preview {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            cursor: pointer;
        }