:root {
            --primary-color: #4CAF50;
            --primary-dark: #45a049;
            --secondary-color: #007bff;
            --text-color: #333;
            --light-gray: #f8f9fa;
            --border-color: #dee2e6;
            --danger-color: #dc3545;
            --success-color: #28a745;
        }

        body {
            font-family: 'Roboto', sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--light-gray);
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        header {
            background-color: var(--primary-color);
            color: white;
            padding: 1.5rem 0;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .logo-container {
            margin-bottom: 1rem;
        }

        .logo {
            margin: 0;
            font-size: 3rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            display: inline-flex;
            align-items: baseline;
            line-height: 1;
        }

        .logo a {
            text-decoration: none;
            color: inherit;
            display: inline-flex;
            align-items: baseline;
            transition: transform 0.2s ease;
        }

        .logo a:hover {
            transform: scale(1.02);
        }

        .logo-text {
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .logo-text::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
            border-radius: 1px;
        }

        .logo-dot {
            color: #ffd700;
            font-size: 3.5rem;
            font-weight: 900;
            margin: 0 0.1rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            animation: pulse 2s infinite;
        }

        .logo-io {
            color: #e8f5e8;
            font-size: 2.2rem;
            font-weight: 600;
            background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: none;
            position: relative;
        }

        .logo-io::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
            border-radius: 4px;
            z-index: -1;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.8;
            }
        }

        header p {
            margin: 0;
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.9);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.5;
        }

        nav {
            background-color: var(--primary-dark);
            padding: 0.7rem 0;
            text-align: center;
        }

        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.1rem;
            padding: 5px 10px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        nav ul li a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .container {
            max-width: 800px; /* Increased width */
            margin: 2rem auto;
            padding: 2rem;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            flex-grow: 1;
        }

        h2,
        h3 {
            color: var(--primary-color);
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: bold;
            color: var(--text-color);
        }

        .form-row {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 1.5rem;
        }

        .form-row .form-group {
            flex: 1;
            margin-bottom: 0;
        }

        input[type='file'],
        input[type='number'],
        select {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
            box-sizing: border-box; /* Include padding and border in the element's total width and height */
        }

        input[type='file']:focus,
        input[type='number'],
        select:focus {
            border-color: var(--primary-color);
            outline: none;
        }

        .drop-area {
            border: 2px dashed var(--border-color);
            border-radius: 8px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.3s ease, border-color 0.3s ease;
            font-size: 1.1rem;
            color: #666;
        }

        .drop-area:hover,
        .drop-area.highlight {
            background-color: #f0f8ff;
            border-color: var(--primary-color);
        }

        .drop-area p {
            margin: 0;
        }

        /* Remove checkbox specific styles as they are no longer used */
        input[type='checkbox'] {
            display: none;
        }

        .btn {
            background-color: var(--primary-color);
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.1rem;
            transition: background-color 0.3s ease, transform 0.2s ease;
            width: auto;
            display: inline-block;
            margin-right: 10px;
        }

        .btn:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
        }

        .btn:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
            transform: none;
        }

        .alert {
            padding: 1rem;
            margin-bottom: 1.5rem;
            border: 1px solid transparent;
            border-radius: 5px;
            font-size: 1rem;
        }

        .alert-danger {
            color: #721c24;
            background-color: #f8d7da;
            border-color: #f5c6cb;
        }

        .alert-success {
            color: #155724;
            background-color: #d4edda;
            border-color: #c3e6cb;
        }

        #progress-container {
            width: 100%;
            background-color: #e9ecef;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            margin-bottom: 1.5rem;
            overflow: hidden;
        }

        #progress-bar {
            width: 0%;
            height: 30px;
            background-color: var(--secondary-color);
            text-align: center;
            line-height: 30px;
            color: white;
            transition: width 0.3s ease;
        }

        #processForm {
            display: none;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
            margin-top: 1.5rem;
        }

        #loadingOverlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            font-size: 2em;
            text-align: center;
            padding-top: 20%;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .spinner {
            border: 8px solid rgba(255, 255, 255, 0.3);
            border-top: 8px solid #fff;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

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

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

        footer {
            background-color: var(--text-color);
            color: white;
            text-align: center;
            padding: 1rem 0;
            margin-top: 2rem;
        }

        /* Ad Container Base Styles */
        .ad-container {
            margin: 0 auto;
            text-align: center;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 1px solid #dee2e6;
            border-radius: 8px;
            color: #6c757d;
            font-size: 0.9rem;
            min-height: 90px;
            min-width: 250px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .ad-container:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transform: translateY(-1px);
        }

        /* Ad Placeholder Styling */
        .ad-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                        linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                        linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                        linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
            background-size: 20px 20px;
            background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
            color: #6c757d;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.8rem;
        }

        /* Top Ad Container */
        .ad-container-top-wrapper {
            background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
            padding: 1rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid #dee2e6;
        }

        .ad-container-top {
            height: 90px !important;
            min-height: 90px;
            min-width: 728px;
            max-width: 970px;
            margin: 0 auto;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        /* Bottom Ad Container */
        .ad-container-bottom-wrapper {
            background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
            padding: 1rem 0;
            margin-top: 2rem;
            border-top: 1px solid #dee2e6;
        }

        .ad-container-bottom {
            height: 90px !important;
            min-height: 90px;
            min-width: 728px;
            max-width: 970px;
            margin: 0 auto;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        /* AdSense Specific Styling */
        .adsbygoogle {
            border-radius: 6px;
            overflow: hidden;
        }

        /* Responsive Ad Design */
        @media (max-width: 768px) {
            .ad-container-top-wrapper,
            .ad-container-bottom-wrapper {
                padding: 0.5rem 1rem;
            }

            .ad-container-top,
            .ad-container-bottom {
                min-width: 320px;
                max-width: 100%;
                height: 100px !important;
                min-height: 100px;
            }

            .ad-container {
                min-width: 320px;
                max-width: 100%;
            }
        }

        @media (max-width: 480px) {
            .ad-container-top,
            .ad-container-bottom {
                min-width: 300px;
                height: 120px !important;
                min-height: 120px;
            }

            .ad-container {
                min-width: 300px;
            }
        }

        /* Homepage Styles */
        .hero-section {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 4rem 0;
            margin: -2rem -2rem 3rem -2rem;
            border-radius: 0 0 20px 20px;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            opacity: 0.3;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .hero-section h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            color: white;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .hero-subtitle {
            font-size: 1.3rem;
            color: rgba(255, 255, 255, 0.9);
            max-width: 600px;
            margin: 0 auto 2rem auto;
            line-height: 1.6;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 3rem;
            margin-top: 2rem;
        }

        .stat {
            text-align: center;
        }

        .stat-number {
            display: block;
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            line-height: 1;
        }

        .stat-label {
            display: block;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.8);
            margin-top: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .tools-section {
            margin-bottom: 4rem;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 3rem;
            font-weight: 600;
        }

        .tools-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .tool-card {
            background: white;
            border-radius: 20px;
            padding: 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: none;
            overflow: hidden;
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .tool-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .tool-header {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 2rem 2rem 1rem 2rem;
            text-align: center;
            position: relative;
        }

        .tool-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            display: block;
        }

        .tool-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: var(--primary-color);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .tool-card h3 {
            text-align: center;
            margin: 0 0 1rem 0;
            color: var(--primary-color);
            font-size: 1.8rem;
            font-weight: 600;
        }

        .tool-description {
            color: #666;
            line-height: 1.6;
            margin: 0 2rem 2rem 2rem;
            text-align: center;
        }

        .tool-features {
            padding: 0 2rem;
            flex-grow: 1;
        }

        .feature-item {
            display: flex;
            align-items: center;
            padding: 0.8rem 0;
            color: #555;
            font-size: 0.95rem;
        }

        .feature-icon {
            font-size: 1.2rem;
            margin-right: 0.8rem;
            min-width: 1.5rem;
        }

        .tool-footer {
            padding: 2rem;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            margin-top: auto;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            border-radius: 12px;
            transition: all 0.3s ease;
            text-align: center;
            width: 100%;
            font-weight: 600;
            font-size: 1.1rem;
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-dark) 0%, #3d8b40 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
        }

        .btn-arrow {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

        .btn-primary:hover .btn-arrow {
            transform: translateX(3px);
        }

        /* Tool-specific styling */
        .image-tool .tool-header {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        }

        .crypto-tool .tool-header {
            background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
        }

        .features-section {
            margin-top: 3rem;
            padding-top: 3rem;
            border-top: 1px solid var(--border-color);
        }

        .features-section h2 {
            text-align: center;
            margin-bottom: 2rem;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .feature {
            text-align: center;
            padding: 1.5rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .feature h4 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .feature p {
            color: #666;
            margin: 0;
        }

        /* About Page Styles */
        .about-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .about-content h3 {
            color: var(--primary-color);
            margin-top: 2rem;
            margin-bottom: 1rem;
            text-align: left;
        }

        .about-content h4 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            text-align: left;
        }

        .about-content p {
            line-height: 1.7;
            margin-bottom: 1.5rem;
            color: #555;
        }

        .about-content ul {
            margin-bottom: 1.5rem;
            padding-left: 1.5rem;
        }

        .about-content li {
            margin-bottom: 0.5rem;
            color: #555;
        }

        .tool-description {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            border-left: 4px solid var(--primary-color);
        }

        .tool-description h4 {
            margin-top: 0;
        }

        @media (max-width: 768px) {
            .container {
                margin: 1rem;
                padding: 1.5rem;
            }

            .logo {
                font-size: 2.5rem;
            }

            .logo-dot {
                font-size: 3rem;
            }

            .logo-io {
                font-size: 1.8rem;
            }

            header p {
                font-size: 1rem;
                padding: 0 1rem;
            }

            .btn {
                width: 100%;
                margin-bottom: 10px;
            }

            .hero-section {
                padding: 3rem 0;
                margin: -1rem -1rem 2rem -1rem;
            }

            .hero-section h1 {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1.1rem;
            }

            .hero-stats {
                flex-direction: column;
                gap: 1.5rem;
            }

            .stat-number {
                font-size: 2rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .tools-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .tool-card {
                margin: 0 1rem;
            }

            .tool-header {
                padding: 1.5rem 1.5rem 1rem 1.5rem;
            }

            .tool-description {
                margin: 0 1.5rem 1.5rem 1.5rem;
            }

            .tool-features {
                padding: 0 1.5rem;
            }

            .tool-footer {
                padding: 1.5rem;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }

            .form-row {
                flex-direction: column;
                gap: 0;
            }
        }

        @media (max-width: 480px) {
            .logo {
                font-size: 2rem;
            }

            .logo-dot {
                font-size: 2.5rem;
            }

            .logo-io {
                font-size: 1.5rem;
            }

            .hero-section h1 {
                font-size: 2rem;
            }

            .hero-subtitle {
                font-size: 1rem;
            }

            .tool-icon {
                font-size: 3rem;
            }

            .tool-card h3 {
                font-size: 1.5rem;
            }

            .btn-primary {
                padding: 0.8rem 1.5rem;
                font-size: 1rem;
            }
        }