        /* Base styles for the body and overall layout */
        body {
            font-family: "Inter", sans-serif; /* Using Inter for clean readability */
            background-color: #f0f9ff; /* Light blue background */
            display: flex;
            flex-direction: column; /* Stack header, main, footer vertically */
            min-height: 100vh; /* Full viewport height */
            color: #1a202c; /* Dark text for contrast */
            transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for dark mode */
        }

        /* Dark mode specific body styles */
        html.dark body {
            background-color: #1a202c; /* Dark background */
            color: #e2e8f0; /* Light text */
        }

        /* Header styles */
        header {
            background-color: #ffffff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap; /* Allow items to wrap on smaller screens */
            position: relative; /* Needed for absolute positioning of dropdown */
            z-index: 100; /* Ensure header is above other content */
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }
        html.dark header {
            background-color: #2d3748; /* Darker header */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .logo-icon {
            /* Simple SVG icon for the logo */
            width: 32px;
            height: 32px;
            color: #4f46e5; /* Indigo color for the logo */
        }
        html.dark .logo-icon {
            color: #9f7aea; /* Lighter indigo for dark mode */
        }
        .site-name {
            font-size: 1.75rem; /* Larger site name */
            font-weight: 800; /* Extra bold */
            color: #1a202c;
        }
        html.dark .site-name {
            color: #e2e8f0; /* Light text for dark mode */
        }

        /* Settings Dropdown Button */
        .settings-button {
            background-color: transparent;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 0.5rem;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .settings-button:hover {
            background-color: #f3f4f6;
        }
        html.dark .settings-button:hover {
            background-color: #4a5568;
        }
        .settings-icon {
            width: 24px;
            height: 24px;
            color: #4a5568; /* Grayish blue for icon */
        }
        html.dark .settings-icon {
            color: #cbd5e0; /* Lighter icon for dark mode */
        }

        /* Dropdown Menu */
        .dropdown-menu {
            position: absolute;
            top: 100%; /* Position below the header */
            right: 1rem; /* Align to the right of the header */
            background-color: #ffffff;
            border-radius: 0.75rem;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            min-width: 200px;
            padding: 0.75rem;
            z-index: 1000; /* Ensure dropdown is on top */
            display: none; /* Hidden by default */
            flex-direction: column;
            gap: 0.5rem;
            border: 1px solid #e2e8f0;
            transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }
        html.dark .dropdown-menu {
            background-color: #2d3748; /* Darker dropdown background */
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            border-color: #4a5568;
        }
        .dropdown-menu.show {
            display: flex; /* Show when 'show' class is present */
        }
        .dropdown-menu a,
        .dropdown-menu button {
            display: block;
            width: 100%;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            text-align: left;
            text-decoration: none;
            color: #4a5568;
            font-weight: 500;
            transition: background-color 0.2s, color 0.2s;
            background-color: transparent; /* Ensure buttons have transparent background initially */
            border: none; /* Remove button border */
            cursor: pointer;
        }
        html.dark .dropdown-menu a,
        html.dark .dropdown-menu button {
            color: #cbd5e0; /* Light text for dark mode links/buttons */
        }
        .dropdown-menu a:hover,
        .dropdown-menu button:hover {
            background-color: #f0f4f8; /* Light hover background */
            color: #4f46e5;
        }
        html.dark .dropdown-menu a:hover,
        html.dark .dropdown-menu button:hover {
            background-color: #4a5568; /* Darker hover background */
            color: #9f7aea;
        }

        /* Main content container */
        .main-content {
            flex-grow: 1; /* Allows main content to take available space */
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            background-image: linear-gradient(to bottom right, #e0e7ff, #c3dafe); /* Subtle gradient */
            transition: background-image 0.3s ease;
        }
        html.dark .main-content {
            background-image: linear-gradient(to bottom right, #2d3748, #1a202c); /* Darker gradient */
        }

        .container {
            background-color: #ffffff;
            border-radius: 2rem;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
            padding: 3rem;
            width: 100%;
            max-width: 600px;
            text-align: center;
            border: 1px solid #e0e7ff;
            position: relative;
            transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }
        html.dark .container {
            background-color: #4a5568; /* Darker container background */
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
            border-color: #6366f1;
        }
        html.dark .container h1,
        html.dark .container p {
            color: #e2e8f0; /* Light text for dark mode */
        }

        .tool-link {
            display: block;
            background: linear-gradient(to right, #0ea5e9, #6366f1); /* Blue-purple gradient */
            color: white;
            padding: 1.2rem 2rem;
            border-radius: 0.75rem;
            font-weight: 700;
            font-size: 1.25rem;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
            margin-bottom: 1.5rem;
            position: relative;
            overflow: hidden;
        }
        .tool-link:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(14, 165, 233, 0.4);
        }
        .tool-link:active {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
        }
        .tool-link::before { /* Ripple effect */
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
        }
        .tool-link:active::before {
            width: 200%;
            height: 200%;
            opacity: 1;
            transition: 0s;
        }

        /* Footer styles */
        footer {
            background-color: #334155; /* Darker gray for footer */
            color: #cbd5e0; /* Light gray text */
            padding: 1.5rem 2rem;
            text-align: center;
            font-size: 0.9rem;
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }
        html.dark footer {
            background-color: #1a202c; /* Even darker footer */
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
            color: #94a3b8;
        }

        /* Back Button */
        .back-button-top {
            position: absolute;
            top: 2rem;
            left: 2rem;
            display: inline-flex;
            align-items: center;
            background-color: #f3f4f6;
            color: #4b5563;
            padding: 0.75rem 1.25rem;
            border-radius: 0.75rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease-in-out;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .back-button-top:hover {
            background-color: #e5e7eb;
            transform: translateX(-5px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .back-button-top svg {
            margin-right: 0.5rem;
        }
        html.dark .back-button-top {
            background-color: #6366f1;
            color: #e2e8f0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        html.dark .back-button-top:hover {
            background-color: #4f46e5;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
        html.dark .back-button-top svg {
            color: #e2e8f0;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            header {
                flex-direction: row; /* Keep logo and settings button on one line */
                justify-content: space-between;
                align-items: center;
                padding: 1rem;
            }
            .logo-section {
                flex-grow: 1; /* Allow logo to take space */
            }
            .dropdown-menu {
                right: 0.5rem; /* Adjust position for smaller screens */
                min-width: 180px;
            }
            .container {
                padding: 1.5rem;
                border-radius: 1rem;
            }
            .tool-link {
                padding: 1rem 1.5rem;
                font-size: 1.1rem;
            }
            .site-name {
                font-size: 1.5rem;
            }
            .back-button-top {
                top: 1rem;
                left: 1rem;
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
            }
            .back-button-top svg {
                width: 18px;
                height: 18px;
            }
        }
    