/* Base Styles */
        :root {
            --primary-gradient: linear-gradient(135deg, #00e5ff, #00ff9d);
            --secondary-gradient: linear-gradient(135deg, #7928ca, #ff0080);
            --glass-bg: rgba(16, 18, 27, 0.7);
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
            --text-primary: rgba(255, 255, 255, 0.95);
            --text-secondary: rgba(255, 255, 255, 0.7);
            --border-radius: 16px;
            --transition-speed: 0.3s;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
        }

        body {
            background: #0a0b10;
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 20%, rgba(121, 40, 202, 0.15), transparent 25%),
                radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.15), transparent 25%);
            z-index: -1;
        }

        /* Typography */
        h1 {
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 1rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        h2 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        /* Layout */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .main {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        @media (min-width: 768px) {
            .main {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* Glass Panels */
        .panel {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: var(--border-radius);
            box-shadow: var(--glass-shadow);
            padding: 2rem;
            transition: all var(--transition-speed) ease;
            position: relative;
            overflow: hidden;
        }

        .panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--primary-gradient);
            opacity: 0.5;
        }

        .panel:hover {
            box-shadow: 0 8px 32px 0 rgba(0, 229, 255, 0.2);
        }

        /* Input Panel */
        .input-panel {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .prompt-area {
            flex: 1;
            background: rgba(10, 11, 16, 0.5);
            border: 1px solid var(--glass-border);
            border-radius: calc(var(--border-radius) - 4px);
            color: var(--text-primary);
            font-size: 1rem;
            padding: 1rem;
            margin-bottom: 1rem;
            resize: none;
            min-height: 200px;
            transition: all var(--transition-speed) ease;
        }

        .prompt-area:focus {
            outline: none;
            border-color: rgba(0, 229, 255, 0.5);
            box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
        }

        .settings {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .setting-group {
            flex: 1;
            min-width: 120px;
        }

        .setting-label {
            display: block;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
            color: var(--text-secondary);
        }

        .setting-input {
            width: 100%;
            background: rgba(10, 11, 16, 0.5);
            border: 1px solid var(--glass-border);
            border-radius: calc(var(--border-radius) - 8px);
            color: var(--text-primary);
            font-size: 0.875rem;
            padding: 0.5rem;
            transition: all var(--transition-speed) ease;
        }

        .setting-input:focus {
            outline: none;
            border-color: rgba(0, 229, 255, 0.5);
        }

        /* File Upload Styling */
        .file-upload {
            width: 100%;
            background: rgba(10, 11, 16, 0.5);
            border: 1px solid var(--glass-border);
            border-radius: calc(var(--border-radius) - 8px);
            color: var(--text-primary);
            font-size: 0.875rem;
            padding: 0.5rem;
            transition: all var(--transition-speed) ease;
            cursor: pointer;
        }

        .file-upload::-webkit-file-upload-button {
            background: var(--primary-gradient);
            border: none;
            border-radius: calc(var(--border-radius) - 12px);
            color: rgba(0, 0, 0, 0.8);
            font-weight: 600;
            padding: 0.4rem 0.8rem;
            margin-right: 0.8rem;
            cursor: pointer;
        }

        /* Buttons */
        .btn {
            background: var(--primary-gradient);
            border: none;
            border-radius: calc(var(--border-radius) - 8px);
            color: rgba(0, 0, 0, 0.8);
            font-weight: 600;
            font-size: 1rem;
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            transition: all var(--transition-speed) ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
            transform: translateX(-100%) rotate(45deg);
            transition: transform 0.6s;
        }

        .btn:hover::before {
            transform: translateX(100%) rotate(45deg);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: transparent;
            border: 1px solid var(--glass-border);
            color: var(--text-primary);
        }

        .btn-secondary:hover {
            border-color: rgba(0, 229, 255, 0.5);
            box-shadow: 0 5px 15px rgba(0, 229, 255, 0.1);
        }

        .btn-group {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        /* Result Panel */
        .result-panel {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .result-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(10, 11, 16, 0.5);
            border-radius: calc(var(--border-radius) - 4px);
            overflow: hidden;
            min-height: 200px;
            margin-bottom: 1rem;
            position: relative;
        }

        .result-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            opacity: 0;
            transition: opacity var(--transition-speed) ease;
        }

        .result-image.visible {
            opacity: 1;
        }

        .result-placeholder {
            position: absolute;
            color: var(--text-secondary);
            text-align: center;
            padding: 1rem;
        }

        .result-actions {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        /* Loading Animation */
        .loading {
            position: absolute;
            width: 60px;
            height: 60px;
            display: none;
        }

        .loading.visible {
            display: block;
        }

        .loading::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid transparent;
            border-top-color: #00e5ff;
            animation: spin 1s linear infinite;
        }

        .loading::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid transparent;
            border-top-color: #00ff9d;
            animation: spin 2s linear infinite;
            opacity: 0.5;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Notification */
        .notification {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: var(--border-radius);
            padding: 1rem 2rem;
            box-shadow: var(--glass-shadow);
            opacity: 0;
            transition: all var(--transition-speed) ease;
            z-index: 1000;
        }

        .notification.visible {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Responsive Adjustments */
        @media (max-width: 767px) {
            .container {
                padding: 1rem;
            }

            h1 {
                font-size: 2rem;
            }

            .panel {
                padding: 1.5rem;
            }

            .prompt-area {
                min-height: 150px;
            }

            .result-container {
                min-height: 150px;
            }
        }

        /* Config Panel */
        .config-toggle {
            position: fixed;
            bottom: 1rem;
            right: 1rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 100;
            transition: all var(--transition-speed) ease;
        }

        .config-toggle:hover {
            transform: rotate(30deg);
        }

        .config-panel {
            position: fixed;
            bottom: 0;
            right: 0;
            width: 300px;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-top-left-radius: var(--border-radius);
            border-left: 1px solid var(--glass-border);
            border-top: 1px solid var(--glass-border);
            padding: 1.5rem;
            transform: translateX(100%);
            transition: transform var(--transition-speed) ease;
            z-index: 99;
        }

        .config-panel.visible {
            transform: translateX(0);
        }

        .config-title {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .config-close {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 1.5rem;
            line-height: 1;
        }

        .config-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }