body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(30, 28, 29);
    color: #e8eaed;
    height: 100vh;
    font-size: 16px;
    line-height: 1.5;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Login Screen */
#login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: rgb(30, 28, 29);
    z-index: 2000; /* Ensure it appears above everything else */
}

/* Add this new rule to ensure proper initial state */
html.logged-in #login-container {
    display: none !important;
}

html.logged-in #app-container {
    display: flex !important;
}

.login-card {
    background-color: rgb(30, 28, 29);
    border-radius: 12px;
    padding: 30px;
    width: 350px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    margin: 0;
    color: #e8eaed;
    font-size: 24px;
    font-weight: 500;
}


.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #9aa0a6;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: rgb(30, 28, 29);
    border: 1px solid #1E1C1E;
    border-radius: 8px;
    color: #e8eaed;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--telekom-magenta);
}

/* Add input error styling */
.form-group input.input-error {
    border-color: #f44336;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.login-btn {
    background-color: var(--telekom-magenta);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: var(--telekom-magenta-light);
}

/* Sidebar Styles */
#sidebar {
    width: 250px;
    background-color: #252224;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.6);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
    transition: transform 0.3s ease, margin 0.3s ease;
    z-index: 10;
    border-right: 0px solid #2b2929; /* Add thin black border on the right side */
    overflow-y: hidden; /* Prevent double scrollbars */
}

.sidebar-logo {
    margin-top: -18px;
    margin-bottom: -20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo img {
    min-width: 190px;   
    height: auto;   
}

#sidebar h2 {
    color: #e8eaed;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 18px;
}



.sidebar-section h3 {
    color: #9aa0a6;
    font-weight: 500;
    margin-bottom: 8px; /* Reduced from 12px for tighter spacing */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    letter-spacing: 0.25px;
}

.add-btn {
    background-color: transparent;
    color: #9aa0a6;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.add-btn:hover {
    background-color: var(--telekom-magenta-transparent);
    color: var(--telekom-magenta);
}


.sidebar-btn i {
    font-size: 16px;
    color: #9aa0a6;
    min-width: 20px;
    text-align: center;
}

.sidebar-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-btn:hover i {
    color: var(--telekom-magenta);
}

.sidebar-btn:active {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Main Chat Area */
#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-color: rgb(30, 28, 29);
    position: relative; /* Add this for positioning the GPU panel */ 
    margin-left: 0;
    transition: margin-left 0.3s ease;
}



/* Header connection status styles - remove or comment out */
.header-connection-status {
    display: none; /* Hide the connection status indicator */
}

.status-icon, .status-text {
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7; /* Make user info semi-transparent */
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--telekom-magenta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; /* Make text white for better contrast */
    font-weight: 600; /* Make text slightly bolder */
    font-size: 14px;
    text-transform: uppercase; /* Ensure uppercase letters */
}

.username-display {
    color: #e8eaed;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    background-color: transparent;
    color: #9aa0a6;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    display: flex;
    align-items: center;
    margin-left: 10px;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: var(--telekom-magenta);
}

#main-content {
    display: flex;
}

#chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background-color: rgb(30, 28, 29);
    margin-right: 0; /* Remove the 300px margin that was for the GPU panel */
}

#gpu-monitor {
    position: absolute;
    top: 70px;
    right: 40px; /* Increased right spacing */
    width: 260px;
    background-color: #171617;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 5;
}

#chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background-color: rgb(30, 28, 29);
    height: 0;
    min-height: 0;
    /* Replace margin-right with centered 70% width */
    width: 65%;
    max-width: 65%;
    margin-left: auto;
    margin-right: auto;
}

/* Message styles - keeping user messages as bubbles but bot messages full width */
.message {
    padding: 12px;
    margin: 6px 0;
    line-height: 1.4;
    font-size: 14px;
    word-wrap: break-word;
}

.message p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

/* User messages remain in bubbles */
.user-message {
    max-width: 70%;
    background-color: var(--telekom-magenta-dark);
    color: #e8eaed;
    align-self: flex-end;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
}



/* Keep the copy button in the right position for wider messages */
.bot-message .copy-btn {
    right: 0;
}

/* Adjust code in messages */
.message pre {
    background-color: #171516;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0; /* Reduced from 10px */
}

.message code {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #171516;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 13px; /* Reduced from 14px */
}



/* Adjust tables for full-width bot messages */
.bot-message table {
    border-collapse: collapse;
    margin: 16px 0;
    width: 100%;
    font-size: 17px;
    text-align: left;
    max-width: 90%; /* Limit table width somewhat for readability */
}

.bot-message th {
    background-color: #3c4043;
    color: #e8eaed;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid #1E1C1E;
}

.bot-message td {
    padding: 8px 12px;
    border: 1px solid #1E1C1E;
    background-color: #171516;
}

.bot-message tr:nth-child(odd) td {
    background-color: #171617;
}

.bot-message table code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}



.bot-message code {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: rgba(53, 54, 58, 0.5);
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 14px;
}

.bot-message pre code {
    background-color: transparent; /* Remove background for code inside pre */
    padding: 0;
    border-radius: 0;
    color: #abb2bf; /* Base text color for code */
}

/* Fix the line number styles to work with syntax highlighting */
.editable-content.code-view .line-number {
    color: #636d83;
    user-select: none;
    display: inline-block;
    width: 3em;
    text-align: right;
    padding-right: 0.5em;
    margin-right: 0.5em;
    border-right: 1px solid #3e4451;
}

/* Improve the appearance of inline code */
.bot-message p code {
    color: #e40e6e; /* Light red for inline code */
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px; /* Reduced from 16px */
    margin: 6px 0; /* Reduced from 8px */
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: var(--telekom-magenta);
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Create a wrapper for input and send button */
#input-box .input-wrapper {
    margin-top: 2%;
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative; /* Add this to create positioning context */
    align-items: center; /* Ensure vertical alignment */
    
}

/* Redesigned input field */
#message-input {
    width: 38%; /* Reduced from 55% (over 30% reduction) */
    padding: 12px 14px;
    padding-right: 50px;
    border-radius: 24px;
    border: 1px solid #2d2b2d;
    outline: none;
    background-color: #1a1819;
    color: #e8eaed;
    font-size: 17px;
    transition: background-color 0.2s, border-color 0.3s, box-shadow 0.2s;
}

#message-input:focus {
    background-color: #171516;
    border-color: var(--telekom-magenta); /* Changed from transparent to Telekom magenta */
    box-shadow: 0 1px 6px rgba(226, 0, 116, 0.25); /* Adjusted shadow to match Telekom magenta */
}

/* Fix send button positioning to be adjacent to input */
#send-button {
    background-color: rgb(58, 53, 57);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px; /* Reduced from 40px */
    height: 36px; /* Reduced from 40px */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px; /* Add margin for spacing from input */
    position: relative; /* Change from absolute to relative */
    transform: none; /* Remove the vertical centering transform */
}

#send-button:hover {
    background-color: var(--telekom-magenta-light);
}

#send-button i {
    font-size: 16px;
}

#send-button:hover {
    background-color: var(--telekom-magenta-light);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #171617;
    padding: 24px;
    border-radius: 12px;
    width: 400px;
    font-size: 17px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.modal h3 {
    margin-top: 0;
    color: #e8eaed;
    font-size: 18px;
    font-weight: 500;
}

.modal input[type="text"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background-color: #171516;
    color: #e8eaed;
    border: 1px solid #1E1C1E;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.2s;
    box-sizing: border-box; /* Add this to include padding in width calculation */
}

.modal input[type="text"]:focus {
    outline: none;
    background-color: #3c4043;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    border-color: var(--telekom-magenta);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

/* Remove cancel-btn styling */
/* .cancel-btn {
    background-color: #171516;
    color: #9aa0a6;
}

.cancel-btn:hover {
    background-color: #3c4043;
} */

.confirm-btn {
    background-color: var(--telekom-magenta);
    color: #ffffff;
}

.confirm-btn:hover {
    background-color: var(--telekom-magenta-light);
}

/* File upload styles */
#file-upload-modal .drop-area {
    border: 2px dashed #1E1C1E;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin: 15px 0;
    cursor: pointer;
    font-size: 17px;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative; /* Make sure it's positioned as a clickable area */
}

#file-upload-modal .drop-area:hover {
    background-color: rgba(226, 0, 116, 0.1);
    border-color: var(--telekom-magenta);
}

#file-upload-modal .drop-area:after {
    content: "Click to browse files";
    display: block;
    margin-top: 8px;
    color: var(--telekom-magenta);
    font-weight: 500;
    font-size: 14px;
}

#file-upload-modal .file-input {
    display: none; /* Hide the actual file input */
}

.file-list {
    margin-top: 16px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #1E1C1E;
    font-size: 14px;
}

/* Logo container at bottom of sidebar */
.logo-container {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 10px;
}

.logo-container img {
    max-width: 60%;
    height: auto;
}



@keyframes thinkingAnimation {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}





.file-item-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #e8eaed;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 14px;
    transition: all 0.2s ease; /* Changed from only background-color to all */
    border: 1px solid transparent; /* Add transparent border by default */
    background-color: transparent; /* Start with transparent background */
}

.file-item-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.08); /* Match the action buttons hover background */
    border-color: transparent; /* Keep border transparent like action buttons */
    transform: none; /* Remove the lift effect to match action buttons */
    box-shadow: none; /* Remove shadow to match action buttons */
}

.file-item-sidebar:active {
    background-color: rgba(255, 255, 255, 0.12); /* Slightly darker when pressed */
}

.file-item-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.file-icon {
    margin-right: 8px;
    color: #9aa0a6; /* Match the default color of action buttons */
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.2s; /* Add transition for icon color */
}

.file-item-sidebar:hover .file-icon {
    color: var(--telekom-magenta); /* Change color on hover like action buttons */
}

/* Improve the delete button appearance */
.file-delete-btn {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: none; /* Hide by default */
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.2s;
    padding: 0;
    margin-left: 4px;
}

.file-item-sidebar:hover .file-delete-btn {
    display: flex; /* Show on hover */
}

.file-delete-btn:hover {
    color: #f44336; /* Red color on hover */
    opacity: 1;
}



.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #1E1C1E;
    margin-bottom: 0; /* Changed from 16px */
}

.file-preview-title {
    font-size: 16px;
    font-weight: 500;
    color: #e8eaed;
}

/* Add styles for the preview toolbar */
.preview-toolbar {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #1E1C1E;
    overflow-x: auto;
    position: sticky;
    top: 0;
    background-color: #171617;
    z-index: 5;
}






/* System instructions improvements */
#system-instructions-modal .modal-content {
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.instructions-note {
    color: #9aa0a6;
    font-size: 14px;
    margin-bottom: 16px;
}

#system-instructions-container {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 50vh;
    background-color: #e8eaed;
    border-radius: 8px;
    overflow: hidden;
}

#system-instructions-toolbar {
    display: flex;
    gap: 8px;
    padding: 12px;
    background-color: #171516;
    border-bottom: 1px solid #1E1C1E;
}

#system-instructions-content {
    flex: 1;
    padding: 16px;
    outline: none;
    color: rgb(30, 28, 29);
    background-color: #fff;
    border: none;
    font-family: 'Google Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    overflow: auto;
    white-space: pre-wrap; /* This ensures newlines and spaces are preserved */
}

/* Sidebar toggle button for mobile */
#sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    background-color: #8ab4f8;
    color: rgb(30, 28, 29);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



/* Modern Button Styles */
.sidebar-btn {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    background-color: transparent;
    color: #e8eaed;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-btn i {
    font-size: 16px;
    color: #9aa0a6;
    min-width: 20px;
    text-align: center;
}

.sidebar-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-btn:hover i {
    color: var(--telekom-magenta);
}

/* Sidebar toggle button in header */
#header-sidebar-toggle {
    background-color: transparent;
    color: rgba(154, 160, 166, 0.5); /* More transparent color */
    border: none;
}



/* Copy button styling */
.copy-btn {
    position: static; /* Remove absolute positioning */
    right: auto;
    top: auto;
    opacity: 0.7; /* Always slightly visible */
    border-radius: 4px; /* Match other action buttons */
    width: 32px;
    height: 32px;
}

.bot-message:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--telekom-magenta);
}

.copy-btn.copied {
    background-color: var(--telekom-magenta);
    color: rgb(30, 28, 29);
    opacity: 1;
}

.copy-tooltip {
    display: none;
    position: absolute;
    bottom: -24px;
    right: 0;
    background-color: #171617;
    color: #e8eaed;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
}

.copy-tooltip.show {
    display: block;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar {
        width: 260px;
        transform: translateX(-100%);
        position: fixed;
        z-index: 100;
        height: 100%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
    
    #sidebar.active {
        transform: translateX(0);
    }
    
    #header-sidebar-toggle {
        display: flex;
    }
    
    #message-input {
        width: 55% !important; /* Reduced from 80% */
    }
    
    #send-button {
        margin-left: 8px; /* Slightly less margin on mobile */
    }
    
    .message {
        max-width: 85%;
    }
    
    /* Hide disclaimer on mobile */
    .disclaimer {
        display: none !important;
    }

    /* Remove this rule that's displaying the project name again */
    #app-header h1[data-original-project]:before {
        content: ""; /* Change from attr(data-original-project) to empty string */
    }

    /* Force the header to always show MyGPT in mobile */
    #app-header h1 {
        font-size: 20px !important;
        content: "MyGPT ✨"; /* This CSS content property doesn't work on h1 */
    }
}

@media (max-width: 480px) {
    #message-input {
        width: 52%; /* Reduced from 75% */
    }
    
    .message {
        max-width: 90%;
    }
    
    #input-box {
        padding: 12px;
    }
    
    /* Use full width for chat box */
    #chat-box {
        padding: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Add GPU Mini Charts in Header */
.header-gpu-charts {
    display: flex;
    gap: 15px;
    margin-left: auto; /* Push to right side */
    margin-right: 15px; /* Add space before avatar */
}

.mini-chart-container {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #171516;
    border-radius: 4px;
    padding: 2px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(72, 71, 71);
}

/* Add loading spinner styles for mini charts */
.mini-chart-container.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    margin-left: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--telekom-magenta);
    animation: chartSpin 1s linear infinite;
    z-index: 10;
}

/* Add error indicator for connection issues */
.mini-chart-container.connection-error:before {
    content: '!';
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Add styles for the server check button */
.gpu-server-check-btn {
    background-color: #3a3539;
    color: #e8eaed;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    display: block;
    width: 100%;
}

.gpu-server-check-btn:hover {
    background-color: #454046;
}

@keyframes chartSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mini-chart-label {
    position: absolute;
    top: -18px;
    left: 0;
    font-size: 10px;
    color: #9aa0a6;
    text-align: center;
    width: 100%;
}

/* Adjust responsive behavior for header GPU charts */
@media (max-width: 768px) {
    .header-gpu-charts {
        margin-left: auto; /* Keep pushing to right side */
        margin-right: 10px; /* Less space on mobile */
        gap: 8px;
    }
    
    .mini-chart-container {
        width: 45px; /* Slightly smaller on mobile */
        height: 22px;
    }
    
    /* Don't hide header charts on mobile */
    .header-gpu-charts {
        display: flex;
    }
    
    /* Make header labels smaller on mobile */
    .mini-chart-label {
        font-size: 8px;
        top: -15px;
    }
    
    /* Modify text in #app-header h1 to not include MyGPT prefix on mobile */
    #app-header h1[data-original-project]:before {
        content: attr(data-original-project);
    }
}

/* Watched URLs items */
.watched-url-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #e8eaed;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    transition: all 0.2s ease; /* Changed from only background-color to all */
    border-left: 3px solid var(--telekom-magenta);
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    background-color: transparent; /* Start with transparent background */
}

.watched-url-item:hover {
    background-color: rgba(255, 255, 255, 0.08); /* Match the action buttons hover background */
    border-left-color: var(--telekom-magenta); /* Keep the left border color */
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: none; /* Remove the lift effect to match action buttons */
    box-shadow: none; /* Remove shadow to match action buttons */
}

.watched-url-item:active {
    background-color: rgba(255, 255, 255, 0.12); /* Slightly darker when pressed */
}

.url-icon {
    margin-right: 8px;
    color: #9aa0a6; /* Match the default color of action buttons */
    font-size: 16px;
    transition: color 0.2s; /* Add transition for icon color */
}

.watched-url-item:hover .url-icon {
    color: var(--telekom-magenta); /* Change color on hover like action buttons */
}

.refresh-btn, .unwatch-btn {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.refresh-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--telekom-magenta);
}

.unwatch-btn {
    opacity: 0;
}

.watched-url-item:hover .unwatch-btn {
    opacity: 1;
}

.unwatch-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #f44336;
}

.refresh-animation {
    animation: spin 1s linear infinite;
}



.watches-section::-webkit-scrollbar {
    width: 6px;
}

.watches-section::-webkit-scrollbar-track {
    background: transparent;
}

.watches-section::-webkit-scrollbar-thumb {
    background-color: #1E1C1E;
    border-radius: 6px;
}

.no-watches {
    color: #9aa0a6;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* GPU Monitor Styles */
#gpu-monitor {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 260px;
    background-color: #171617;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 5;
}

.gpu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #1E1C1E;
}

.gpu-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #e8eaed;
}

.connection-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #9aa0a6;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.connected {
    background-color: #4caf50;
}

.disconnected {
    background-color: #f44336;
}

.chart-container {
    position: relative;
    height: 160px;
    padding: 10px;
}

.gpu-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}


/* Enhanced GPU card styling */
.gpu-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--telekom-magenta);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.gpu-temp {
    font-weight: bold;
    font-size: 14px;
    color: #146117; /* Match the green used for "Online" status */
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 12px;
}

.stat-label {
    color: #9aa0a6;
}

.stat-value {
    font-weight: 500;
}

/* Make adjustments for smaller screens */
@media (max-width: 1024px) {
#chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background-color: rgb(30, 28, 29);
    margin-right: 0;
}
    
    #gpu-monitor {
        display: none;
    }
}

.toggle-gpu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--telekom-magenta);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

@media (max-width: 1024px) {
    .toggle-gpu-btn {
        display: none;
    }
}

/* Define Telekom magenta colors if they're missing */
:root {
    --telekom-magenta: #e20074;
    --telekom-magenta-light: #f50082;
    --telekom-magenta-dark: #c4006a;
    --telekom-magenta-transparent: rgba(226, 0, 116, 0.12);
}



/* Fix system instructions content display */
#system-instructions-content {
    flex: 1;
    padding: 16px;
    outline: none;
    color: rgb(30, 28, 29);
    background-color: #fff;
    border: none;
    font-family: 'Google Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    overflow: auto;
    white-space: pre-wrap; /* This ensures newlines and spaces are preserved */
}

/* Make the toggle and cancel buttons in system instructions modal consistent with Telekom colors */
#system-instructions-toggle-btn:hover i,
.preview-toolbar-btn:hover i {
    color: var(--telekom-magenta);
}

.preview-toolbar-btn.primary {
    background-color: var(--telekom-magenta);
    color: #ffffff;
}

.preview-toolbar-btn.primary:hover {
    background-color: var(--telekom-magenta-light);
}

/* Fix any remaining blue colors in the UI */
button:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline-color: var(--telekom-magenta);
}

/* Enhanced GPU Monitor Styles */
#gpu-monitor {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 290px;
    max-height: 80vh;
    background-color: #171617;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: auto;
    z-index: 5;
}

.gpu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #1E1C1E;
}

.gpu-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #e8eaed;
}

.connection-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #9aa0a6;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.connected {
    background-color: #4caf50;
}

.disconnected {
    background-color: #f44336;
}

.chart-container {
    position: relative;
    height: 160px;
    padding: 10px;
}

.gpu-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.gpu-card {
    background-color: rgba(30, 28, 30, 0.5);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    font-size: 12px;
}

/* Enhanced GPU card styling */
.gpu-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--telekom-magenta);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}


.progress-container {
    margin: 12px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9aa0a6;
    margin-bottom: 4px;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 12px;
}

.stat-label {
    color: #9aa0a6;
}

.stat-value {
    font-weight: 500;
}

/* Process list styling */
.processes-container {
    margin-top: 10px;
    border-top: 1px solid rgba(95, 99, 104, 0.5);
    padding-top: 8px;
}

.processes-header {
    font-size: 12px;
    color: #9aa0a6;
    margin-bottom: 6px;
    font-weight: 500;
}

.process-item {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(95, 99, 104, 0.2);
}

.process-name {
    color: #e8eaed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.process-memory {
    color: #9aa0a6;
    font-weight: 500;
}

.no-processes {
    font-size: 11px;
    color: #9aa0a6;
    font-style: italic;
    text-align: center;
    padding: 6px 0;
}

/* Make adjustments for smaller screens */
@media (max-width: 1024px) {
    #chat-container {
        margin-right: 0;
    }
    
    #gpu-monitor {
        display: none;
    }
}

.toggle-gpu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--telekom-magenta);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

@media (max-width: 1024px) {
    .toggle-gpu-btn {
        display: none;
    }
}

/* Enhanced GPU connection status */
.connecting {
    background-color: #ffb700;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.reconnect-button, .help-button {
    background: none;
    border: none;
    color: #e20074;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    margin-left: 4px;
    border-radius: 3px;
}

.reconnect-button:hover, .help-button:hover {
    background-color: rgba(226, 0, 116, 0.1);
}

/* GPU Help Modal */
.gpu-help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

.gpu-help-content {
    background-color: #171617;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.gpu-help-content h3 {
    margin-top: 0;
    color: #e8eaed;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}

.gpu-help-content p {
    margin-bottom: 16px;
    color: #9aa0a6;
}

.gpu-help-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.gpu-help-content li {
    margin-bottom: 8px;
}

.gpu-help-content code {
    background-color: #171516;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
}

.modal-command {
    background-color: #171516;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-x: auto;
}

.modal-command code {
    background: none;
    padding: 0;
    white-space: nowrap;
}

.copy-command {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 4px;
}

.copy-command:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e8eaed;
}

.modal-close-btn {
    background-color: var(--telekom-magenta);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    float: right;
}

.modal-close-btn:hover {
    background-color: var(--telekom-magenta-light);
}

/* Add styles for instruction modal warning/error notes */
.instructions-note.warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-left: 3px solid #ffc107;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    color: #e8eaed;
}

.instructions-note.warning i,
.instructions-note.error i {
    margin-right: 8px;
}

.instructions-note.error {
    background-color: rgba(220, 53, 69, 0.2);
    border-left: 3px solid #dc3545;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    color: #e8eaed;
}

/* Improve file preview modal for editing */
#file-preview-modal .modal-content {
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #1E1C1E;
    margin-bottom: 16px;
}

.file-preview-title {
    font-size: 18px;
    font-weight: 500;
    color: #e8eaed;
}

.file-preview-content {
    flex: 1;
    padding: 16px;
    outline: none;
    color: rgb(30, 28, 29);
    background-color: #fff;
    border: none;
    font-family: 'Google Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    overflow: auto;
    white-space: pre-wrap; /* Ensures newlines and spaces are preserved */
    border-radius: 8px;
}

.file-preview-toolbar {
    display: flex;
    gap: 8px;
    padding: 12px;
    background-color: #171516;
    border-bottom: 1px solid #1E1C1E;
}

.file-preview-toolbar button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.file-preview-toolbar .save-btn {
    background-color: var(--telekom-magenta);
    color: #ffffff;
}

.file-preview-toolbar .save-btn:hover {
    background-color: var(--telekom-magenta-light);
}

.file-preview-toolbar .cancel-btn {
    background-color: #171516;
    color: #9aa0a6;
}

.file-preview-toolbar .cancel-btn:hover {
    background-color: #3c4043;
}

/* Save success and error messages */
.save-success,
.save-error {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
    animation: fadeInOut 3s forwards;
}

.save-success {
    background-color: rgba(76, 175, 80, 0.2);
    border-left: 3px solid #4caf50;
    color: #4caf50;
}

.save-error {
    background-color: rgba(244, 67, 54, 0.2);
    border-left: 3px solid #f44336;
    color: #f44336;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.loading-message {
    padding: 20px;
    text-align: center;
    color: #9aa0a6;
    font-style: italic;
}

.error-message {
    padding: 20px;
    text-align: center;
    color: #f44336;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 24px;
}

.retry-btn {
    background-color: #171516;
    color: #e8eaed;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 10px;
}

.retry-btn:hover {
    background-color: #3c4043;
}

/* Add styles for desktop sidebar hiding */
.app-container.sidebar-hidden #sidebar {
    margin-left: -280px; /* Hide sidebar by pushing it off-screen */
}

.app-container.sidebar-hidden #main-content {
    margin-left: 0;
}

/* Bot message actions bar at bottom - more minimal and Gemini-like */
.message-actions {
    display: flex;
    justify-content: flex-start; /* Changed from flex-end to align at start */
    align-items: center;
    margin-top: 10px;
    gap: 4px; /* Reduced gap between buttons */
    height: 28px; /* Reduced height for more minimal appearance */
    padding-left: 2px; /* Small padding at the start */
}



/* Update tooltip positioning for the new layout */
.copy-tooltip {
    position: absolute;
    bottom: -24px;
    left: 56px; /* Position under the buttons */
}

/* Only show actions on hover, but make them more visible by default */
.message-actions {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.bot-message:hover .message-actions {
    opacity: 1;
}

/* Mobile Optimization */
@media screen and (max-width: 768px) {
    /* Hide GPU Monitor on mobile */
    #gpu-monitor {
        display: none !important;
    }
    
    /* Hide GPU toggle button on mobile */
    .toggle-gpu-btn {
        display: none !important;
    }
    

    
    /* Hide username text and status text - only show avatar */
    .username-display {
        display: none !important;
    }
    
    /* Hide connection status text, keep only the indicator dot */
    .header-connection-status .status-text {
        display: none !important;
    }
    
    /* Make the status icon slightly larger for better visibility */
    .header-connection-status .status-icon {
        font-size: 12px !important;
    }
    

    
    /* Make the sidebar toggle button bigger on mobile */
    #header-sidebar-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 8px;
    }
    
    #header-sidebar-toggle i {
        font-size: 20px;
    }
    
    /* Fix input box at bottom with fixed height */
    #input-box {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgb(30, 28, 29);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 10px;
        box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
        z-index: 100;
        height: 60px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }
    
    /* Make input field take up more space */
    #message-input {
        width: 85% !important;
    }
    
    /* Adjust chat container to fill available space exactly */
    #chat-container {
        position: fixed;
        top: 60px; /* Match header height */
        bottom: 60px; /* Match input box height */
        left: 0;
        right: 0;
        height: calc(100vh - 120px) !important; /* Exactly subtract both heights */
        max-height: none !important;
        overflow-y: auto;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        width: 100%;
    }
    
    /* Use full width for chat box */
    #chat-box {
        padding: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Make messages use edge-to-edge space */
    .message {
        max-width: 95% !important;
        width: auto !important;
        box-sizing: border-box;
        margin-bottom: 8px !important;
    }
    
    /* Optimize user and bot messages for mobile */
    .user-message, .bot-message {
        padding: 8px 12px !important;
    }
    
    /* Increase font size in message bubbles for mobile */
    .message {
        font-size: 17px !important; /* Increase from 16px */
    }
    
    .message p {
        font-size: 17px !important; /* Increase from 16px */
    }
    
    /* Fix text alignment in user messages - right align */
    .user-message {
        text-align: right !important;
        display: inline-block !important;
        float: right !important;
        clear: both !important;
        min-width: auto !important;
        width: auto !important;
        max-width: 80% !important;
        margin-right: 5px !important; /* Add some margin from the right edge */
        margin-left: auto !important; /* Push to the right side */
    }
    
    /* Ensure bot messages take up appropriate width and stick to left */
    .bot-message {
        display: block !important;
        float: none !important;
        clear: both !important;
        width: 95% !important;
        margin-left: 5px !important;
        margin-right: auto !important;
    }
    
    /* Create a wrapper for the chat messages to handle floating elements */
    #chat-box::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Ensure app container uses full height and prevents page scrolling */
    .app-container {
        height: 100vh !important;
        overflow: hidden;
    }
    
    /* Ensure main content uses full width when sidebar is hidden */
    .app-container.sidebar-hidden #main-content {
        width: 100% !important;
    }
    
    /* Prevent body scrolling, only allow chat box to scroll */
    body, html {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
}

/* Improve iOS Safari support */
@supports (-webkit-touch-callout: none) {
    /* iOS specific adjustments */
    @media screen and (max-width: 768px) {
        /* Add iOS-specific padding for the bottom bar */
        #chat-container {
            bottom: 60px !important; /* Match input box height */
            height: auto !important; /* Let it calculate between top and bottom */
        }
        
        #input-box {
            padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
            height: auto !important;
            min-height: 60px;
        }
    }
}

/* Enhanced Project Dropdown Styling */
.project-selection-container {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
    width: 100%; /* Ensure full width */
    position: relative; /* For proper button positioning */
}


/* Project Management Modal */
#projects-modal .modal-content {
    width: 700px;
    max-width: 90%;
    max-height: 80vh;
    overflow: auto;
}

.projects-list {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.project-card {
    background-color: #171516;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
    border: 1px solid #1E1C1E;
    position: relative;
    overflow: hidden;
}

.project-card.active {
    border-color: var(--telekom-magenta);
    box-shadow: 0 0 0 1px var(--telekom-magenta);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #1E1C1E;
    padding-bottom: 10px;
}

.project-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #e8eaed;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card-title i {
    color: var(--telekom-magenta);
}

.active-badge {
    background-color: var(--telekom-magenta-transparent);
    color: var(--telekom-magenta);
    font-size: 11px;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 500;
}

.project-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-item {
    font-size: 13px;
    color: #9aa0a6;
}

.stat-value {
    font-size: 14px;
    color: #e8eaed;
    font-weight: 500;
    margin-top: 2px;
}

.project-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.project-btn {
    background-color: #3a3539;
    color: #9aa0a6;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-btn:hover {
    background-color: #454046;
    color: #e8eaed;
}

.project-btn.select-btn {
    background-color: #4a4347;
    color: #e8eaed;
}


.project-btn.delete-btn {
    color: #f44336;
}

.project-btn.delete-btn:hover {
    background-color: rgba(244, 67, 54, 0.2);
}

.project-btn.reset-memory-btn {
    color: #ffaa00;
}

.project-btn.reset-memory-btn:hover {
    background-color: rgba(255, 170, 0, 0.2);
    color: #ffcc60;
}

.project-btn.reset-memory-btn i {
    font-size: 12px;
}

.project-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Memory status indicator */
.memory-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #9aa0a6;
}

.memory-status .memory-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4caf50;
}

.memory-status .memory-indicator.empty {
    background-color: #9aa0a6;
}

/* Project card actions */
.project-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.project-btn {
    background-color: #3a3539;
    color: #9aa0a6;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-btn:hover {
    background-color: #454046;
    color: #e8eaed;
}

.project-btn.select-btn {
    background-color: #4a4347;
    color: #e8eaed;
}

.project-btn.select-btn:hover {
    background-color: #5a5257;
}

.project-btn.delete-btn {
    color: #f44336;
}

.project-btn.delete-btn:hover {
    background-color: rgba(244, 67, 54, 0.2);
}

.project-btn.reset-memory-btn {
    color: #ffaa00;
}

.project-btn.reset-memory-btn:hover {
    background-color: rgba(255, 170, 0, 0.2);
    color: #ffcc60;
}

.project-btn.reset-memory-btn i {
    font-size: 12px;
}

.project-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Memory status indicator */
.memory-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #9aa0a6;
}

.memory-status .memory-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4caf50;
}

.memory-status .memory-indicator.empty {
    background-color: #9aa0a6;
}

/* Enhanced Delete Confirmation Modal */
.delete-project-message {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #f44336;
    padding: 12px;
    margin: 16px 0;
    border-radius: 4px;
}

.delete-project-message i {
    margin-right: 8px;
}

/* Modal search input */
.projects-search {
    margin-bottom: 16px;
    position: relative;
}

.projects-search input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background-color: #171516;
    color: #e8eaed;
    border: 1px solid #1E1C1E;
    border-radius: 8px;
    font-size: 14px;
}

.projects-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
}

.projects-search input:focus {
    outline: none;
    border-color: var(--telekom-magenta);
    box-shadow: 0 0 0 2px rgba(226, 0, 116, 0.2);
}

/* Empty state */
.no-projects {
    text-align: center;
    padding: 30px;
    color: #9aa0a6;
    font-style: italic;
}

/* Project refresh time */
.refresh-time {
    font-size: 12px;
    color: #9aa0a6;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.refresh-time i {
    font-size: 12px;
    color: #808080;
}

/* Loading spinner for when projects are loading */
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--telekom-magenta);
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Project Management Styles */
.project-card {
    background-color: #282828;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-card.active {
    border-left: 3px solid #4285f4;
    background-color: #2d2d2d;
}

.project-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card-title i {
    color: #4285f4;
}

/* Project rename input styles */
.rename-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-grow: 1;
}

.rename-project-input {
    flex-grow: 1;
    background-color: #333;
    color: #fff;
    border: 1px solid #4285f4;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
}

.rename-btn {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rename-btn.save {
    background-color: #10a567;
}

.rename-btn.save:hover {
    background-color: #0d8a56;
}

.rename-btn.cancel {
    background-color: #d3394c;
}

.rename-btn.cancel:hover {
    background-color: #b92f3d;
}

.edit-name-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 2px;
    margin-left: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .edit-name-btn {
    opacity: 1;
}

.edit-name-btn:hover {
    color: #4285f4;
}



.powered-by {
    color: #9aa0a6;
    font-size: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #4c464c;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 5px;
    font-weight: 300; /* Add this line to reduce font weight */
}


/* Toast notification styles */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3000;
    animation: toastFadeIn 0.3s forwards;
    max-width: 80%;
}

.toast-notification i {
    font-size: 16px;
}

.toast-success {
    background-color: #2d3b33;
    border-left: 3px solid #4caf50;
    color: #4caf50;
}

.toast-error {
    background-color: #3b2d2d;
    border-left: 3px solid #f44336;
    color: #f44336;
}

.toast-info {
    background-color: #2d323b;
    border-left: 3px solid var(--telekom-magenta);
    color: var(--telekom-magenta);
}

.toast-fadeout {
    animation: toastFadeOut 0.5s forwards;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* Ensure project reset button is properly styled */
.project-btn.reset-memory-btn {
    color: #ffaa00;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-btn.reset-memory-btn:hover {
    background-color: rgba(255, 170, 0, 0.2);
    color: #ffcc60;
}

.project-btn.reset-memory-btn i {
    font-size: 12px;
}

/* Add this to your styles.css file */
.saving-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.saving-indicator.fade-out {
    opacity: 0;
}

.saving-indicator i {
    font-size: 16px;
}

.save-memory-btn i {
    margin-right: 5px;
}



/* Disclaimer message below input area */
.disclaimer {
  text-align: center;
  color: #9aa0a6;
  font-size: 12px;
  margin-top: 8px;
  padding: 0 24px;
  margin-bottom: 16px;
  /* I want transparent background */
    border-radius: 8px;
    
}

/* Mobile adjustments for system status */
@media (max-width: 768px) {
  .system-status-text {
    display: none;
  }
  
  .status-dot {
    margin-right: 0;
    width: 8px;
    height: 8px;
  }
  
  .system-status {
    margin-left: 5px;
  }
  
  /* Hide disclaimer on mobile */
  .disclaimer {
    display: none !important;
  }
}

/* Enhanced Project Dropdown Styling - Make selectors more specific */
.project-selection-container {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
    width: 100%; /* Ensure full width */
    position: relative; /* For proper button positioning */
}

/* Make selector more specific and add !important for critical properties */
#project-selector-btn {
    width: 100% !important;
    padding: 12px !important;
    background-color: #3a3538 !important; 
    color: #e8eaed !important;
    border: 1px solid #685f64 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#project-selector-btn .btn-content {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#project-selector-btn .project-icon {
    color: var(--telekom-magenta) !important;
}

#project-selector-btn .dropdown-icon {
    font-size: 12px !important;
    color: #9aa0a6 !important;
}

#project-selector-btn:hover {
    border-color: var(--telekom-magenta) !important;
    background-color: #403a3d !important;
}

/* Project selection grid styling */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.projects-grid .project-card {
    background-color: #171617;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    border: 1px solid #1E1C1E;
    transition: all 0.2s ease;
}

.projects-grid .project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--telekom-magenta);
}

.projects-grid .project-card.active {
    border-color: var(--telekom-magenta);
    background-color: rgba(226, 0, 116, 0.1);
}

/* Hide project-selection-container if it exists */
.project-selection-container {
    display: flex !important;
}

/* Hide project selector button if it exists */
#project-selector-btn {
    display: none; /* Keep this hidden since we're using the dropdown */
}

/* Safari-compatible file upload styling */
.drop-area {
    position: relative;
    cursor: pointer;
}

.drop-area .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.browse-text {
    display: block;
    margin: 15px 0;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.safari-helper {
    font-size: 0.8em;
    color: #666;
    margin-top: 8px;
    text-decoration: underline;
}

/* Make it visually obvious when hovering over the browse text */
.drop-area .browse-text:hover {
    color: #007bff;
}

/* Explicit browse button styling */
.browse-btn {
    background-color: #f0f0f0;
    color: #333;
    margin-left: 10px;
}

/* Only show the explicit browse button on Safari */
.browse-btn {
    display: none;
}

/* Safari detection using @supports */
@supports (-webkit-hyphens:none) and (not (-ms-ime-align:auto)) and (not (-moz-appearance:none)) {
    .browse-btn {
        display: inline-block;
    }
}

/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.dropdown-button {
    width: 100%;
    padding: 12px;
    background-color: rgb(30, 28, 29);
    color: #e8eaed;
    border: 1px solid #3a3638;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dropdown-button:hover {
    border-color: var(--telekom-magenta);
    background-color: rgb(30, 28, 29);
    
}

.dropdown-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow-y: auto;
    background-color: rgb(30, 28, 29);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.dropdown-menu.show {
    max-height: 280px;
    opacity: 1;
    visibility: visible;
    border: 1px solid #2b282a;
    border-top: none;
}

.dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #e8eaed;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    margin-right: 8px;
    color: white;
    opacity: 0.8;   
}

.dropdown-item:hover {
    background-color: #2c292a;  
}

/* Add new style for icon color change on hover */
.dropdown-item:hover i {
    color: var(--telekom-magenta); /* Change icon color to Telekom magenta on hover */
    opacity: 1; /* Make fully opaque on hover */
}

.dropdown-item.active i {
    color: var(--telekom-magenta);
}

.dropdown-item.active {
    background-color: var(--telekom-magenta-transparent);
    color: var(--telekom-magenta);
    font-weight: 500;
}

.dropdown-item.loading {
    opacity: 0.7;
    font-style: italic;
    cursor: default;
}

/* App Header Styling Improvements */
#app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: rgb(30, 28, 29);
    border-bottom: 10px solid rgb(30, 28, 29);
    height: 40px;
    position: relative;
    z-index: 10;
    font-size:12px;
}

/* Reposition the title area to include the toggle button */
.header-title-area {
    display: flex;
    align-items: center;
    gap: 12px; /* Add gap between toggle and title */
}

/* Sidebar toggle button in header - positioned on the left */
#header-sidebar-toggle {
    background-color: transparent;
    color: rgba(154, 160, 166, 0.5);
    border: none;
    padding: 8px;
    margin-right: 5px; /* Add space between toggle and title */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    order: -1; /* Ensures it appears before other elements */
}

#header-sidebar-toggle:hover {
    background-color: rgba(16, 16, 16, 0.08);
    color: #e8eaed;
}

/* Make sure toggle is visible on desktop */
@media (min-width: 769px) {
    #header-sidebar-toggle {
        display: flex !important;
    }
}

/* Rearranged header layout to place GPU charts before user info */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Remove margin-left: auto so it no longer pushes to the right edge */
}

/* Move header GPU charts to be right before the avatar */
.header-gpu-charts {
    display: flex;
    gap: 15px;
    margin-right: 15px; /* Keep space before the avatar */
}

/* Create a wrapper div for the right side content */
.header-right {
    display: flex;
    align-items: center;
    margin-left: auto; /* This pushes the entire right side group to the right */
}

/* Thinking indicator (spinner) to show before bot replies */
.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 6px 0;
    background-color: transparent;
    /* Removing the vertical line: */
    /* border-left: 3px solid var(--telekom-magenta); */
    opacity: 0.8;
}

.thinking-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(226, 0, 116, 0.2);
    border-top: 3px solid var(--telekom-magenta);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.thinking-text {
    font-style: italic;
    color: #9aa0a6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Make spinner work in dark theme */
@media (prefers-color-scheme: dark) {
    .thinking-indicator {
        border-color: var(--telekom-magenta);
    }
    
    .thinking-spinner {
        border-color: rgba(226, 0, 116, 0.2);
        border-top-color: var(--telekom-magenta);
    }
}

/* Editable content styles */
.editable-content {
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #171516;
    color: #e8eaed;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Preview toolbar styles */
.preview-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #1E1C1E;
    background-color: #171516;
}

.preview-toolbar-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    color: #e8eaed;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.preview-toolbar-btn.primary {
    background-color: var(--telekom-magenta);
    color: #ffffff;
}

.preview-toolbar-btn.primary:hover {
    background-color: var(--telekom-magenta-light);
}


/* Custom styles for the chat interface */

/* Import a lighter font - Inter is modern, clean and has nice light weights */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

/* Apply the lighter font system-wide */
body, button, input, textarea, select {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300; /* Use the light weight */
}



/* Add more breathing room to paragraphs within bot messages */
.bot-message p {
    margin-bottom: 1.2em;  /* More space between paragraphs */
    font-size: 17px !important; /* Ensure paragraphs also have reduced font size */
}

/* Style for code blocks in AI responses */
.bot-message pre {
    background-color: #1c1a1c !important; /* Dark purple-blue background color */
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #191819;
    padding: 12px !important; /* Add more padding inside code blocks */
    position: relative; /* Ensure the widget is positioned relative to the code block */
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}



.bot-message pre .copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: transparent;
    color: #e8eaed;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 17px;
    cursor: pointer;
    opacity: 1; /* Always visible */
    transition: background-color 0.2s, transform 0.2s;
}

.bot-message pre .copy-code-btn:hover {
    background-color: #454046;
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.bot-message pre .copy-code-btn.copied {
    background-color: var(--telekom-magenta);
    color: #ffffff;
    transform: scale(1.1); /* Slightly enlarge when copied */
    animation: copiedAnimation 0.3s ease-in-out;
}

@keyframes copiedAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Style for code blocks with syntax highlighting - Match normal text size */
.bot-message pre code {
    background-color: transparent !important; /* Keep the code background transparent */
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5; /* Increase line spacing in code blocks */
    font-size: 14px !important; /* Reduce from 17px to match normal bot text */
    letter-spacing: normal;
}

/* Style for bullet points in bot messages */
.bot-message ul {
    padding-left: 20px;
    margin: 8px 0;
    font-size: 17px; /* Match font size with normal typing */
}

.bot-message ul li {
    color: #e8eaed; /* Neutral color instead of Telekom magenta */
    margin-bottom: 4px;
}

.bot-message ul li::marker {
    color: #9aa0a6; /* Lighter gray color for the bullet points */
}

/* Style for typing indicator in bot messages */
.typing-indicator .typing-dot {
    background-color: #9aa0a6; /* Neutral gray color instead of Telekom magenta */
}

/* Style links with telecom color */
.bot-message a {
    color: #e20074; /* Use telecom color for links */
    text-decoration: underline;
    font-weight: 200;
    font-size: 17px; /* Ensure links match the bot message font size */
}

/* Decrease emphasis on other bold elements */
.bot-message th,
.bot-message label,
.bot-message .highlight {
    font-weight: 500 !important;
    color: #e0e0e0; /* Neutral light color instead of telecom color */
}

/* Reduce font weight of bold text in bot messages */
.bot-message strong,
.bot-message b,
.bot-message h1,
.bot-message h2,
.bot-message h3,
.bot-message h4,
.bot-message h5,
.bot-message h6 {
    font-weight: 300 !important; /* Reduced from 700 (default bold) to 500 (medium) */
    color: #e0e0e0;
}

/* PDF Preview Styles */
.pdf-preview {
    width: 100%;
    height: 80vh;
    border: none;
    background-color: #f7f7f7;
    border-radius: 4px;
}

/* Make the file preview modal larger for PDFs */
#file-preview-modal .modal-content {
    max-width: 90%;
    width: 1000px;
    max-height: 90vh;
}

/* File preview toolbar positioning */
.preview-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    border-bottom: 1px solid #191819;
    background-color: #1e1e2e;
    border-radius: 4px 4px 0 0;
}

.preview-toolbar-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    color: #9aa0a6;
    cursor: pointer;
    margin-left: 8px;
    font-size: 14px;
}

.preview-toolbar-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e8eaed;
}

.preview-toolbar-btn i {
    font-size: 14px;
    color: #9aa0a6;
}



.preview-toolbar-btn:hover i {
    color: #8ab4f8;
}

.preview-toolbar-btn.primary {
    background-color: var(--telekom-magenta);
    color: #ffffff;
}

.preview-toolbar-btn.primary:hover {
    background-color: var(--telekom-magenta-light);
}

/* File preview content container */
.file-preview-content {
    flex: 1;
    overflow: auto;
    background-color: #e8eaed;
    padding: 16px;
    border-radius: 0 0 8px 8px; /* Only round bottom corners */
    font-family: 'Roboto Mono', monospace;
    white-space: pre-wrap;
    max-height: 60vh;
    font-size: 14px;
    color: #171516;
}




/* File preview image styles */
.preview-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}



/* Apply the lighter font to vertical mini-chart labels */
.mini-chart-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

/* Mobile header styling fixes */
@media (max-width: 767px) {
    /* Make sure project name doesn't overflow header */
    #app-header h1 {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    
    /* Hide the emoji in header on very small screens to save space */
    @media (max-width: 360px) {
        #app-header h1 .emoji {
            display: none;
        }
    }
}

/* Fix sidebar scrolling issues - ensure files section is scrollable */
.sidebar-section {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

/* Make files section properly scrollable */
.files-section {
    max-height: 170px; /* Changed from 30vh to show 3-4 elements */
    overflow-y: auto;
    border-radius: 8px;
    margin-top: 8px;
    padding-right: 5px; /* Add padding for scrollbar */
    flex: 1; /* Allow it to grow but respect max-height */
    scrollbar-width: thin;
    scrollbar-color: #1E1C1E transparent;
}

.files-section::-webkit-scrollbar {
    width: 6px;
}

.files-section::-webkit-scrollbar-track {
    background: transparent;
}

.files-section::-webkit-scrollbar-thumb {
    background-color: #1E1C1E;
    border-radius: 6px;
}


.file-list-header {
    position: sticky;
    top: 0;
    background-color: #252224;
    color: #9aa0a6;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    padding-top: 2px;
    border-bottom: 1px solid #1E1C1E;
    z-index: 1;
}

/* Watches section should have the same scrolling behavior */
.watches-section {
    max-height: 240px; /* Changed from 30vh to show 3-4 elements */
    overflow-y: auto;
    border-radius: 8px;
    margin-top: 8px;
    padding-right: 5px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #1E1C1E transparent;
}


.watches-section::-webkit-scrollbar {
    width: 6px;
}

.watches-section::-webkit-scrollbar-track {
    background: transparent;
}

.watches-section::-webkit-scrollbar-thumb {
    background-color: #1E1C1E;
    border-radius: 6px;
}


/* Code block language header */
.code-language-header {
    background-color: transparent; /* Keep it transparent to match the code block */
    color: #e1e4e8;
    padding: 4px 12px;
    font-size: 17px;
    font-weight: 600;
    border-bottom: 1px solid #30363d;
    border-radius: 8px 8px 0 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
}

/* Style the like, dislike buttons in message actions */
.action-btn {
    background-color: transparent;
    color: #9aa0a6;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.15s ease;
    font-size: 14px;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #e8eaed;
    opacity: 1;
}

.action-btn.like-btn.active {
    color: #4caf50; /* Green for like */
    transform: scale(1.1);
    opacity: 1;
    background-color: rgba(76, 175, 80, 0.1);
}

.action-btn.dislike-btn.active {
    color: #f44336; /* Red for dislike */
    transform: scale(1.1);
    opacity: 1;
    background-color: rgba(244, 67, 54, 0.1);
}

.action-btn.copy-btn.active {
    color: var(--telekom-magenta);
    opacity: 1;
    background-color: var(--telekom-magenta-transparent);
}

.message-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    gap: 4px;
    height: 28px;
    padding-left: 2px;
}

/* Help System Styles */
.info-widget {
    background-color: rgba(55, 55, 56, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #e8eaed;
    position: absolute;
    padding: 12px 16px;
    font-size: 14px;
    z-index: 1000;
    max-width: 300px;
    transition: opacity 0.3s, transform 0.3s;
    border-left: 3px solid var(--telekom-magenta);
}

.info-widget::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(55, 55, 56, 0.95);
    transform: rotate(45deg);
}

.info-widget.top::before {
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
}

.info-widget.bottom::before {
    top: -5px;
    left: 50%;
    margin-left: -5px;
}

.info-widget.left::before {
    right: -5px;
    top: 50%;
    margin-top: -5px;
}

.info-widget.right::before {
    left: -5px;
    top: 50%;
    margin-top: -5px;
}

.info-widget-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #fff;
    display: flex;
    align-items: center;
}

.info-widget-title i {
    margin-right: 8px;
    color: var(--telekom-magenta);
}

.info-widget-content {
    line-height: 1.4;
}

.info-widget .dismiss-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
}

.info-widget .dismiss-btn:hover {
    color: #fff;
}

/* Feature Introduction Styles */
.feature-intro {
    background-color: rgba(30, 30, 33, 0.97);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    padding: 16px;
    margin: 10px 0;
    border-left: 4px solid var(--telekom-magenta);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.feature-intro-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.feature-intro-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--telekom-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    color: white;
}

.feature-intro-title {
    font-weight: bold;
    font-size: 16px;
    color: white;
}

.feature-intro-content {
    color: #e8eaed;
    line-height: 1.5;
    margin-bottom: 12px;
}

.feature-intro-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.feature-intro-btn {
    background-color: rgba(226, 0, 116, 0.2);
    color: var(--telekom-magenta);
    border: 1px solid var(--telekom-magenta);
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.feature-intro-btn:hover {
    background-color: rgba(226, 0, 116, 0.4);
}

.feature-intro-btn.primary {
    background-color: var(--telekom-magenta);
    color: white;
}

.feature-intro-btn.primary:hover {
    background-color: #c10065;
}

/* Quick Help Panel */
.help-panel {
    position: fixed;
    right: -350px;
    top: 70px;
    width: 320px;
    height: calc(100vh - 100px);
    background-color: #1a1a1c;
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.help-panel.active {
    right: 0;
}

.help-panel-header {
    padding: 16px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-panel-title {
    font-weight: bold;
    font-size: 16px;
}

.help-panel-close {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    font-size: 16px;
}

.help-panel-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.help-section {
    margin-bottom: 24px;
}

.help-section-title {
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: var(--telekom-magenta);
}

.help-section-title i {
    margin-right: 8px;
}

.help-item {
    padding: 8px 0 8px 24px;
    position: relative;
}

.help-item i.fa-circle-info {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 12px;
    color: #9aa0a6;
}

/* Help Button - Strengthened positioning and adjusted size */
.help-toggle-btn {
    position: fixed !important;
    right: 20px !important;
    bottom: 50px !important; /* Moved higher to align with send button */
    left: auto !important;
    top: auto !important;
    width: 36px !important; /* Reduced from 48px */
    height: 36px !important; /* Reduced from 48px */
    border-radius: 50%;
    background-color: var(--telekom-magenta);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px !important; /* Reduced from 20px */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    border: none;
    transition: transform 0.2s;
    margin: 0 !important;
    transform: none !important;
}

.help-toggle-btn:hover {
    transform: scale(1.05) !important;
}

/* Hide help button completely on mobile */
@media (max-width: 768px) {
    .help-toggle-btn {
        display: none !important;
    }
}

/* Help Tour Section Styling - updated for top placement */
.help-tour-section {
    padding: 12px 0;
    text-align: center;
    border: 0px solid #333;
    margin-bottom: 10px;
}

#start-tour-btn {
    padding: 10px 16px;
    width: 80%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}



.help-toggle-btn:hover {
    transform: scale(1.05);
}

/* Context help buttons */
.context-help-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(226, 0, 116, 0.2);
    color: var(--telekom-magenta);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 6px;
    cursor: pointer;
    border: 1px solid var(--telekom-magenta);
}

.context-help-btn:hover {
    background-color: rgba(226, 0, 116, 0.4);
}

/* Chat tip styles */
.chat-tip {
    position: relative;
    background-color: rgba(30, 30, 33, 0.97);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px auto;
    border-left: 3px solid #ffb400;
    color: #e8eaed;
    font-size: 14px;
    max-width: 85%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-tip-icon {
    color: #ffb400;
    margin-right: 8px;
}

.chat-tip-content {
    display: flex;
    align-items: flex-start;
}

.chat-tip-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    font-size: 14px;
}

.chat-tip-dismiss:hover {
    color: #fff;
}



#start-tour-btn i {
    font-size: 16px;
}

/* Arrow element for info widget positioning */
.info-widget-arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(55, 55, 56, 0.95);
    transform: rotate(45deg);
}

.info-widget.top .info-widget-arrow {
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
}

.info-widget.bottom .info-widget-arrow {
    top: -5px;
    left: 50%;
    margin-left: -5px;
}

.info-widget.left .info-widget-arrow {
    right: -5px;
    top: 50%;
    margin-top: -5px;
}

.info-widget.right .info-widget-arrow {
    left: -5px;
    top: 50%;
    margin-top: -5px;
}

/* Make the Next button more prominent */
.tour-next-btn {
    padding: 8px 16px !important;
    background-color: var(--telekom-magenta) !important;
    color: white !important;
    border: none !important;
    font-weight: 500 !important;
}

.tour-next-btn:hover {
    background-color: var(--telekom-magenta-light) !important;
}

/* Ensure tour widgets are visible on mobile */
@media (max-width: 768px) {
    .info-widget {
        max-width: 250px; /* Reduce width on mobile */
    }
    
    .info-widget.left, .info-widget.right {
        max-width: 200px; /* Even narrower for left/right positioning */
    }
    
    /* Force certain positions on small screens to prevent offscreen issues */
    .info-widget.left, .info-widget.right {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        top: auto !important;
        bottom: 70px !important; /* Position above input area */
    }
    
    .info-widget.left .info-widget-arrow, 
    .info-widget.right .info-widget-arrow {
        /* Reset the original arrows */
        display: none;
    }
    
    /* Add a new arrow at the bottom */
    .info-widget.left::after, 
    .info-widget.right::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        margin-left: -5px;
        width: 10px;
        height: 10px;
        background-color: rgba(55, 55, 56, 0.95);
        transform: rotate(45deg);
    }
}

/* Apply Monospace, Monaco font globally for bot messages */
.bot-message {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 14px; /* Adjust font size as needed */
}

.bot-message pre,
.bot-message code {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 14px; /* Ensure consistent font size for code blocks */
}

/* Ensure comments inside code blocks also use the same font */
.bot-message pre code::before,
.bot-message pre code::after {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 14px;
}

/* Optional: Adjust line height for better readability */
.bot-message {
    line-height: 1.5;
}

