        

        body {
            background-color: var(--bg-base);
            color: var(--text-main);
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* --- NAVBAR --- */
        .navbar {
            height: 48px;
            background: rgba(17, 24, 39, 0.8);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            padding: 0 16px;
            justify-content: space-between;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-main);
            text-decoration: none;
        }

        .brand svg {
            width: 24px;
            height: 24px;
            stroke: var(--accent-purple);
        }

        .nav-actions {
            display: flex;
            gap: 16px;
        }

        .btn-ghost {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
            border: 1px solid var(--border);
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
            text-decoration: none;
        }

        .btn-ghost:hover {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.1);
        }

        /* --- MAIN LAYOUT --- */
        .workspace {
            display: flex;
            flex: 1;
            overflow: hidden;
            padding: 16px;
            gap: 14px;
        }

        .panel {
            background: var(--bg-panel);
            border-radius: 12px;
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .panel-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* --- LEFT PANEL: PROJECT CONTROLS --- */
        .left-panel {
            flex: 0 0 400px;
            display: flex;
            flex-direction: column;
        }

        .left-panel-content {
            padding: 14px;
            overflow-y: auto;
            flex: 1;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 24px;
        }

        .input-group label {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            background: rgba(17, 24, 39, 0.5);
            border: 1px solid var(--border);
            color: var(--text-main);
            padding: 12px;
            border-radius: 6px;
            font-family: inherit;
            font-size: 0.9rem;
            resize: vertical;
            transition: border-color 0.2s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--accent-purple);
        }

        .btn-primary {
            background: var(--accent-purple);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background 0.2s;
            font-size: 1rem;
        }

        .btn-primary:hover {
            background: var(--accent-purple-hover);
        }

        /* --- CENTER PANEL: ACTIVE PROJECTS --- */
        .center-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .projects-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 14px;
            overflow-y: auto;
            flex: 1;
        }

        .project-card {
            background: rgba(17, 24, 39, 0.4);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 14px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            transition: transform 0.2s, border-color 0.2s;
        }

        .project-card:hover {
            transform: translateY(-2px);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .project-info h3 {
            font-size: 1.1rem;
            color: var(--text-main);
            margin-bottom: 4px;
        }

        .project-info p {
            font-size: 0.85rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .status-badge {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .status-active {
            background: rgba(16, 185, 129, 0.15);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .status-completed {
            background: rgba(59, 130, 246, 0.15);
            color: #3b82f6;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .project-meta {
            display: flex;
            gap: 16px;
            font-size: 0.85rem;
            color: var(--text-muted);
            align-items: center;
        }

        .project-meta span {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .project-progress {
            margin-top: 8px;
        }

        .progress-bar {
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 6px;
        }

        .progress-fill {
            height: 100%;
            background: var(--accent-purple);
            border-radius: 3px;
        }

        .progress-stats {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* --- KURUL MODAL --- */
        

        

        .modal-content {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: 16px;
            width: 900px;
            max-width: 95vw;
            height: 600px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: translateY(20px);
            transition: transform 0.3s;
        }

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

        .modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            font-size: 1.25rem;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-header h2 i {
            color: var(--accent-purple);
            background: rgba(168, 85, 247, 0.15);
            padding: 6px;
            border-radius: 8px;
            font-size: 1.1rem;
        }

        .close-modal {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.2s;
        }

        .close-modal:hover {
            color: var(--text-main);
        }

        .modal-body {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        .modal-sidebar {
            width: 280px;
            border-right: 1px solid var(--border);
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
        }

        .modal-sidebar-header {
            padding: 16px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .btn-add-board {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-add-board:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .board-list {
            flex: 1;
            overflow-y: auto;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding-right: 4px;
            /* for scrollbar */
        }

        .board-item {
            padding: 12px 16px;
            border-radius: 12px;
            cursor: pointer;
            color: var(--text-muted);
            border: 1px solid transparent;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 500;
        }

        .board-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
        }

        .board-item.active {
            background: rgba(168, 85, 247, 0.1);
            border-color: rgba(168, 85, 247, 0.4);
            color: white;
            box-shadow: 0 4px 12px rgba(168, 85, 247, 0.1);
        }

        .board-item i {
            width: 20px;
            text-align: center;
        }

        .modal-main {
            flex: 1;
            padding: 24px 32px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .board-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }

        .board-detail-info {
            max-width: 70%;
        }

        .board-detail-info h3 {
            font-size: 1.6rem;
            color: var(--text-main);
            margin-bottom: 8px;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .board-detail-info p {
            font-size: 0.95rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        .btn-outline-purple {
            background: transparent;
            border: 1px solid rgba(168, 85, 247, 0.5);
            color: var(--text-main);
            padding: 10px 16px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-outline-purple:hover {
            background: rgba(168, 85, 247, 0.1);
            border-color: var(--accent-purple);
        }

        .agent-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 16px;
        }

        .agent-card-mini {
            background: #151e2f;
            /* Darker background */
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 16px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            transition: transform 0.2s, background 0.2s;
            cursor: pointer;
        }

        .agent-card-mini:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .agent-avatar {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            background: rgba(168, 85, 247, 0.15);
            color: #d8b4fe;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.3rem;
            flex-shrink: 0;
        }

        .agent-info h4 {
            font-size: 1rem;
            color: var(--text-main);
            margin-bottom: 4px;
            line-height: 1.2;
            font-weight: 600;
        }

        .agent-info p {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .add-agent-btn {
            border: 1px dashed rgba(168, 85, 247, 0.4);
            background: rgba(168, 85, 247, 0.05);
            color: #d8b4fe;
            border-radius: 12px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.2s;
            min-height: 100px;
        }

        .add-agent-btn:hover {
            background: rgba(168, 85, 247, 0.1);
            border-color: var(--accent-purple);
            color: white;
        }

        .add-agent-btn i {
            font-size: 1.5rem;
            transition: transform 0.2s;
        }

        .add-agent-btn:hover i {
            transform: scale(1.1);
        }

        /* --- SMALL MODAL (PROMPT) --- */
        .modal-sm {
            width: 380px;
            height: auto;
            max-height: 90vh;
            background: #1e2532;
            /* Daha koyu lacivert arkaplan */
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
        }

        .modal-sm .modal-header {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .modal-sm .modal-header h2 {
            font-size: 1.15rem;
            color: #fff;
            gap: 10px;
        }

        .modal-sm .modal-header h2 i {
            background: rgba(168, 85, 247, 0.2);
            color: #d8b4fe;
            border-radius: 50%;
            padding: 6px;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }

        .form-control-modal {
            background: #111827;
            border: 1px solid rgba(168, 85, 247, 0.5);
            /* Mor default border */
            color: #fff;
            padding: 12px 14px;
            border-radius: 8px;
            width: 100%;
            font-size: 0.95rem;
            outline: none;
            transition: all 0.2s;
        }

        .form-control-modal:focus {
            border-color: #a855f7;
            box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
        }

        .btn-ghost-sm {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-muted);
            border: none;
            padding: 10px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-ghost-sm:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        .btn-primary-purple {
            background: #a855f7;
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 1;
            /* Yatayda yayılmasını sağlar */
            transition: background 0.2s;
        }

        .btn-primary-purple:hover {
            background: #9333ea;
        }


/* === Kurul Modal Stilleri === */
/* Updated .modal-content */
        .modal-content.agent-board-container {
            width: 100%;
            max-width: 1100px;
            padding: 1.5rem 2rem;
            background-color: var(--bg-panel);
            border-radius: 12px;
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            max-height: 90vh;
        }

        .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;
            overflow-y: auto;
            padding-right: 1rem;
            flex: 1;
        }

        .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;
        }


        /* Updated .modal-sm */
        .modal-content.modal-sm {
            max-width: 400px;
            /* Smaller width */
            border-radius: 12px;
            /* Ensure consistent border-radius */
            border: 1px solid var(--border);
        }

        /* Updated .form-control-modal */
        .form-control-modal {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background-color: var(--bg-input);
            color: var(--text-main);
            font-size: 0.95rem;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .form-control-modal:focus {
            outline: none;
            border-color: var(--accent-purple);
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
            /* Purple shadow */
        }

        /* New .btn-ghost-sm */
        .btn-ghost-sm {
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .btn-ghost-sm:hover {
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
        }

        /* New .btn-primary-purple */
        .btn-primary-purple {
            background-color: var(--accent-purple);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background-color 0.2s ease, box-shadow 0.2s ease;
            flex-grow: 1;
            /* Make it span full width in its container */
        }

        .btn-primary-purple:hover {
            background-color: #7c3aed;
            /* Darker purple */
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
        }
