* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 0;
    transform: translateX(-100%);
    border-right: none;
}

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

.new-chat-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    flex: 1;
    margin-right: 12px;
    transition: transform 0.2s;
}

.new-chat-btn:hover {
    transform: translateY(-1px);
}

.sidebar-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #6b7280;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* API Key Panel Styles */
.api-key-panel {
    margin: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.panel-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-status-indicator {
    display: flex;
    align-items: center;
}

.api-status-indicator i {
    font-size: 8px;
    color: #ef4444;
    transition: color 0.3s;
}

.api-status-indicator.connected i {
    color: #10b981;
}

.panel-content {
    padding: 16px;
}

.api-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.api-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.api-input-group input:focus {
    outline: none;
    border-color: #4f46e5;
}

.toggle-btn, .save-btn {
    background: #6b7280;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.save-btn {
    background: #10b981;
}

.toggle-btn:hover {
    background: #4b5563;
}

.save-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.api-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.clear-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.clear-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.clear-btn:disabled:hover {
    background: #9ca3af;
    transform: none;
}

.get-key-link {
    color: #4f46e5;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.2s;
}

.get-key-link:hover {
    color: #7c3aed;
}

.api-info-mini {
    text-align: center;
}

.api-status-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.api-status-text.connected {
    color: #10b981;
}

.api-status-text.error {
    color: #ef4444;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.history-section h4 {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.history-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.history-item.active {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.history-item-title {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-time {
    font-size: 12px;
    color: #9ca3af;
}

.no-history {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 20px;
    font-style: italic;
}

.history-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-section-header h4 {
    margin: 0;
}

.edit-chats-btn {
    background: none;
    border: none;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.edit-chats-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.history-item .selection-checkbox {
    display: none;
    margin-right: 12px;
}

.history-list.selection-mode .history-item .selection-checkbox {
    display: block;
}

.history-list.selection-mode .history-item {
    display: flex;
    align-items: center;
}

.history-list.selection-mode .history-item .history-item-content {
    flex: 1;
    overflow: hidden;
}

.history-item.selected {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.history-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.delete-selected-btn,
.cancel-selection-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 14px;
}

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

.delete-selected-btn:hover {
    background: #dc2626;
}

.delete-selected-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.cancel-selection-btn {
    background: #6b7280;
    color: white;
}

.cancel-selection-btn:hover {
    background: #4b5563;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-settings {
    width: 100%;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #6b7280;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.sidebar-settings:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
}

.container {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.header-content h1 i {
    margin-right: 10px;
}

.header-content p {
    font-size: 14px;
    opacity: 0.9;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-btn,
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.home-btn:hover,
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.floating-sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    user-select: none;
}

.floating-sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #5b52f0 0%, #8b46f5 100%);
}

.floating-sidebar-toggle:active {
    transform: scale(0.95);
}

.floating-sidebar-toggle.dragging {
    transition: none;
    cursor: grabbing;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.settings-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.settings-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.status-indicator {
    font-size: 8px;
    color: #10b981;
}

.status-indicator.error {
    color: #ef4444;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.message-content {
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.message-text {
    line-height: 1.6;
    word-wrap: break-word;
}

.message-text p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text strong {
    font-weight: 600;
    color: inherit;
}

.message-text em {
    font-style: italic;
    color: inherit;
}

.message-text h1, 
.message-text h2, 
.message-text h3 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.message-text h1 {
    font-size: 1.25em;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 4px;
}

.message-text h2 {
    font-size: 1.15em;
}

.message-text h3 {
    font-size: 1.1em;
}

.user-message .message-text h1 {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.code-block {
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.code-block pre {
    background: #f8f9fa;
    padding: 16px;
    margin: 0;
    overflow-x: auto;
    font-family: 'Courier New', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.code-block code {
    background: none;
    padding: 0;
    font-family: inherit;
    color: #333;
}

.user-message .code-block pre {
    background: rgba(255, 255, 255, 0.1);
}

.user-message .code-block code {
    color: rgba(255, 255, 255, 0.9);
}

.inline-code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    color: #e11d48;
    font-weight: 500;
}

.user-message .inline-code {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.message-list {
    margin: 12px 0;
    padding-left: 20px;
}

.message-list li {
    margin: 6px 0;
    line-height: 1.5;
}

.message-list ul, .message-list ol {
    margin: 8px 0;
    padding-left: 20px;
}

/* Nested lists */
.message-list .message-list {
    margin: 4px 0;
}

.message-time {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
    display: block;
}

.copy-button {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    margin: 8px 0 0 auto;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 12px;
    width: fit-content;
    opacity: 0.7;
}

.copy-button:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #374151;
    opacity: 1;
}

.copy-button.copied {
    background: #10b981;
    color: white;
    opacity: 1;
}

.copy-button::after {
    content: "Copy";
    font-size: 11px;
    margin-left: 2px;
}

.typing-indicator {
    display: flex;
    gap: 12px;
    max-width: 85%;
    padding: 0 20px;
}

.typing-dots {
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    animation: typing 1.5s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.input-container {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 4px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: #4f46e5;
}

#messageInput {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
    background: transparent;
    resize: none;
    min-height: 20px;
    max-height: 200px;
    line-height: 1.5;
    font-family: inherit;
    overflow-y: auto;
}

.send-button {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.send-button:hover {
    transform: scale(1.05);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.input-footer-left,
.input-footer-right {
    display: flex;
    align-items: center;
}

.input-footer small {
    color: #6b7280;
    font-size: 12px;
}

#charCounter {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

#charCounter.warning {
    color: #f59e0b;
}

#charCounter.danger {
    color: #ef4444;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    animation: slide-up 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

/* Landscape layout for instruction modals */
#englishInstructionsModal .modal-content,
#vietnameseInstructionsModal .modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 85vh;
}

#englishInstructionsModal .modal-body,
#vietnameseInstructionsModal .modal-body {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 32px;
    overflow-y: auto;
    max-height: calc(85vh - 120px); /* Account for header and footer */
}

#englishInstructionsModal .settings-item,
#vietnameseInstructionsModal .settings-item {
    flex: 1;
    min-width: 0; /* Allow items to shrink */
    overflow-y: auto;
    max-height: 100%;
}

.modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 24px 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

.modal-body p {
    margin-bottom: 16px;
    color: #4b5563;
    line-height: 1.6;
}

.settings-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.settings-item > label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: auto;
}

.settings-item .status-text {
    margin-top: 4px;
    margin-bottom: 12px;
}

.setting-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.button.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.button.danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.input-group {
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #4f46e5;
}

.toggle-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}

.api-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: #0369a1;
}

.api-info a {
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
}

.api-info a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.close-button {
    background: none;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-left: auto;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.settings-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-status, .model-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.status-item, .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-item:last-child, .info-item:last-child {
    margin-bottom: 0;
}

.status-label, .info-label {
    font-weight: 500;
    color: #6b7280;
}

.status-value, .info-value {
    font-weight: 600;
    color: #374151;
}

.settings-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shortcuts-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.shortcut-item:last-child {
    margin-bottom: 0;
}

.shortcut-key {
    background: #374151;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
}

.shortcut-desc {
    color: #6b7280;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    
    .container {
        width: 100%;
        height: 100vh;
        flex: 1;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .header-content h1 {
        font-size: 18px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .header-content p {
        font-size: 12px;
        margin: 2px 0 0 0;
        opacity: 0.8;
    }
    
    .header-title-section {
        flex: 1;
        min-width: 0;
    }
    
    .header-controls {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .mobile-sidebar-toggle {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        border-radius: 8px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .home-btn,
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .instructions-btn {
        padding: 4px 6px;
        font-size: 11px;
        margin-right: 0;
        white-space: nowrap;
    }
    
    .settings-button {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .api-status {
        display: none;
    }
    
    .chat-container {
        height: calc(100vh - 180px);
        padding: 0;
    }
    
    .chat-messages {
        padding: 12px;
        height: 100%;
    }
    
    .message {
        max-width: 95%;
        margin-bottom: 16px;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .message-content {
        padding: 12px;
        font-size: 14px;
    }
    
    .input-container {
        padding: 12px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: inherit;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #messageInput {
        font-size: 16px;
        max-height: 100px;
    }
    
    .send-button {
        width: 40px;
        height: 40px;
    }

    .input-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .input-footer-left,
    .input-footer-right {
        justify-content: center;
    }

    .settings-actions {
        flex-direction: column;
    }
    
    .sidebar-header {
        padding: 16px;
    }
    
    .chat-history {
        padding: 16px;
    }
    
    .sidebar-footer {
        padding: 16px;
    }
    
    .api-key-panel {
        margin: 16px;
    }
    
    .panel-content {
        padding: 12px;
    }
    
    .api-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .api-input-group input {
        margin-bottom: 0;
    }
    
    .toggle-btn, .save-btn {
        width: 100%;
        height: 40px;
    }
    
    .api-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .clear-btn {
        width: 100%;
        justify-content: center;
    }

    .copy-button {
        opacity: 1;
        background: rgba(0, 0, 0, 0.15);
        margin: 8px 0 0 0;
        align-self: flex-start;
    }

    /* Stack instruction modal content vertically on mobile */
    #englishInstructionsModal .modal-body,
    #vietnameseInstructionsModal .modal-body {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
        max-height: calc(90vh - 120px); /* Account for header and footer on mobile */
    }

    #englishInstructionsModal .modal-content,
    #vietnameseInstructionsModal .modal-content {
        width: 95%;
        max-width: 95vw;
        max-height: 90vh;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }
    
    .modal-content {
        width: 95%;
        max-width: 95vw;
        max-height: 90vh;
        margin: 10px auto;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px 20px;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .modal-footer {
        padding: 12px 20px;
        border-radius: 0 0 12px 12px;
    }
    
    .settings-item {
        margin-bottom: 0;
        padding: 16px;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.02);
        border: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
        box-sizing: border-box;
    }
    
    .settings-item > label {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
        display: block;
    }
    
    .api-key-status {
        margin: 12px 0;
    }
    
    .api-key-status p {
        font-size: 14px;
        line-height: 1.4;
        margin: 8px 0;
    }
    
    .setting-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    
    .button {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
        width: 100%;
        min-height: 44px;
    }
    
    .model-select {
        font-size: 16px;
        padding: 12px 16px;
        border-radius: 8px;
        min-height: 44px;
    }
    
    .model-note {
        margin-top: 12px;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 1.4;
    }
    
    .close-button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .input-group input {
        font-size: 16px;
        padding: 12px 16px;
        border-radius: 8px;
        min-height: 44px;
    }
    
    .status-text {
        font-size: 13px;
    }
    
    /* Template section optimization */
    .settings-item input[type="file"] {
        display: none;
    }
    
    /* Better touch interactions */
    .button,
    .model-select,
    .close-button {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .button:active,
    .close-button:active {
        transform: scale(0.98);
    }
    
    /* Improved scrolling for modal body */
    .modal-body {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .modal-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .modal-body::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 2px;
    }
    
    /* Responsive text sizing */
    .api-key-status p,
    .status-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Better spacing for action buttons */
    .setting-actions .button {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Dark mode mobile header adjustments */
    body.dark-theme .mobile-sidebar-toggle {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }
    
    body.dark-theme .mobile-sidebar-toggle:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Dark mode mobile settings optimizations */
    body.dark-theme .modal-content {
        background: rgba(20, 20, 20, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    body.dark-theme .modal-header {
        background: rgba(30, 30, 30, 0.9) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    body.dark-theme .modal-body {
        background: rgba(20, 20, 20, 0.95) !important;
    }
    
    body.dark-theme .settings-item {
        background: rgba(40, 40, 40, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    body.dark-theme .settings-item > label {
        color: #f9fafb !important;
    }
    
    body.dark-theme .button {
        background: rgba(79, 70, 229, 0.8) !important;
        color: #f9fafb !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    body.dark-theme .button:hover {
        background: rgba(79, 70, 229, 1) !important;
    }
    
    body.dark-theme .button.danger {
        background: rgba(239, 68, 68, 0.8) !important;
    }
    
    body.dark-theme .button.danger:hover {
        background: rgba(239, 68, 68, 1) !important;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Instructions */
.instructions-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    margin-right: 10px;
}

.instructions-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.instructions-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.instructions-list li:last-child {
    border-bottom: none;
}

.instructions-content {
    margin-top: 10px;
}

.instructions-content p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.instructions-content h4 {
    margin-top: 15px;
    margin-bottom: 8px;
    color: #4f46e5;
    font-size: 14px;
}

.instructions-content ul {
    margin-bottom: 10px;
    padding-left: 20px;
}

.instructions-content ul li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.instructions-steps {
    counter-reset: step-counter;
    padding-left: 0;
    list-style: none;
}

.instructions-steps li {
    counter-increment: step-counter;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.5;
}

.instructions-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4f46e5;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.copyright-info {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.copyright-info p {
    margin: 2px 0;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    line-height: 1.3;
}

/* Dark Theme Styles */
body.dark-theme {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-theme .sidebar {
    background: rgba(30, 30, 30, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .container {
    background: rgba(20, 20, 20, 0.8);
}

body.dark-theme .header {
    background: rgba(30, 30, 30, 0.9);
}

body.dark-theme .header-content h1,
body.dark-theme .header-content p {
    color: #e5e7eb;
}

body.dark-theme .chat-container {
    background: rgba(25, 25, 25, 0.5);
}

body.dark-theme .message {
    background: transparent;
}

body.dark-theme .user-message {
    background: transparent;
}

body.dark-theme .bot-message {
    background: transparent;
}

body.dark-theme .message-text {
    color: #e5e7eb !important;
}

body.dark-theme .message-text p {
    color: #e5e7eb !important;
}

body.dark-theme .message-text h1,
body.dark-theme .message-text h2,
body.dark-theme .message-text h3,
body.dark-theme .message-text h4,
body.dark-theme .message-text h5,
body.dark-theme .message-text h6 {
    color: #f9fafb !important;
}

body.dark-theme .message-text strong {
    color: #f9fafb !important;
}

body.dark-theme .message-text em {
    color: #d1d5db !important;
}

body.dark-theme .message-text code,
body.dark-theme .inline-code {
    background: rgba(55, 65, 81, 0.8) !important;
    color: #f9fafb !important;
}

body.dark-theme .code-block {
    background: rgba(31, 41, 55, 0.9) !important;
}

body.dark-theme .code-block pre {
    background: rgba(31, 41, 55, 0.9) !important;
}

body.dark-theme .code-block code {
    color: #f9fafb !important;
}

body.dark-theme .input-container {
    background: rgba(30, 30, 30, 0.9);
}

body.dark-theme #messageInput {
    background: rgba(40, 40, 40, 0.8);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .send-button {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

body.dark-theme .modal-content {
    background: rgba(30, 30, 30, 0.95) !important;
    color: #e5e7eb !important;
}

body.dark-theme .modal-header {
    background: rgba(40, 40, 40, 0.8) !important;
    color: #e5e7eb !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .modal-header h3 {
    color: #e5e7eb !important;
}

body.dark-theme .modal-body {
    background: rgba(30, 30, 30, 0.95) !important;
    color: #e5e7eb !important;
}

body.dark-theme .settings-item {
    background: rgba(40, 40, 40, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .settings-item label {
    color: #f9fafb !important;
}

body.dark-theme .settings-item p {
    color: #d1d5db !important;
}

body.dark-theme .api-key-status p,
body.dark-theme .status-text {
    color: #d1d5db !important;
}

body.dark-theme .instructions-content {
    color: #e5e7eb !important;
}

body.dark-theme .instructions-content p {
    color: #e5e7eb !important;
}

body.dark-theme .instructions-content h4 {
    color: #f9fafb !important;
}

body.dark-theme .instructions-content ul li {
    color: #e5e7eb !important;
}

body.dark-theme .instructions-steps li {
    color: #e5e7eb !important;
}

body.dark-theme .button {
    background: rgba(79, 70, 229, 0.8) !important;
    color: #f9fafb !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .button:hover {
    background: rgba(79, 70, 229, 1) !important;
}

body.dark-theme .button.danger {
    background: rgba(239, 68, 68, 0.8) !important;
    color: #f9fafb !important;
}

body.dark-theme .button.danger:hover {
    background: rgba(239, 68, 68, 1) !important;
}

body.dark-theme .close-button {
    background: rgba(107, 114, 128, 0.8) !important;
    color: #f9fafb !important;
}

body.dark-theme .close-button:hover {
    background: rgba(107, 114, 128, 1) !important;
}

body.dark-theme .copyright-info {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .copyright-info p {
    color: #9ca3af;
}

body.dark-theme .sidebar-header {
    background: rgba(40, 40, 40, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .new-chat-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #f9fafb !important;
}

body.dark-theme .sidebar-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #d1d5db !important;
}

body.dark-theme .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .sidebar-settings {
    background: rgba(55, 65, 81, 0.8) !important;
    color: #e5e7eb !important;
}

body.dark-theme .sidebar-settings:hover {
    background: rgba(55, 65, 81, 1) !important;
}

body.dark-theme .history-section h4 {
    color: #f9fafb !important;
}

body.dark-theme .history-item {
    background: rgba(55, 65, 81, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .history-item:hover {
    background: rgba(55, 65, 81, 0.8) !important;
}

body.dark-theme .history-item.active {
    background: rgba(79, 70, 229, 0.3) !important;
    border-color: rgba(79, 70, 229, 0.5) !important;
}

body.dark-theme .history-item-title {
    color: #e5e7eb !important;
}

body.dark-theme .history-item-time {
    color: #9ca3af !important;
}

body.dark-theme .no-history {
    color: #9ca3af !important;
}

body.dark-theme .instructions-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .instructions-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .api-status {
    color: #e5e7eb !important;
}

body.dark-theme .settings-button {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .settings-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .input-footer small {
    color: #9ca3af !important;
}

body.dark-theme #charCounter {
    color: #9ca3af !important;
}

body.dark-theme .copy-button {
    background: rgba(55, 65, 81, 0.8) !important;
    color: #e5e7eb !important;
}

body.dark-theme .copy-button:hover {
    background: rgba(55, 65, 81, 1) !important;
}

body.dark-theme .typing-indicator .message-avatar {
    background: rgba(40, 40, 40, 0.8) !important;
    color: #e5e7eb !important;
}

/* Fix chatbot icon in dark mode */
body.dark-theme .message-avatar {
    background: rgba(40, 40, 40, 0.8) !important;
    color: #e5e7eb !important;
}

body.dark-theme .message-avatar i {
    color: #e5e7eb !important;
}

body.dark-theme .bot-message .message-avatar {
    background: rgba(79, 70, 229, 0.8) !important;
    color: #f9fafb !important;
}

body.dark-theme .bot-message .message-avatar i {
    color: #f9fafb !important;
}

body.dark-theme .user-message .message-avatar {
    background: rgba(55, 65, 81, 0.8) !important;
    color: #e5e7eb !important;
}

body.dark-theme .user-message .message-avatar i {
    color: #e5e7eb !important;
}

body.dark-theme a {
    color: #60a5fa !important;
}

body.dark-theme a:hover {
    color: #93c5fd !important;
}

/* Fix welcome message in dark mode */
body.dark-theme .message.bot-message .message-content {
    background: rgba(40, 40, 40, 0.8) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 16px !important;
}

body.dark-theme .message.bot-message .message-text {
    background: transparent !important;
    color: #e5e7eb !important;
}

body.dark-theme .message.bot-message .message-text p {
    color: #e5e7eb !important;
}

body.dark-theme .message-time {
    color: #9ca3af !important;
}

/* Fix API key section in settings */
body.dark-theme .api-key-status {
    background: rgba(40, 40, 40, 0.5) !important;
    color: #e5e7eb !important;
}

body.dark-theme .api-key-status p {
    color: #e5e7eb !important;
}

body.dark-theme #keyStatusText {
    color: #e5e7eb !important;
}

body.dark-theme #keySavedTime {
    color: #d1d5db !important;
}

body.dark-theme .setting-actions {
    background: transparent !important;
}

body.dark-theme .input-group {
    background: transparent !important;
}

body.dark-theme .input-group input {
    background: rgba(55, 65, 81, 0.8) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .input-group input:focus {
    border-color: rgba(79, 70, 229, 0.8) !important;
    background: rgba(55, 65, 81, 1) !important;
}

body.dark-theme .input-group input::placeholder {
    color: #9ca3af !important;
}

/* Fix API key panel elements */
body.dark-theme .api-key-panel {
    background: rgba(40, 40, 40, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .panel-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #f9fafb !important;
}

body.dark-theme .panel-header h4 {
    color: #f9fafb !important;
}

body.dark-theme .panel-content {
    background: rgba(40, 40, 40, 0.8) !important;
    color: #e5e7eb !important;
}

body.dark-theme .api-status-indicator {
    color: #e5e7eb !important;
}

body.dark-theme .api-status-text {
    color: #e5e7eb !important;
}

body.dark-theme .api-status-text.connected {
    color: #10b981 !important;
}

body.dark-theme .api-status-text.error {
    color: #ef4444 !important;
}

body.dark-theme .api-input-group input {
    background: rgba(55, 65, 81, 0.8) !important;
    color: #e5e7eb !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .api-input-group input:focus {
    border-color: #4f46e5 !important;
    background: rgba(55, 65, 81, 1) !important;
}

body.dark-theme .toggle-btn,
body.dark-theme .save-btn {
    background: rgba(55, 65, 81, 0.8) !important;
    color: #e5e7eb !important;
}

body.dark-theme .save-btn {
    background: #10b981 !important;
    color: #f9fafb !important;
}

body.dark-theme .clear-btn {
    background: #ef4444 !important;
    color: #f9fafb !important;
}

body.dark-theme .get-key-link {
    color: #60a5fa !important;
}

body.dark-theme .get-key-link:hover {
    color: #93c5fd !important;
}

body.dark-theme .api-info-mini {
    color: #d1d5db !important;
}

/* Model Selection Styles */
.model-selection {
    margin-top: 8px;
}

.model-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s;
}

.model-select:focus {
    outline: none;
    border-color: #4f46e5;
}

.model-note {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.4;
}

/* Dark mode styles for model selection */
body.dark-theme .model-select {
    background: rgba(55, 65, 81, 0.8) !important;
    color: #e5e7eb !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .model-select:focus {
    border-color: #4f46e5 !important;
    background: rgba(55, 65, 81, 1) !important;
}

body.dark-theme .model-note {
    background: rgba(251, 191, 36, 0.2) !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    color: #fbbf24 !important;
}

body.dark-theme .floating-sidebar-toggle {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-theme .floating-sidebar-toggle:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}