:root {
    --color-accent: #7F96FF;
    --color-accent-hover: #6b82eb;
    --color-bg-primary: #0F0F0F;
    --color-bg-secondary: #1a1a1a;
    --color-bg-tertiary: #252525;
    --color-bg-input: #1f1f1f;
    --color-border: #333;
    --color-border-light: #444;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #888;
    --color-text-muted: #666;
    --color-error: #ff5555;
    --color-success: #50fa7b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    height: 100dvh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100dvh;
    gap: 0;
    background: #0F0F0F;
    position: relative;
    flex-direction: column;
}

.mobile-tabs {
    display: none;
    background: #0F0F0F;
    padding: 10px;
    gap: 8px;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.mobile-tab {
    flex: 1;
    padding: 10px 16px;
    background: #252525;
    border: 1px solid #333333;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-tab:hover {
    background: #333333;
}

.mobile-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Cloud save button */
.btn-cloud-save.saving {
    color: #7F96FF !important;
    animation: pulse 0.5s ease;
}

.btn-cloud-save.saved {
    color: #50fa7b !important;
    background: rgba(80, 250, 123, 0.1) !important;
    border-color: #50fa7b !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.panels-container {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 0;
}

/* На широких экранах все панели видимы */
@media (min-width: 1025px) {
    .panel {
        display: flex !important;
    }
}

.resize-handle {
    width: 8px;
    background: #0F0F0F;
    cursor: col-resize;
    position: relative;
    transition: background 0.2s;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Невидимая зона захвата для удобного перетаскивания */
.resize-handle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    right: -12px;
    bottom: 0;
    cursor: col-resize;
}

/* Визуальный индикатор (три точки) - скрыт */
.resize-handle::after {
    content: '';
}

.resize-handle:hover {
    background: #1a1a1a;
}

.resize-handle:active {
    background: #252525;
}

.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0F0F0F;
    min-width: 250px;
}

.prompt-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0F0F0F;
    min-width: 200px;
}

.panel-header {
    padding: 16px 20px;
    background: #0F0F0F;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    height: 60px;
    flex-shrink: 0;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 500;
    color: #f0f0f0;
    margin: 0;
    line-height: 1;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}

/* Export buttons always visible */
.btn-export {
    opacity: 1;
}

.char-count {
    font-size: 12px;
    color: #888;
    padding: 0 8px;
}


.btn-icon {
    padding: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    height: 32px;
    width: 32px;
}

.btn-icon:hover {
    background: #252525;
    border-color: #444;
}

.btn-icon.btn-export:hover {
    background: transparent;
    border-color: transparent;
    transform: scale(1.15);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.start-conversation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 200px;
}

.btn-start {
    padding: 54px 72px;
    background: #252525;
    border: none;
    color: #777777;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-start:hover {
    background: #2a2a2a;
    color: #999999;
}

.btn-start:active {
    background: #1f1f1f;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 8px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    animation: slideIn 0.3s ease-out;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.message-content {
    margin-bottom: 4px;
}

.message-content p {
    margin: 0 0 8px 0;
}

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

.message-content pre {
    margin: 8px 0;
    padding: 12px;
    background: #0a0a0a;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #2a2a2a;
}

.message-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.message-content pre code {
    display: block;
    padding: 0;
    background: none;
}

.message-content :not(pre) > code {
    background: #0a0a0a;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #2a2a2a;
}

.message-content strong {
    font-weight: 700;
}

.message-content em {
    font-style: italic;
}

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

.message-content h1 {
    font-size: 1.5em;
}

.message-content h2 {
    font-size: 1.3em;
}

.message-content h3 {
    font-size: 1.15em;
}

.message-content h4 {
    font-size: 1em;
}

.message-content hr {
    border: none;
    border-top: 1px solid #444;
    margin: 16px 0;
}

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

.message-content li {
    margin: 4px 0;
}

.message-content br {
    display: block;
    content: "";
    margin-top: 8px;
}

.message-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 6px;
    font-size: 11px;
    color: #cccccc;
}

.message-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.btn-copy {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    transition: all 0.2s;
}

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

.message.user {
    align-self: flex-end;
    background: var(--color-accent);
    color: #fff;
}

.message.user .message-content :not(pre) > code {
    background: rgba(127, 150, 255, 0.3);
    border-color: var(--color-accent);
}

.message.assistant {
    align-self: flex-start;
    background: #252525;
    color: #e0e0e0;
}

.message.error {
    align-self: center;
    background: #5a2a2a;
    color: #ff9999;
    max-width: 90%;
}

.message.rating {
    align-self: center;
    background: #2a2a2a;
    color: #e0e0e0;
    max-width: 95%;
    padding: 16px 24px;
}

.message.rating .message-content :not(pre) > code {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
}

.message.loading {
    align-self: flex-start;
    background: #252525;
    color: #999;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-input-container {
    padding: 16px 20px;
    background: #0F0F0F;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: flex-start;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.input-actions {
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

#userInput {
    flex: 1;
    padding: 12px 100px 12px 12px;
    background: #1f1f1f;
    border: none;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s, height 0.1s ease;
    height: 44px;
    min-height: 44px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.4;
    box-sizing: border-box;
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#userInput::-webkit-scrollbar {
    display: none;
}

#userInput:focus {
    border-color: #333333;
    box-shadow: none;
}

#userInput::placeholder {
    color: #777;
}

.btn-input-action {
    width: 28px;
    height: 28px;
    padding: 0;
    background: none;
    border: none;
    outline: none;
    color: #888888;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-input-action:hover {
    color: #cccccc;
}

.btn-input-action.recording {
    color: #ff4444;
    animation: pulse 1.5s ease-in-out infinite;
}

.btn-input-action.loading {
    color: var(--color-accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.btn-send {
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--color-accent);
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.btn-send svg {
    transform: rotate(0deg);
    transition: transform 0.2s;
}

.btn-send:hover {
    background: var(--color-accent);
}

.btn-send:hover svg {
    transform: rotate(15deg);
}

.btn-send:active {
    transform: scale(0.95);
}

.btn-send:disabled {
    background: #252525;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Instruction tabs */
.instruction-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    background: #0F0F0F;
    border-bottom: 1px solid #252525;
    flex-shrink: 0;
}

.instruction-tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.instruction-tab:hover {
    color: #ccc;
}

.instruction-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.instruction-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Markdown Toolbar */
.markdown-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    background: #0F0F0F;
    flex-shrink: 0;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 28px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: #333;
    color: #fff;
}

.toolbar-btn:active {
    background: #444;
}

.toolbar-btn strong {
    font-weight: 700;
}

.toolbar-btn em {
    font-style: italic;
}

.toolbar-btn s {
    text-decoration: line-through;
}

.toolbar-divider {
    width: 1px;
    height: 16px;
    background: #333;
    margin: 0 6px;
}

.instruction-editor {
    display: none;
}

.instruction-editor.active {
    display: flex;
    flex: 1;
}

.prompt-wrapper.instruction-editor.active {
    display: flex;
}

.prompt-editor {
    flex: 1;
    padding: 16px 20px;
    background: #0F0F0F;
    border: none;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: none;
    outline: none;
    line-height: 1.6;
    transition: background 0.2s;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 #0F0F0F;
}

.prompt-editor:focus {
    background: #0F0F0F;
}

.prompt-editor::placeholder {
    color: #666;
}

.prompt-editor::-webkit-scrollbar {
    width: 8px;
}

.prompt-editor::-webkit-scrollbar-track {
    background: #0F0F0F;
}

.prompt-editor::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.prompt-editor::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.prompt-editor.drag-over,
.prompt-preview.drag-over {
    border: 2px dashed var(--color-accent) !important;
    background: #1a1a2e !important;
}

/* Prompt wrapper for edit/preview modes */
.prompt-wrapper {
    flex-direction: row;
    min-height: 0;
    position: relative;
    gap: 0;
}

/* ВАЖНО: скрываем неактивные вкладки */
.prompt-wrapper.instruction-editor {
    display: none;
}

.prompt-wrapper.instruction-editor.active {
    display: flex;
    flex: 1;
}

/* Edit mode: только редактор (textarea) */
.prompt-wrapper .prompt-editor {
    display: block;
    flex: 1;
    width: 100%;
}

.prompt-wrapper .prompt-preview {
    display: none;
}

/* Preview/WYSIWYG mode: только preview (editable) */
.prompt-wrapper.preview-mode .prompt-editor {
    display: none;
}

.prompt-wrapper.preview-mode .prompt-preview {
    display: block;
    flex: 1;
    width: 100%;
    cursor: text;
}

/* Markdown Preview Styles (WYSIWYG editable) */
.prompt-preview {
    flex: 1;
    padding: 16px 20px;
    background: #0F0F0F;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.7;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 #0F0F0F;
    outline: none;
    min-height: 100%;
    cursor: text;
}


/* Selection styling in preview */
.prompt-preview::selection,
.prompt-preview *::selection {
    background: rgba(127, 150, 255, 0.3); /* Keep rgba for opacity */
}

.prompt-preview::-webkit-scrollbar {
    width: 8px;
}

.prompt-preview::-webkit-scrollbar-track {
    background: #0F0F0F;
}

.prompt-preview::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.prompt-preview::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.prompt-preview h1 {
    font-size: 1.6em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.prompt-preview h2 {
    font-size: 1.35em;
    font-weight: 600;
    color: #f0f0f0;
    margin: 24px 0 12px 0;
}

.prompt-preview h3 {
    font-size: 1.15em;
    font-weight: 600;
    color: #e8e8e8;
    margin: 20px 0 10px 0;
}

.prompt-preview h4 {
    font-size: 1.05em;
    font-weight: 600;
    color: #ddd;
    margin: 16px 0 8px 0;
}

.prompt-preview p {
    margin: 0 0 12px 0;
}

.prompt-preview ul,
.prompt-preview ol {
    margin: 12px 0;
    padding-left: 24px;
}

.prompt-preview li {
    margin: 6px 0;
}

.prompt-preview li::marker {
    color: var(--color-accent);
}

.prompt-preview strong {
    font-weight: 700;
    color: #fff;
}

.prompt-preview em {
    font-style: italic;
    color: #ccc;
}

.prompt-preview code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    background: var(--color-bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    color: var(--color-accent);
}

.prompt-preview pre {
    margin: 16px 0;
    padding: 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow-x: auto;
}

.prompt-preview pre code {
    display: block;
    padding: 0;
    background: none;
    border: none;
    color: #e0e0e0;
}

.prompt-preview blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--color-bg-secondary);
    border-left: 3px solid var(--color-accent);
    color: #bbb;
    font-style: italic;
}

.prompt-preview hr {
    border: none;
    border-top: 1px solid #333;
    margin: 24px 0;
}

.prompt-preview a {
    color: var(--color-accent);
    text-decoration: none;
}

.prompt-preview a:hover {
    text-decoration: underline;
}

.prompt-preview table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.prompt-preview th,
.prompt-preview td {
    border: 1px solid #333;
    padding: 10px 12px;
    text-align: left;
}

.prompt-preview th {
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
}

.prompt-preview tr:nth-child(even) {
    background: #141414;
}

/* Preview button - hidden by default, shown on header hover */
.btn-preview {
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.panel-header:hover .btn-preview {
    opacity: 1;
}

/* Preview button active state - same as normal button */
.btn-preview.active {
}

.btn-preview.active:hover {
}


/* Responsive design */
@media (max-width: 1024px) {
    .message {
        max-width: 90%;
    }
    
    .panel-header h2 {
        font-size: 16px;
    }
}

/* Узкие экраны - одна колонка с табами */
@media (max-width: 1024px) {
    .mobile-tabs {
        display: flex;
    }
    
    .panels-container {
        position: relative;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    .panel {
        display: none;
        width: 100%;
        height: 100%;
        flex: none !important;
        min-height: 0;
    }
    
    .panel.active {
        display: flex !important;
        flex-direction: column;
    }
    
    .resize-handle {
        display: none;
    }
    
    .chat-panel, .prompt-panel {
        min-width: 0;
        max-height: 100%;
    }
    
    .chat-messages {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: 80px;
    }
    
    .chat-input-container {
        flex-shrink: 0;
        padding: 12px 16px;
        position: sticky;
        bottom: 0;
        background: #0F0F0F;
        z-index: 100;
    }
}

@media (max-width: 768px) {
    .panel-header {
        padding: 12px 15px;
        flex-shrink: 0;
    }
    
    .panel-header h2 {
        font-size: 16px;
    }
    
    .btn-rate {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .mobile-tab {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .chat-input-container {
        padding: 10px 12px;
        position: sticky;
        bottom: 0;
        background: #0F0F0F;
    }
    
    .chat-messages {
        padding-bottom: 20px;
    }
    
    .input-wrapper {
        min-width: 0;
    }
    
    #userInput {
        min-height: 24px;
        font-size: 14px;
    }
    
    .btn-send, .btn-voice-inline {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .btn-icon {
        width: 28px;
        height: 28px;
    }
    
    .mobile-tab {
        font-size: 10px;
        padding: 5px 6px;
    }
}

/* Manager name input in header */
.manager-name-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.manager-name-container input {
    background: #1a1a1a;
    border: none;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 6px 10px;
    font-size: 13px;
    width: 140px;
    transition: border-color 0.2s, background 0.2s;
}

.manager-name-container input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #222;
}

.manager-name-container input::placeholder {
    color: #555;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
}

.modal-content p {
    color: #888;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.modal-content input {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    padding: 12px 16px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.modal-content input::placeholder {
    color: #555;
}

.btn-modal-submit {
    width: 100%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-modal-submit:hover {
    background: var(--color-accent-hover);
}

.btn-modal-submit:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .manager-name-container {
        display: none;
    }
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 4px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    min-width: 80px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    width: 100%;
}

.dropdown-item:hover {
    background: #333;
    color: #fff;
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.dropdown-item-icon svg {
    opacity: 0.8;
}

.dropdown-item-icon:hover svg {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: #444;
    margin: 4px 0;
}

/* Copy notification toast */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    width: 100%;
}

.dropdown-item:hover {
    background: #333;
    color: #fff;
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.dropdown-item-icon svg {
    opacity: 0.8;
}

.dropdown-item-icon:hover svg {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: #444;
    margin: 4px 0;
}

/* Copy notification toast */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    width: 100%;
}

.dropdown-item:hover {
    background: #333;
    color: #fff;
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.dropdown-item-icon svg {
    opacity: 0.8;
}

.dropdown-item-icon:hover svg {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: #444;
    margin: 4px 0;
}

/* Copy notification toast */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    width: 100%;
}

.dropdown-item:hover {
    background: #333;
    color: #fff;
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.dropdown-item-icon svg {
    opacity: 0.8;
}

.dropdown-item-icon:hover svg {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: #444;
    margin: 4px 0;
}

/* Copy notification toast */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

