        

        body {
            background-color: var(--bg-color);
            background-image:
                radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
                radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.2) 0, transparent 50%),
                radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0.2) 0, transparent 50%);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding: 2rem;
        }

        /* Log panel görünür olduğunda body padding sola kaydır */
        @media (min-width: 1301px) {
            body {
                padding-left: 480px;
            }
        }

        .container {
            background: var(--card-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 18px;
            padding: 1.5rem;
            width: 100%;
            max-width: 800px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.6s ease-out;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            position: relative;
            z-index: 10;
        }

        

        .header {
            display: flex;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding-bottom: 0.75rem;
        }

        .back-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.2s;
            margin-right: 1rem;
        }

        .back-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(-3px);
        }

        h1 {
            font-size: 1.25rem;
            font-weight: 600;
            background: linear-gradient(135deg, #60a5fa, #c084fc);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .input-area {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        textarea {
            width: 100%;
            height: 150px;
            padding: 1rem;
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 16px;
            color: var(--text-primary);
            font-size: 1rem;
            outline: none;
            resize: vertical;
            transition: all 0.2s;
            line-height: 1.5;
        }

        textarea:focus {
            border-color: var(--input-focus);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .action-area {
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        .btn-submit {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.875rem 2rem;
            font-size: 1rem;
            font-weight: 500;
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            z-index: 1;
            gap: 0.5rem;
        }

        .btn-submit::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            z-index: -1;
            transition: opacity 0.3s ease;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
        }

        .btn-submit:active {
            transform: translateY(1px);
        }

        .result-area {
            background: var(--result-bg);
            border: 1px solid var(--input-border);
            border-radius: 16px;
            padding: 1.5rem;
            min-height: 150px;
            display: none;
            flex-direction: column;
            animation: fadeIn 0.4s ease-out;
            margin-top: 1rem;
        }

        .result-title {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .result-content {
            color: var(--text-primary);
            line-height: 1.6;
            white-space: pre-wrap;
        }

        

        

        

        

        

        .agents-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
            margin-top: 1rem;
        }

        .agent-card {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid var(--input-border);
            border-radius: 12px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            transition: transform 0.2s;
        }

        .agent-card:hover {
            transform: translateY(-2px);
        }

        .agent-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 0.75rem;
        }

        .agent-header h3 {
            font-size: 1.1rem;
            color: var(--accent-1);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .agent-score {
            font-weight: 600;
            font-size: 0.9rem;
            padding: 0.25rem 0.6rem;
            border-radius: 20px;
        }

        

        

        

        .agent-feedback,
        .agent-suggestion {
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        .agent-feedback strong,
        .agent-suggestion strong {
            color: #cbd5e1;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .metaprompt-container {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 16px;
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
            margin-top: 1rem;
        }

        .metaprompt-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
        }

        .metaprompt-container h3 {
            color: var(--text-primary);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.25rem;
        }

        .metaprompt-content {
            background: rgba(15, 23, 42, 0.8);
            padding: 1.5rem;
            border-radius: 12px;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.95rem;
            line-height: 1.7;
            color: #e2e8f0;
            white-space: pre-wrap;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .iteration-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
            /* responsive */
        }

        .btn-iter {
            flex: 1;
            /* eşit genişlikte dağılım */
            min-width: 200px;
            /* mobilde alta kaysın */
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 1.5rem;
            font-size: 1rem;
            font-weight: 500;
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            background: rgba(15, 23, 42, 0.8);
            gap: 0.5rem;
            text-align: center;
        }

        .btn-iter:hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.5);
            transform: translateY(-2px);
        }

        .btn-iter.primary {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.8));
            border-color: transparent;
        }

        .btn-iter.primary:hover {
            box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
        }

        /* Overlay CSS */
        .full-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            justify-content: center;
            align-items: center;
            color: white;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .full-overlay.active {
            display: flex;
            opacity: 1;
        }

        .overlay-content {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            animation: slideUp 0.5s ease;
            max-width: 400px;
        }

        

        

        

        /* PDF Export Styling overrides */
        .pdf-export-mode {
            background-color: #0f172a !important;
            /* Force solid dark bg instead of transparent */
            background-image: none !important;
            color: #f8fafc !important;
            padding: 1rem !important;

            /* Anti-aliasing ve typography netleştirme */
            text-rendering: optimizeSpeed !important;
            /* optimizeLegibility bazen kasmaya yol açar */
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
        }

        .pdf-export-mode * {
            box-shadow: none !important;
            /* Gölgeler canvasta blur yaratır */
            text-shadow: none !important;
            transform: none !important;
            /* Transformasyonlar renderı bozar */
            transition: none !important;
            opacity: 1 !important;
            /* Opasiteyi tamamen kaldır, her şey %100 solid olsun */
        }

        /* Şeffaf rgba tonlarını katı HEX kodlarına çeviriyoruz (Blur'u Kesin Engeller) */
        .pdf-export-mode .agent-card,
        .pdf-export-mode .master-prompt-box,
        .pdf-export-mode .archive-turn {
            background-color: #1e293b !important;
            /* Solid lighter navy */
            border: 1px solid #334155 !important;
            break-inside: avoid !important;
            page-break-inside: avoid !important;
        }

        .pdf-export-mode .score-high {
            background-color: #166534 !important;
            color: #4ade80 !important;
        }

        .pdf-export-mode .score-medium {
            background-color: #854d0e !important;
            color: #fde047 !important;
        }

        .pdf-export-mode .score-low {
            background-color: #991b1b !important;
            color: #f87171 !important;
        }

        .pdf-export-mode .result-area {
            background-color: #0f172a !important;
        }

        .overlay-content h2 {
            background: linear-gradient(135deg, #60a5fa, #c084fc);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 1.8rem;
        }

        .overlay-content p {
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 1.5rem;
        }

        .header-actions {
            display: flex;
            gap: 0.75rem;
        }

        .header-action-btn {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            transition: all 0.2s;
        }

        .header-action-btn:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }

        .header-action-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: rgba(15, 23, 42, 0.3);
            border-color: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.5);
        }

        /* Log Panel CSS (Terminal Style) */
        

        

        

        

        

        

        

        

        /* Yeşil */
        

        /* Sarı */
        

        /* Mavi */

        

        

        

        
        }

        /* Modal CSS */
        

        

        .modal-container {
            background: #0b0f19;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            width: 95%;
            max-width: 900px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: translateY(30px);
            transition: transform 0.3s ease;
        }

        .modal-overlay.active .modal-container {
            transform: translateY(0);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .modal-header h2 {
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: #f8fafc;
            margin: 0;
            font-weight: 600;
        }

        .modal-header h2 svg {
            color: #818cf8;
            background: rgba(129, 140, 248, 0.1);
            padding: 4px;
            border-radius: 6px;
        }

        .modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .modal-body::-webkit-scrollbar {
            width: 6px;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
        }

        .archive-accordion {
            background: #0f172a;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.2s ease;
        }

        .archive-accordion-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 1.5rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .archive-accordion-header:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        .archive-header-left {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .archive-version-badge {
            background: rgba(40, 48, 64, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.05);
            color: #f8fafc;
            font-weight: 600;
            font-size: 0.85rem;
            padding: 0.5rem 1.25rem;
            border-radius: 8px;
        }

        .archive-meta {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .archive-time {
            color: #94a3b8;
            font-size: 0.75rem;
            font-family: monospace;
        }

        .archive-status-badge {
            background: rgba(234, 179, 8, 0.1);
            color: #eab308;
            border: 1px solid rgba(234, 179, 8, 0.2);
            font-size: 0.65rem;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            letter-spacing: 0.5px;
            width: fit-content;
        }

        .archive-status-badge.ilk {
            background: rgba(59, 130, 246, 0.1);
            color: #60a5fa;
            border-color: rgba(59, 130, 246, 0.2);
        }

        .archive-toggle-btn {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #94a3b8;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .archive-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            color: white;
        }

        .archive-toggle-icon {
            transition: transform 0.3s;
        }

        .archive-accordion.open .archive-toggle-icon {
            transform: rotate(180deg);
        }

        .archive-accordion-body {
            display: none;
            padding: 1.5rem;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            flex-direction: column;
            gap: 1.5rem;
        }

        .archive-accordion.open .archive-accordion-body {
            display: flex;
        }

        .archive-section-title {
            font-size: 0.85rem;
            color: var(--accent-1);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.75rem;
            font-weight: 600;
        }

        /* Overlay Streaming Logs CSS */
        .overlay-log-container {
            margin-top: 2rem;
            width: 80%;
            max-width: 600px;
            height: 120px;
            background: rgba(10, 10, 15, 0.4);
            border: 1px solid rgba(129, 140, 248, 0.1);
            border-radius: 8px;
            padding: 1rem;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 0.85rem;
            text-align: left;
            position: relative;
        }

        .overlay-log-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: linear-gradient(to bottom, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0) 100%);
            pointer-events: none;
        }

        .overlay-log-line {
            color: #64748b;
            margin-bottom: 0.4rem;
            animation: slideUpLog 0.3s ease-out forwards;
            opacity: 0;
            transform: translateY(10px);
        }

        .overlay-log-line.active {
            color: #818cf8;
            font-weight: bold;
        }

        .overlay-log-badge {
            display: inline-block;
            color: #38bdf8;
            margin-right: 8px;
        }

        @keyframes slideUpLog {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Agent Board Modal CSS */
        .agent-board-container {
            width: 100%;
            max-width: 1100px;
            padding: 1.5rem 2rem;
        }

        .agent-board-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .preset-select {
            background: #0f172a;
            border: 1px solid rgba(129, 140, 248, 0.3);
            color: #f8fafc;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 0.95rem;
            width: 300px;
            cursor: pointer;
            outline: none;
            transition: border-color 0.2s;
        }

        .preset-select:focus {
            border-color: #818cf8;
        }

        .agent-list {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            max-height: 55vh;
            overflow-y: auto;
            padding-right: 1rem;
        }

        .agent-list::-webkit-scrollbar {
            width: 6px;
        }

        .agent-list::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
        }

        .agent-row {
            background: rgba(15, 23, 42, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 1.25rem;
            display: grid;
            grid-template-columns: 1.5fr 2fr 1fr 1fr auto;
            gap: 1rem;
            align-items: end;
        }

        .agent-field label {
            display: block;
            font-size: 0.75rem;
            color: #94a3b8;
            margin-bottom: 0.4rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .agent-input {
            width: 100%;
            background: #0b0f19;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #f8fafc;
            padding: 0.6rem 0.8rem;
            border-radius: 6px;
            font-size: 0.9rem;
            transition: border-color 0.2s;
        }

        .agent-input:focus {
            border-color: #818cf8;
            outline: none;
        }

        .btn-delete-agent {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #ef4444;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-delete-agent:hover {
            background: #ef4444;
            color: white;
        }

        .agent-board-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            margin-top: 1.5rem;
        }

        .btn-outline-add {
            background: transparent;
            border: 1px dashed rgba(129, 140, 248, 0.5);
            color: #818cf8;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-outline-add:hover {
            background: rgba(129, 140, 248, 0.1);
            border-style: solid;
        }

        .btn-save-board {
            background: #6366f1;
            border: none;
            color: white;
            padding: 0.75rem 2rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .btn-save-board:hover {
            background: #4f46e5;
            transform: translateY(-2px);
        }

        .btn-copy {
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.2);
            color: #c4b5fd;
            padding: 0.4rem 0.8rem;
            border-radius: 8px;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            cursor: pointer;
            transition: all 0.25s ease;
            backdrop-filter: blur(4px);
        }

        .btn-copy:hover {
            background: rgba(139, 92, 246, 0.25);
            border-color: rgba(139, 92, 246, 0.4);
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
        }
