        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');
        :root {
            --di-orange: #f57f17;
            --di-blue: #00bcd4;
            --di-dark: #121212;
            --di-light: #2a2a2a;
            --cobalt-blue: #0047ab;
            --pure-pink: #ff69b4;
            --pure-cyan: #00ffff;
            --pure-purple: #800080;
            --pure-red: #ff0000;
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, 
                #0a0a0a 0%, 
                #1a1a2e 25%, 
                #16213e 50%, 
                #0f0f23 75%, 
                #000000 100%);
            background-attachment: fixed;
            overflow-x: hidden;
            position: relative;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
        }
        /* Animated background particles */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.1) 0%, transparent 50%);
            animation: drift 20s ease-in-out infinite alternate;
            pointer-events: none;
            z-index: -1;
        }
        @keyframes drift {
            0% { transform: rotate(0deg) scale(1); }
            100% { transform: rotate(180deg) scale(1.1); }
        }
        .container {
            display: grid;
            grid-template-columns: 300px 1fr; /* Fixed sidebar width, flexible main content */
            min-height: 100vh;
            max-width: 100vw;
            overflow-x: hidden;
        }
        /* Left sidebar with diamond grid */
        .sidebar {
            width: 300px;
            padding: 2rem 1rem;
            background: rgba(10, 10, 10, 0.7);
            backdrop-filter: blur(10px);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
        }
        .newchat-btn {
          position: fixed;
          top: 20px;
          right: 20px;
          width: 36px;
          height: 36px;
          border-radius: 50%;
          //background-color: var(--di-orange);
          background: linear-gradient(135deg, var(--di-orange), #000000);
          color: white;
          border: none;
          cursor: pointer;
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 22px;
          transition: all 0.2s ease-in-out;
          z-index: 9999;
        }
        .newchat-btn:hover {
          background-color: #5a95f6;
          transform: scale(1.1);
        }
        .diamond-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-gap: 15px;
            margin-top: 20px;
        }
        .diamond {
            aspect-ratio: 1/1;
            transform: rotate(45deg);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .diamond::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, 
                          rgba(255, 255, 255, 0.1) 0%, 
                          rgba(255, 255, 255, 0) 50%,
                          rgba(0, 0, 0, 0.3) 100%);
        }
        .diamond:hover {
            transform: rotate(45deg) scale(1.05);
            box-shadow: 0 0 30px var(--di-blue);
            z-index: 10;
        }
        .diamond-content {
            transform: rotate(-45deg);
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 0.85rem;
            text-align: center;
            text-shadow: 0 0 5px black;
            padding: 15px;
            box-sizing: border-box;
            word-break: break-word;
            overflow: hidden;
            line-height: 1.3;
            pointer-events: auto;
        }
        /* Diamond gradients */
        .diamond:nth-child(7n+1) {
            background: linear-gradient(135deg, var(--di-blue), var(--di-orange));
        }
        .diamond:nth-child(7n+2) {
            background: linear-gradient(135deg, var(--di-orange), var(--di-dark));
        }
        .diamond:nth-child(7n+3) {
            background: linear-gradient(135deg, var(--di-dark), var(--di-light));
        }
        .diamond:nth-child(7n+4) {
            background: linear-gradient(135deg, var(--cobalt-blue), var(--pure-pink));
        }
        .diamond:nth-child(7n+5) {
            background: linear-gradient(135deg, var(--pure-cyan), var(--pure-purple));
        }
        .diamond:nth-child(7n+6) {
            background: linear-gradient(135deg, var(--pure-red), var(--cobalt-blue), var(--pure-cyan));
        }
        .diamond:nth-child(7n+7) {
            background: linear-gradient(135deg, var(--di-light), var(--di-blue));
        }
        /* Main content area */
        .main-content {
            width: 100%;
            max-width: 100%;
            padding: 0 2rem;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }
        header {
            text-align: center;
            padding: 30px 0;
            position: relative;
            margin-bottom: 40px;
        }
        header::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--pure-pink), var(--cobalt-blue), var(--pure-cyan), transparent);
            z-index: -1;
        }
        .hero-title {
            font-size: clamp(1rem, 2vw, 2rem);
            font-weight: 100;
            color: #ffffff;
            text-align: center;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #3b82f6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.02em;
            line-height: 1.1;
        }
        .hero-subtitle {
            font-size: clamp(1.2rem, 3vw, 1.8rem);
            font-weight: 200;
            color: rgba(255, 255, 255, 0.7);
            text-align: center;
            margin-bottom: 4rem;
            letter-spacing: -0.01em;
        }
        footer {
            text-align: center;
            padding: 30px 0;
            margin-top: auto;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.8rem;
            width: 100%;
        }
             /* Responsive adjustments */
             @media (max-width: 1024px) {
                 .container {
                     grid-template-columns: 1fr;
                     grid-template-rows: auto 1fr;
                 }

                 .sidebar {
                     width: 100%;
                     border-right: none;
                     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                 }

                 .main-content {
                     padding: 0 1rem;
                 }

                 .diamond-grid {
                     grid-template-columns: repeat(4, 1fr);
                 }
             }

             @media (max-width: 768px) {
                 .main-content {
                     padding: 0 0.5rem;
                 }

                 .diamond-grid {
                     grid-template-columns: repeat(3, 1fr);
                 }

                 .diamond-content {
                     font-size: 0.75rem;
                     padding: 10px;
                 }

                 .response-container, .error-container, .rate-limit-container {
                     padding: 1rem;
                     margin: 1rem 0;
                 }
             }

             @media (max-width: 480px) {
                 .main-content {
                     padding: 0 0.25rem;
                 }

                 .diamond-grid {
                     grid-template-columns: repeat(2, 1fr);
                     grid-gap: 10px;
                 }

                 .diamond-content {
                     font-size: 0.65rem;
                 }

                 .copy-btn {
                     width: 40px;
                     height: 40px;
                     font-size: 16px;
                     bottom: 10px;
                     right: 10px;
                 }
             }
             .sidebar-title {
            color: white;
            text-align: center;
            font-size: 1.5rem;
            margin-bottom: 2rem;
            font-weight: 300;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(90deg, var(--pure-pink), var(--cobalt-blue), var(--pure-cyan));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        /* Sign-in specific styles */
        #sign-in-container {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: 2rem 0;
        }
        #sign-in {
            width: 100%;
        }
        /* User info display */
        .user-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 2rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            backdrop-filter: blur(5px);
        }
        .user-welcome {
            color: white;
            font-size: 1.1rem;
        }
        .sign-out-btn {
            background: linear-gradient(135deg, var(--pure-red), var(--di-orange));
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 16px;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .sign-out-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        /* Form styles */
        form {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            box-sizing: border-box;
        }
        textarea {
            width: 100%;
            max-width: 100%;
            min-height: 120px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            color: white;
            font-family: 'Inter', sans-serif;
            font-size: 17px;
            padding: 12px;
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
            resize: vertical;
            box-sizing: border-box;
        }
        textarea:focus {
            outline: none;
            border-color: var(--di-blue);
            box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
        }
        ::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }
        .form-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
        }
        .return-toggle {
            display: flex;
            align-items: center;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 20px;
            margin-right: 8px;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.2);
            transition: .4s;
            border-radius: 34px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .toggle-slider {
            background-color: var(--di-blue);
        }
        input:checked + .toggle-slider:before {
            transform: translateX(20px);
        }
        input[type="submit"] {
            background: linear-gradient(135deg, var(--di-blue), var(--di-orange));
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 20px;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        input[type="submit"]:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        /* Rate limit message styling */
        .rate-limit-container {
            text-align: center;
            margin: 2rem 0;
            padding: 2rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .rate-limit-diamond {
            width: 100px;
            height: 100px;
            margin: 0 auto 1.5rem;
            background: linear-gradient(135deg, var(--pure-red), var(--cobalt-blue));
        }
        .rate-limit-container h2 {
            color: white;
            margin-bottom: 1rem;
            font-weight: 500;
        }
        .rate-limit-container p {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
        }
        .response-container, .error-container {
            width: 100%;
            max-width: 100%;
            margin: 2rem 0;
            padding: 1.5rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-sizing: border-box;
            position: relative; /* Important for copy button positioning */
            overflow: hidden;
        }
        .response-container h2, .error-container h2 {
            color: white;
            margin-bottom: 1rem;
            font-weight: 500;
        }
        .response-container pre, .error-container pre {
            color: rgba(255, 255, 255, 0.9);
            white-space: pre-wrap;
            word-wrap: break-word;
            line-height: 1.5;
            background: rgba(255, 255, 255, 0.05);
            padding: 1rem;
            padding-bottom: 4rem; /* Add space for copy button */
            border-radius: 8px;
            overflow-x: auto;
            max-width: 100%;
            box-sizing: border-box;
        }
        .copy-btn {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: #3498db;
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 10;
        }
        
        .copy-btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }
        
        .copy-btn:active {
            transform: translateY(0);
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
        }
        
        .copy-btn.copied {
            background: #2ecc71;
        }
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #2ecc71;
            color: white;
            padding: 15px 25px;
            border-radius: 5px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            transform: translateY(-100px);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .notification.show {
            transform: translateY(0);
            opacity: 1;
        }
        /* dropdown */
        .model-selector {
            position: relative;
            width: 100%;
        }
        
        .selector-button {
            width: 100%;
            padding: 16px 20px;
            background: #4f46e5;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }
        
        .selector-button:hover {
            background: #4338ca;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
        }
        
        .selector-button:active {
            transform: translateY(0);
        }
        
        .selector-arrow {
            transition: transform 0.3s ease;
            font-size: 14px;
        }

        .dropdown-list {
            margin-bottom: 4px;
            position: absolute;
            top: auto;
            bottom: 100%
            left: 0;
            width: 100%;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            margin-top: 8px;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .dropdown-list.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-item {
            padding: 16px 20px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
            font-size: 16px;
        }
        
        .dropdown-item:last-child {
            border-bottom: none;
        }
        
        .dropdown-item:hover {
            background: #f8faff;
            padding-left: 24px;
        }
        
        .dropdown-item.selected {
            background: #eef2ff;
            color: #4f46e5;
            font-weight: 500;
        }
        
        .dropdown-item.selected::before {
            content: "✓";
            margin-right: 10px;
            font-weight: bold;
        }
        
        .info-text {
            margin-top: 20px;
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }
