        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #F8F8F7;
            color: #143B29;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Header */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 13px 32px;
            position: sticky;
            top: 0;
            z-index: 20;
            background-color: #F8F8F7;
        }

        .logo-button {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo {
            width: 22px;
            height: 22px;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0 16px;
            margin-top: -60px;
            margin-top: 25px;
        }

        .chat-container {
            width: 100%;
            max-width: 800px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .welcome-title {
            color: #143B29;
            font-size: 36px;
            font-weight: normal;
            margin-bottom: 10px;
        }

        /* Chat Messages */


        .chat-messages.active {
            display: block;
        }

        .chat-messages::-webkit-scrollbar {
            display: none;
        }

        .message {
            margin-bottom: 64px;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.5s ease forwards;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.user {
            display: flex;
            justify-content: flex-end;
        }

        .message.assistant {
            display: flex;
            justify-content: flex-start;
        }

        .message-content {
            max-width: 90%;
            padding: 12px;
            border-radius: 20px;
            font-size: 14px;
            line-height: 1.5;
            color: #143B29;
        }

        .message.user .message-content {
            background-color: #ffffff;
            border: 1px solid #ededed;
            border-bottom-right-radius: 8px;
        }

        .message.assistant .message-content {
            background-color: transparent;
            border: none;
            padding-left: 0;
        }

        .message-actions {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: -20px;
            margin-top: 8px;
        }

        .action-button {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: transparent;
            border: none;
            cursor: pointer;
            color: #5D5D5D;
            transition: all 0.2s;
        }

        .action-button:hover {
            color: #143B29;
            background-color: #E8E8E8;
        }

        .action-button .tooltip {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 4px;
            padding: 4px 8px;
            background-color: #143B29;
            color: #E8E8E6;
            font-size: 12px;
            border-radius: 4px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            z-index: 10;
        }

        .action-button:hover .tooltip {
            opacity: 1;
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 12px 0;
            color: #5D5D5D;
            font-size: 14px;
        }

        .typing-dots {
            display: flex;
            gap: 4px;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #5D5D5D;
            animation: typing 1.4s infinite ease-in-out;
        }

        .typing-dot:nth-child(1) {
            animation-delay: -0.32s;
        }

        .typing-dot:nth-child(2) {
            animation-delay: -0.16s;
        }

        @keyframes typing {

            0%,
            80%,
            100% {
                transform: scale(0);
            }

            40% {
                transform: scale(1);
            }
        }

        .gpu-status-btn {
            /* position: absolute;
            bottom: -25px;
            right: 16px; */
            padding: 6px;
            background-color: #fbfcf9;
            border: 1px solid #ECECE5;
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.2s;
            z-index: 10;
            margin: 10px 10px 10px auto;
        }

        .gpu-status-btn:hover {
            background-color: #f4f4f4;
        }

        /* Chat Input Area */
        .chat-input-container {
            width: 100%;
            height: 120px;
            border: 1px solid #CCCCCC;
            background-color: #ffffff;
            border-radius: 16px;
            padding: 14px 12px 10px 12px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .chat-textarea {
            width: 100%;
            border: none;
            outline: none;
            resize: none;
            background: transparent;
            color: #143B29;
            font-size: 15px;
            line-height: 1.5;
            padding: 8px 12px;
            font-family: inherit;
            min-height: 48px;
            overflow-y: auto;
        }

        .chat-textarea::placeholder {
            color: #8F8F8F;
        }

        .chat-textarea::-webkit-scrollbar {
            display: none;
        }

        .chat-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 12px;
            gap: 10px;
        }

        /* Tool Buttons */
        .tool-buttons {
            display: flex;
            background-color: #E8EFEB;
            border-radius: 12px;
            padding: 3px;
            gap: 5px;
        }

        .tool-button {
            border-radius: 10px;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: none;
            background: none;
            transition: all 0.2s;
        }

        @media (max-width:600px) {
            .tool-button {
               padding: 3px;
            }

        }

        .tool-button.active {
            background-color: #ffffff;
            color: #228D37;
            border: 1px solid #228D37;
        }

        .tool-button:not(.active) {
            color: #54715E;
        }

        .tool-button:not(.active):hover {
            color: #143B29;
        }

        /* Model Selection and Send */
        .right-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .model-selector {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 8px 16px;
            border-radius: 16px;
            background: transparent;
            border: none;
            cursor: pointer;
            color: #143B29;
            font-size: 12px;
            font-weight: 500;
            transition: background-color 0.2s;
        }

        .model-selector:hover {
            background-color: #edede8;
        }

        @media (max-width:600px) {
            

            .model-selector {
                padding: 5px 7px;
            }
        }
        .chevron-down {
            width: 16px;
            height: 16px;
            transition: transform 0.2s;
        }

        .model-selector.open .chevron-down {
            transform: rotate(180deg);
        }
 
        .send-button {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #228D37;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s;
        }

        .send-button:hover:not(:disabled) {
            background-color: #2DB047;
        }

        .send-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .send-button svg {
            width: 16px;
            height: 16px;
            color: white;
        }

        /* Footer */
        .footer {
            /* position: fixed;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%); */
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 14px;
            color: #143B29;
            cursor: pointer;
            transition: color 0.2s;
        }

        .footer:hover {
            color: #3c5b45;
        }

        .footer svg {
            width: 15px;
            height: 15px;
            transform: rotate(180deg);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header {
                padding: 13px 16px;
            }

            .welcome-title {
                font-size: 24px;
            }

            .chat-container {
                padding: 0 8px;
            }

            .main-content {
                padding: 0 8px;
            }
        }

        /* Utility Classes */
        .hidden {
            display: none !important;
        }

        .disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        /* Dropdown Menu (for future JS implementation) */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #CCCCCC;
            border-radius: 8px;
            padding: 8px 0;
            min-width: 150px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            
        }

        .dropdown-item {
            padding: 8px 16px;
            cursor: pointer;
            font-size: 12px;
            color: #143B29;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }

        .dropdown-item:hover {
            background-color: #F8F8F7;
        }

        .dropdown-item.selected {
            background-color: #E8EFEB;
            color: #228D37;
        }


        .message {
            margin-bottom: 10px;
            max-width: 100%;
        }

        .user-message {
            display: flex;
            justify-content: flex-end;
        }

        .assistant-message {
            display: flex;
            justify-content: flex-start;
        }

        .message-content {
            position: relative;
            max-width: 80%;
            padding: 12px 16px;
            border-radius: 12px;
            word-wrap: break-word;
        }

        .user-message .message-content {
            background: #fff;
            color: #143b29;
            border-color: 1px solid #ededed;
            padding: 12px;
        }

        .assistant-message .message-content {
            background: none;
            color: #143b29;
            border: none;
            max-width: 100%;
            text-align: left;
        }

        .message-text {
            line-height: 1.5;
            font-size: 14px;
        }

        .message-text strong {
            font-weight: 600;
        }

        .message-text em {
            font-style: italic;
        }

        .message-text code {
            background: rgba(0, 0, 0, 0.1);
            padding: 2px 4px;
            border-radius: 3px;
            font-family: monospace;
            font-size: 13px;
        }

        .message-text pre {
            background: rgba(0, 0, 0, 0.1);
            padding: 8px;
            border-radius: 4px;
            overflow-x: auto;
            margin: 8px 0;
        }

        .message-text pre code {
            background: none;
            padding: 0;
        }

        .copy-button {
            /* position: absolute;
            top: 8px;
            right: 8px; */
            background: rgba(0, 0, 0, 0.1);
            border: none;
            border-radius: 4px;
            padding: 4px;
            cursor: pointer;
            opacity: 1;
            transition: opacity 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 5px;
            border-radius: 50%;
        }

        /* .message-content:hover .copy-button {
            opacity: 1;
        }
            */

        .copy-button:hover {
            background: rgba(0, 0, 0, 0.2);
        }

        .typing-indicator {
            animation: pulse 1.5s infinite;
            color: #666;
        }

        .typing-cursor {
            animation: blink 1s infinite;
            color: #007bff;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 0.5;
            }

            50% {
                opacity: 1;
            }
        }

        @keyframes blink {

            0%,
            50% {
                opacity: 1;
            }

            51%,
            100% {
                opacity: 0;
            }
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 10px 14px 2px;
            scroll-behavior: smooth;
            width: 100%;
            max-height: calc(100vh - 300px);
            overflow-y: auto;
        }

        

        .tool-popup {
            position: absolute;
            left: 25px;
            bottom: -25px;
            color: #e8e8e6;
            background-color: #143b29;
            padding: 5px 10px;
            border-radius: .25rem;
        }






        .panel-container {
            transition: all 0.3s ease-in-out;
            /* overflow: hidden; */
            opacity: 1;
            padding: 0 16px;
            max-width: 50%;
            width: 100%;
            display: flex;
            flex-direction: column;
            height: calc(100vh - 70px);
            min-height: 0;
            
        }

        @media (max-width:768px) {
            .panel-container {
                position: fixed;
                top: 50px;
                left: 0;
                max-width: 100%;
            }
        }

        .panel {
            width: 100%;
            margin: 0 auto;
            border-radius: 12px;
            color: #143B29;
            height: calc(100vh - 95px);
            margin-bottom: 24px;
            background: #ffffff;
            border: 1px solid #CCCCCC;
            padding: 10px 12px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .panel-content {
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 0;
            /* overflow: hidden; */
        }

        .panel-header {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .header-left {
            display: flex;
            flex-direction: row;
            gap: 16px;
            align-items: center;
            padding: 0 6px;
        }

        .header-title {
            color: #143B29;
            font-weight: 600;
            font-size: 14px;
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .hide-button {
            cursor: pointer;
            color: #143B29;
            font-size: 14px;
            padding: 6px;
            border-radius: 50%;
            background: none;
            border: none;
        }

        .hide-button:hover {
            background: #E8E8E8;
        }

        .divider {
            height: 1px;
            width: 100%;
            background: #e9e9e9;
            margin-top: 4px;
        }

        .panel-body {
            width: 100%;
            margin: 0 auto;
            border-radius: 12px;
            color: #143B29;
            height: 100%;
            display: flex;
            flex-direction: column;
            min-height: 0;
            flex: 1;
        }

        .body-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 8px;
            height: 100%;
            min-height: 0;
            /* overflow: hidden; */
            flex: 1;
        }

        .info-row {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;
            border-radius: 16px;
            gap: 14px;
        }

        @media (min-width: 768px) {
            .info-row {
                flex-direction: row;
            }
        }

        .model-info {
            display: flex;
            flex-direction: column;
            gap: 20px;
            /* min-height: 180px; */
            width: 400px;
            background: #FFFFFF;
            border-radius: 16px;
            padding: 6px 16px;
        }

        .distribution-info {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            padding: 6px 20px;
            background: #FFFFFF;
            border-radius: 16px;
        }

        .info-label {
            font-size: 12px;
            color: #143B29;
            font-weight: 600;
        }

        .info-value {
            font-size: 14px;
            color: #228D37;
        }

        .chart-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-height: 150px;
        }

        .chart {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .status-section {
            display: flex;
            flex-direction: column;
            background: #FFFFFF;
            border-radius: 16px;
            padding: 6px 16px;
            gap: 22px;
            height: 100%;
            min-height: 0;
            /* overflow: hidden; */
        }

        .status-header {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .status-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-radius: 9999px;
            background: rgba(33, 205, 153, 0.12);
            padding: 4px 8px;
            width: fit-content;
        }

        .status-tag svg {
            color: #228D37;
        }

        .status-tag-text {
            color: #228D37;
            font-size: 12px;
            text-transform: capitalize;
        }

        .workers-list {
            flex: 1;
            /* overflow-y: auto; */
            min-height: 0;
        }

        .worker-item {
            border-radius: 8px;
            padding-bottom: 12px;
        }

        .worker-header {
            display: flex;
            flex-direction: row;
            align-items: center;
            margin-bottom: 6px;
            font-size: 10px;
            color: #143B29;
            justify-content: space-between;
        }

        .worker-name {
            flex: 1;
            text-align: left;
            color: #143B29;
        }

        .worker-location {
            flex: 1;
            text-align: center;
        }

        .worker-status {
            flex: 1;
            text-align: right;
            color: #228D37;
            text-transform: capitalize;
        }

        .blocks-row {
            display: flex;
            justify-content: space-between;
            width: 100%;
            gap: 2.5px;
            position: relative;
        }

        .status-block {
            height: 20px;
            border-radius: 2px;
            width: 3px;
        }

        .bg-active-client {
            background-color: #218ecd;
        }

        .bg-active-server {
            background-color: #228d37;
        }

        .bg-inactive {
            background-color: #e1e2e1;
        }

        .blocks-footer {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 10px;
            color: #143B29;
            margin-top: 8px;
        }

        .footer-divider {
            flex: 1;
            height: 1px;
            background: #EDEDED;
        }

        .blocks-count {
            color: #143B29;
        }

        /* Simple scrollbar styling */
        .workers-list::-webkit-scrollbar {
            width: 6px;
        }

        .workers-list::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .workers-list::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        .workers-list::-webkit-scrollbar-thumb:hover {
            background: #aaa;
        }



        .card {
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: center;
            font-size: 11px;
            padding: 8px 12px;
            background-color: #191A19;
            border-radius: 6px;
            min-width: 180px;
            width: fit-content;
        }

        .row {
            display: flex;
            flex-direction: row;
            width: 100%;
            align-items: center;
        }

        .label {
            color: #cacecc;
            width: 38%;
        }

        .value {
            color: #E8E8E6;
        }

        .status {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 2px 4px;
            border-radius: 6px;
            width: fit-content;
            font-size: 11px;
        }

        .status.active {
            background-color: rgba(33, 205, 125, 0.16);
            color: #2ec04b;
        }

        .status.completed {
            background-color: rgba(33, 205, 125, 0.16);
            color: #2ec04b;
        }

        .status.not-assigned {
            background-color: rgba(255, 255, 255, 0.18);
            color: #cacecc;
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #5BD550;
        }

        .status-icon {
            width: 10px;
            height: 10px;
            display: inline-block;
        }

        /* Icon styles */
        .check-icon {
            color: #2ec04b;
        }

        .x-icon {
            color: #cacecc;
        }

        /* Demo styles for different states */
        .demo-section {
            margin-bottom: 20px;
            position: absolute;
            z-index: 99999999999;
            top: -80px;
            transform: translateX(-100%);

        }

        @media (max-width: 768px) {
            .demo-section {
                display: none !important;
            }
        }

        .demo-title {
            color: #E8E8E6;
            margin-bottom: 10px;
            font-size: 14px;
        }


        .bg-piano-active {
            background: #e1e2e1 !important;
            transform: scale(1.1) !important;
           
            z-index: 10;
        }

        .status-block.no-color {
            background-color: #e1e2e1;
        }