@charset "utf-8";
.eve-chat-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    margin: 0;
    padding: 0;
}

.eve-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background:#f7f7f7;
    color: #686868;
}

.eve-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eve-icon {
    font-size: 28px;
}

.eve-chat-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.eve-status {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

.eve-model-selector select {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.eve-model-selector select option {
    color: #333;
    background: white;
}

.eve-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
	scrollbar-width: thin;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #6E8AFA;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user .message-avatar {
    background: #4f46e5;
}

.message-content {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.message-content.error {
    background: #fee2e2;
    color: #dc2626;
}

.user .message-content {
    background: #eff3f7;
    color: #242424;
}

.message-text {
    line-height: 1.5;
    color: #374151;
    margin-bottom: 8px;
	margin-top: 12px;
border-top: 1px #eee solid;
padding-top: 5px;
font-size: 18px;
}

.user .message-text, .message-content.error .message-text {
    color: inherit;
}

.message-time {
    font-size: 12px;
    color: #242424;
    text-align: right;
}

.user .message-time, .message-content.error .message-time {
    color: #242424;
}

.message-content.error .message-time {
    color: rgba(220, 38, 38, 0.7);
}

.typing-animation {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.typing-animation span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-animation span:nth-child(1) { animation-delay: 0s; }
.typing-animation span:nth-child(2) { animation-delay: 0.2s; }
.typing-animation span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { 
        transform: translateY(0); 
        opacity: 0.6;
    }
    30% { 
        transform: translateY(-5px); 
        opacity: 1;
    }
}

.eve-chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eve-chat-input {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-end;
    width: 100%;
    max-width: 800px;
}

.eve-chat-input textarea {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    max-height: 120px;
    transition: all 0.2s;
}

.eve-chat-input textarea:focus {
    outline: none;
    border-color: #6E8AFA;
    box-shadow: 0 0 0 3px rgba(110, 138, 250, 0.1);
}

.eve-search-web {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 14px;
background: #3b82f6;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 13px;
transition: all 0.2s;
}




.eve-chat-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 800px;
}

.clear-chat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.clear-chat-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.eve-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.eve-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.eve-notification.success {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.eve-notification.error {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.eve-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    font-size: 18px;
}

.eve-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.eve-chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.eve-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.eve-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive design */
@media (max-width: 768px) {
    .eve-chat-container {
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .eve-chat-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px;
    }
    
    .eve-chat-messages {
        padding: 15px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .eve-chat-input-container {
        padding: 15px;
    }
    
    .eve-chat-input {
        max-width: 100%;
    }
    
    .eve-chat-actions {
        max-width: 100%;
    }
}
/* Sidebar styles */
.eve-sidebar {
    width: 300px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.eve-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eve-chat-container {
    display: flex;
    flex-direction: row;
}

.eve-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.eve-projects-header h3 {
    margin: 0;
    font-size: 18px;
    color: #374151;
}

.eve-new-project-btn {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
}

.eve-new-project-form {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.eve-new-project-form input,
.eve-new-project-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: inherit;
}

.eve-new-project-form textarea {
    min-height: 60px;
    resize: vertical;
}

.eve-project-form-actions {
    display: flex;
    gap: 8px;
}

.eve-project-form-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.eve-project-form-actions button:first-child {
    background: #4f46e5;
    color: white;
}

.eve-project-form-actions button:last-child {
    background: #f3f4f6;
    color: #374151;
}

.eve-projects-list {

    overflow-y: auto;
}

.eve-project-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.eve-project-item:hover {
    background: #e5e7eb;
}

.eve-project-item.active {
    background: #4f46e5;
    color: white;
}

.eve-project-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.eve-project-description {
    font-size: 12px;
    opacity: 0.8;
}

.eve-project-info {
    font-size: 12px;
    margin-top: 4px;
    color: #6b7280;
}
/* ===== NOTIFICATION BELL ===== */
.eve-notification-bell {
    position: relative;
    margin-left: 15px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.eve-notification-bell:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.eve-notification-bell svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.eve-notification-bell.has-notifications {
    color: #ef4444;
}

.eve-notification-bell.has-notifications svg {
    color: #ef4444;
}

.eve-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== NOTIFICATION POPUP ===== */
.eve-notifications-popup {
    position: absolute;
    top: 45px;
    right: 0;
    width: 350px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.eve-notifications-header {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: between;
    align-items: center;
}

.eve-notifications-title {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.eve-clear-notifications {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.eve-clear-notifications:hover {
    background-color: #fef2f2;
}

.eve-notifications-list {
    padding: 0;
}

.eve-notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.eve-notification-item:hover {
    background-color: #f9fafb;
}

.eve-notification-item.unread {
    background-color: #f0f9ff;
}

.eve-notification-website {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
}

.eve-notification-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.eve-notification-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.eve-no-notifications {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/* ===== DELETE BUTTON IN PROJECT LIST ===== */
.eve-project-item {
    position: relative;
    padding-right: 40px;
}

.eve-delete-project {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.eve-project-item:hover .eve-delete-project {
    opacity: 1;
}

.eve-delete-project:hover {
    color: #ef4444;
    background-color: #fef2f2;
}

/* ===== CHAT HEADER LAYOUT ===== */
.eve-chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
}

.eve-current-project {
    flex: 1;
}

.eve-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* File upload button styles */
.eve-file-button {
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eve-file-button:hover {
    background: #6b7280;
    transform: translateY(-2px);
}
.eve-button {
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eve-button:hover {
    background: #6b7280;
    transform: translateY(-2px);
}
/* Chat input layout adjustments */
.eve-chat-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-end;
    width: 100%;
    max-width: 800px;
}

.eve-chat-input textarea {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    max-height: 120px;
    transition: all 0.2s;
}

/* File upload status */
.file-upload-status {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 14px;
    color: #0369a1;
}

.file-upload-status.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* File icon in messages */
.message-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 14px;
}

.message-file-icon {
    width: 16px;
    height: 16px;
}
/* ===== ATTACHED FILES STYLES ===== */
#attachedFiles {
    display: none;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px dashed #d1d5db;
    transition: all 0.3s ease;
}

#attachedFiles:hover {
    border-color: #6E8AFA;
    background: #f0f9ff;
}

#attachedFiles > div:first-child {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#attachedFiles > div:first-child::before {
    content: "ðŸ“Ž";
    font-size: 16px;
}

.attached-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attached-file:hover {
    border-color: #6E8AFA;
    box-shadow: 0 2px 8px rgba(110, 138, 250, 0.15);
    transform: translateY(-1px);
}

.attached-file > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.attached-file > div:first-child > span:first-child {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.attached-file-info {
    flex: 1;
}

.attached-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2px;
    word-break: break-word;
}

.attached-file-size {
    font-size: 12px;
    color: #6b7280;
}

.remove-attached-file {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-attached-file:hover {
    background: #fef2f2;
    color: #ef4444;
    transform: scale(1.1);
}

.remove-attached-file svg {
    width: 16px;
    height: 16px;
}

/* File type icons based on extension */
.attached-file[data-filename$=".pdf"] > div:first-child > span:first-child { content: "ðŸ“„"; }
.attached-file[data-filename$=".doc"] > div:first-child > span:first-child,
.attached-file[data-filename$=".docx"] > div:first-child > span:first-child { content: "ðŸ“"; }
.attached-file[data-filename$=".xls"] > div:first-child > span:first-child,
.attached-file[data-filename$=".xlsx"] > div:first-child > span:first-child { content: "ðŸ“Š"; }
.attached-file[data-filename$=".jpg"] > div:first-child > span:first-child,
.attached-file[data-filename$=".jpeg"] > div:first-child > span:first-child,
.attached-file[data-filename$=".png"] > div:first-child > span:first-child { content: "ðŸ–¼ï¸"; }
.attached-file[data-filename$=".zip"] > div:first-child > span:first-child,
.attached-file[data-filename$=".rar"] > div:first-child > span:first-child { content: "ðŸ“¦"; }
.attached-file[data-filename$=".mp3"] > div:first-child > span:first-child,
.attached-file[data-filename$=".wav"] > div:first-child > span:first-child { content: "ðŸŽµ"; }
.attached-file[data-filename$=".mp4"] > div:first-child > span:first-child,
.attached-file[data-filename$=".avi"] > div:first-child > span:first-child { content: "ðŸŽ¬"; }

/* Code files */
.attached-file[data-filename$=".js"] > div:first-child > span:first-child { content: "ðŸ“œ"; color: #f7df1e; }
.attached-file[data-filename$=".html"] > div:first-child > span:first-child { content: "ðŸŒ"; color: #e34f26; }
.attached-file[data-filename$=".css"] > div:first-child > span:first-child { content: "ðŸŽ¨"; color: #1572b6; }
.attached-file[data-filename$=".php"] > div:first-child > span:first-child { content: "ðŸ˜"; color: #777bb4; }
.attached-file[data-filename$=".py"] > div:first-child > span:first-child { content: "ðŸ"; color: #3776ab; }

/* Empty state */
#attachedFilesList:empty::before {
    content: "No files attached";
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
}

/* Drag and drop styles */
#attachedFiles.drag-over {
    background: #e0f2fe;
    border-color: #0ea5e9;
    border-style: solid;
}

/* Responsive design */
@media (max-width: 768px) {
    #attachedFiles {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .attached-file {
        padding: 10px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .attached-file > div:first-child {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .remove-attached-file {
        align-self: center;
    }
}

/* Animation for file removal */
.attached-file.removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
        height: 0;
        padding: 0;
        margin: 0;
        border: none;
    }
}

/* Progress bar for file uploads */
.file-upload-progress {
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.file-upload-progress-bar {
    height: 100%;
    background: #10b981;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Success state */
.attached-file.upload-success {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Error state */
.attached-file.upload-error {
    border-color: #ef4444;
    background: #fef2f2;
}
.audio-player-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

.audio-playlist {
    max-height: 300px;
    overflow-y: auto;
}

.audio-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
}

.audio-file-info {
    flex: 1;
}

.audio-file-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.audio-file-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #6b7280;
}

.play-audio-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.play-audio-btn:hover {
    background: #059669;
}
/* ===== COMMANDS DROPDOWN STYLES ===== */
.eve-commands-dropdown {
    position: relative;
    display: inline-block;
}

.commands-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.commands-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.commands-btn svg {
    width: 14px;
    height: 14px;
}

.commands-menu {
    position: absolute;
    bottom: 100%; 
    right: 0;
    width: 250px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15); 
    z-index: 1000;
    margin-bottom: 5px;
    padding: 12px;
    display: none;
    animation: slideUp 0.2s ease; 
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.commands-menu.show {
    display: block;
}

.commands-section {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.commands-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.commands-section h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.command-item {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.command-item:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}

.command-item:active {
    background: #e5e7eb;
}

/* Chat actions layout */
.eve-chat-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    max-width: 800px;
}

/* Responsive design */
@media (max-width: 768px) {
    .commands-menu {
        right: -50px;
        width: 220px;
        bottom: 100%;
    }
    
    .eve-chat-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .clear-chat-btn,
    .eve-commands-dropdown {
        flex: 1;
        min-width: 120px;
    }
}
/* Responsive design */
@media (max-width: 968px) {
    .eve-sidebar {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .eve-chat-container {
        flex-direction: column;
    }
    
    .eve-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        max-height: 200px;
    }
}
/* Sidebar toggle button */
.sidebar-toggle-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Collapsible sidebar */
.eve-sidebar {
    width: 300px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.eve-sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
    border-right: none;
}

.eve-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.eve-chat-main.expanded {
    margin-left: 0;
}
.eve-client-settings-container {
    width: 100%;
    margin: 0 auto;
    background: #1a1a1a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
	float:left;
}


.eve-client-settings-sidebar {
    width: 280px;
    background: #252525;
    padding: 2rem 0;
    border-right: 1px solid #333;
}

.eve-client-settings-tabs {
    display: flex;
    flex-direction: column;
}

.eve-client-settings-tab-button {
    padding: 1.2rem 2rem;
    background: none;
    border: none;
    color: #ccc;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eve-client-settings-tab-button:hover {
    background: #333;
    color: #fff;
}

.eve-client-settings-tab-button.active {
    background: #333;
    color: #fff;
    border-left-color: #4f46e5;
}

.eve-client-settings-tab-button i {
    font-size: 1.3rem;
    width: 24px;
}


.eve-client-settings-content {
    flex: 1;
    padding: 2rem;
    background: #1e1e1e;
}

.eve-client-settings-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.eve-client-settings-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.eve-client-settings-header {
    margin-bottom: 2.5rem;
}

.eve-client-settings-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eve-client-settings-subtitle {
    color: #ccc;
    font-size: 1.1rem;
}


.eve-client-settings-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}


.eve-client-avatar-section {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: #252525;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.eve-client-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 4px solid #333;
}

.eve-client-avatar-upload {
    flex: 1;
}


.eve-client-settings-form-group {
    margin-bottom: 1.5rem;
}

.eve-client-settings-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eve-client-settings-input,
.eve-client-settings-select,
.eve-client-settings-textarea {
    width: 100%;
    padding: 1rem;
    background: #252525;
    border: 2px solid #333;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.eve-client-settings-input:focus,
.eve-client-settings-select:focus,
.eve-client-settings-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.eve-client-settings-textarea {
    min-height: 120px;
    resize: vertical;
}


.eve-client-settings-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.eve-client-settings-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #252525;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.eve-client-settings-checkbox-label:hover {
    background: #2d2d2d;
}

.eve-client-settings-checkbox {
    margin: 0;
}

.eve-client-slider-container {
    margin-top: 1rem;
}

.eve-client-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    margin: 1rem 0;
    -webkit-appearance: none;
}

.eve-client-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: 2px solid #fff;
}

.eve-client-slider-values {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    font-size: 0.9rem;
}
.eve-client-settings-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.eve-client-settings-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eve-client-settings-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: white;
}

.eve-client-settings-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.eve-client-settings-btn-secondary {
    background: #333;
    color: #ccc;
}

.eve-client-settings-btn-secondary:hover {
    background: #444;
    color: #fff;
}
.eve-client-settings-empty-tab {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.eve-client-settings-empty-tab i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
@media (max-width: 1024px) {
    .eve-client-settings-container {
        flex-direction: column;
    }
    
    .eve-client-settings-sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .eve-client-settings-tabs {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .eve-client-settings-tab-button {
        padding: 1rem 1.5rem;
        border-left: none;
        border-bottom: 4px solid transparent;
        white-space: nowrap;
    }
    
    .eve-client-settings-tab-button.active {
        border-left-color: transparent;
        border-bottom-color: #4f46e5;
    }
}

@media (max-width: 768px) {
    .eve-client-settings-form {
        grid-template-columns: 1fr;
    }
    
    .eve-client-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .eve-client-settings-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .eve-client-settings-actions {
        flex-direction: column;
    }
}
.eve-assistant-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.eve-avatar-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #3b82f6;
}

.eve-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eve-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    font-size: 20px;
}

.eve-name {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    font-size: 16px;
    flex-shrink: 0;
}

.message-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.eve-client-avatar-preview.uploading {
    opacity: 0.7;
    position: relative;
}

.eve-client-avatar-preview.uploading::after {
    content: 'Uploading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}
.eve-assistant-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.eve-avatar-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #3b82f6;
}

.eve-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eve-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    font-size: 20px;
}

.eve-name {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}
.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    font-size: 16px;
    flex-shrink: 0;
}

.message-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.eve-client-avatar-preview.uploading {
    opacity: 0.7;
    position: relative;
}

.eve-client-avatar-preview.uploading::after {
    content: 'Uploading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.message-content {
    position: relative;
    padding-top: 30px;
	min-width: 200px;
}


.message-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex !important;
    gap: 4px;
    opacity: 0.7 !important;
    visibility: visible !important;
    transition: opacity 0.2s ease;
}

.message-actions:hover {
    opacity: 1 !important;
}

.message-action-btn {
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
	background: none;
}

.message-action-btn:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}





.message-action-btn svg {
    width: 23px;
    height: 23px;
    color: #6b7280;
}

.user .message-action-btn {
   
}

.user .message-action-btn svg {
    color: #666666;
}

.user .message-action-btn:hover {
    background: rgba(79, 70, 229, 0.2);
}

/* Стил за маркирани като важни съобщения */
.message.important .message-content {
    border-left: 3px solid #f59e0b;
}

.message-action-btn.important svg {
    color: #f59e0b;
    fill: #f59e0b;
}

/* Стилове за режим на редактиране */
.message.edit-mode .message-text {
    display: none;
}

.message-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 8px;
}

.message-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.message-edit-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.message-edit-save {
    background: #10b981;
    color: white;
}

.message-edit-cancel {
    background: #6b7280;
    color: white;
}
.message-action-btn.regenerate:hover {
    background: #3b82f6;
}

.message-action-btn.regenerate:hover svg {
    color: white;
}
/* Стилове за модален прозорец за потвърждение */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.confirmation-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.confirmation-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #374151;
}

.confirmation-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.confirmation-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.confirmation-btn.confirm {
    background: #ef4444;
    color: white;
}

.confirmation-btn.confirm:hover {
    background: #dc2626;
}

.confirmation-btn.cancel {
    background: #f3f4f6;
    color: #374151;
}

.confirmation-btn.cancel:hover {
    background: #e5e7eb;
}
/* Стилове за бутона при копиране */
.message-action-btn.copied {
    background-color: #10b981 !important;
    color: white !important;
}

.message-action-btn.copied span {
    font-size: 12px;
    font-weight: 600;
}

.message-action-btn.failed {
    background-color: #ef4444 !important;
    color: white !important;
}

/* Анимация за копиране */
@keyframes copyFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.message-action-btn:active {
    animation: copyFlash 0.3s ease;
}
.message-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.message-content pre {
    background: #f8fafc;
    color: #f3f4f6;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
	font-size:20px;
	font-weight:400;
	color: #151515;
}

.message-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}
.eve-header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.eve-model-selector,
.eve-mode-selector {
    display: flex;
    align-items: center;
}

.eve-model-selector select,
.eve-mode-selector select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.eve-mode-selector select {
    min-width: 120px;
}
.eve-video-player {
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.eve-video-player video {
    border-radius: 10px;
}

.eve-video-filename {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.load-more-container {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
}

.load-more-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #2980b9;
}

.loading-indicator {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 10px;
}
.attached-files-chat {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
    font-size: 14px;
}
/* ===== NORMAL PROJECTS STYLES ===== */
.eve-projects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Main Chat Item - CLEAN */
.eve-project-item.main-chat {
    background: #ffffff;
    color: #1f2937;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.eve-project-item.main-chat:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.eve-project-item.main-chat.active {
    background: #3b82f6;
    color: white;
}

.eve-project-item.main-chat .eve-project-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Projects Folder - SIMPLE */
.eve-folder-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
	margin-top:7px;
}

.eve-folder-item:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.eve-folder-item.expanded {
    background: #eff6ff;
    border-color: #3b82f6;
}

.folder-icon {
    font-size: 16px;
}

.folder-name {
    flex: 1;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.folder-arrow {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.eve-folder-item.expanded .folder-arrow {
    transform: rotate(180deg);
}

/* Projects Submenu */
.eve-projects-submenu {
    margin-left: 16px;
    border-left: 2px solid #e5e7eb;
    padding-left: 10px;
}

/* Project Items - CLEAN */
.eve-project-item.subproject {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin: 4px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eve-project-item.subproject:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

.eve-project-item.subproject.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.eve-project-item.subproject .eve-project-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eve-project-item.subproject .eve-project-description {
    font-size: 12px;
    color: #6b7280;
}

.eve-project-item.subproject.active .eve-project-description {
    color: rgba(255, 255, 255, 0.8);
}
pre {
    background: #f8fafc;
    padding: 12px;
    border-radius: 5px;
    overflow-x: auto;
    border-left: 4px solid #3b82f6;
    margin: 10px 0;
	font-size:20px;
	font-weight:400;
	color: #151515;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.message-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

.message-text table, .message-text th, .message-text td {
    border: 1px solid #ddd;
    padding: 8px;
}

.message-text th {
    background: #f8f9fa;
    font-weight: bold;
}
.file-upload-progress {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 5px;
    margin: 5px 0;
}

.upload-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.upload-text {
    font-size: 14px;
    color: #6b7280;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.attached-file.uploading {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
}

.file-upload-status {
    font-size: 12px;
    margin-left: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.file-upload-status.uploading {
    background: #fef3c7;
    color: #d97706;
}

.file-upload-status.success {
    background: #d1fae5;
    color: #065f46;
}

.file-upload-status.error {
    background: #fee2e2;
    color: #dc2626;
}

.attached-file.processed {
    background: #f0fdf4 !important;
    border-color: #22c55e !important;
}

.attached-file.error {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
}
/* Eve Voice Button */
.eve-voice-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eve-voice-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

.eve-voice-btn.listening {
    background: #fee2e2;
    animation: evePulse 1.5s infinite;
}

.eve-voice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.eve-voice-icon {
    transition: all 0.3s ease;
}

.eve-voice-btn.listening .eve-voice-icon {
    color: #ef4444;
    animation: eveIconPulse 0.8s infinite;
}

@keyframes evePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes eveIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Eve Voice Status */
.eve-voice-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none;
}

.eve-voice-status.listening {
    display: block;
    background: #dcfce7;
    border-left: 4px solid #16a34a;
}
.eve-mail-accounts-container {
width:100%;
float:left;

}

.eve-mail-accounts-left {
width:50%;
float:left;
}
.eve-mail-accounts-list {
width:40%;
margin-left:20px;
float:left;
}
.eve-mail-accounts-form {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;

}

/* Останалите стилове остават същите */
.eve-mail-servers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.eve-mail-account-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
}

.eve-mail-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.eve-mail-account-name {
    font-weight: bold;
    font-size: 1.1em;
}

.eve-mail-account-status.active {
    color: #22c55e;
    font-size: 0.9em;
}

.eve-mail-account-status.inactive {
    color: #ef4444;
    font-size: 0.9em;
}

.eve-mail-account-email {
    color: #666;
    margin-bottom: 0.5rem;
}

.eve-mail-account-actions {
    display: flex;
    gap: 0.5rem;
}

.eve-client-settings-btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8em;
}

.eve-no-accounts {
    text-align: center;
    padding: 2rem;
    color: #666;
}
/* Gallery Modal Styles */
.eve-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 97%;
    height: 97%;
	margin:20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.gallery-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px 20px 0 0;
}

.gallery-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

.close-gallery {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-gallery:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.gallery-controls {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
}

.gallery-search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.gallery-search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 14px;
    transition: all 0.3s ease;
}

.gallery-search-form input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.gallery-search-form select {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 14px;
    min-width: 120px;
}

.gallery-search-form button {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-search-form button:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.gallery-search-form button[type="button"] {
    background: rgba(107, 114, 128, 0.9);
}

.gallery-search-form button[type="button"]:hover {
    background: rgba(107, 114, 128, 1);
}

.gallery-container {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    align-content: start;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image-container img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-actions {
    display: flex;
    gap: 10px;
}

.gallery-actions a, .gallery-actions span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-actions a:hover, .gallery-actions span:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item-info {
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
}

.gallery-item-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item-size {
    color: #6b7280;
    font-size: 12px;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 18px;
}

.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.gallery-stats {
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 20px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Scrollbar Styling */
.gallery-container::-webkit-scrollbar {
    width: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-modal {
        width: 98%;
        height: 95%;
        border-radius: 16px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .gallery-image-container {
        height: 150px;
    }
    
    .gallery-header,
    .gallery-controls {
        padding: 15px 20px;
    }
    
    .gallery-search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-search-form input,
    .gallery-search-form select,
    .gallery-search-form button {
        width: 100%;
    }
}
.lightbox-modal {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    margin-top: 15px;
    color: white;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.lightbox-info span {
    display: block;
    margin: 5px 0;
    font-size: 14px;
}

.lightbox-actions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.lightbox-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.lightbox-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-actions {
        bottom: 20px;
    }
    
    .lightbox-image-container img {
        max-height: calc(100vh - 200px);
    }
}
/* Calendar Modal */
.calendar-modal {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95vh;
    overflow: auto;
}

.calendar-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    background: #f7f7f7;
    color: #666666;
    border-radius: 12px 12px 0 0;
}

.calendar-header h2 {
    margin: 0;
    flex: 1;
    font-size: 1.5rem;
}

.close-calendar {
    background: rgba(117, 117, 117, 0.2);
border: none;
color: #2b2b2b;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    width: 25px;
    height: 26px;
    display: flex;
    justify-content: center;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 7px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-controls h3 {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 1.3rem;
    color: #374151;
    font-weight: 600;
}
/* Стилове за имейл контейнер със скролбар */
.email-body-container {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: white;
    margin: 15px 0;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.email-body-container::-webkit-scrollbar {
    width: 8px;
}

.email-body-container::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.email-body-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.email-body-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.email-html-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #374151;
    font-size: 14px;
}

.email-html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.email-html-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    font-size: 13px;
}

.email-html-content table, 
.email-html-content th, 
.email-html-content td {
    border: 1px solid #d1d5db;
    padding: 8px 12px;
}

.email-html-content th {
    background: #f9fafb;
    font-weight: 600;
}

.email-html-content blockquote {
    border-left: 4px solid #3b82f6;
    margin: 15px 0;
    padding-left: 15px;
    color: #6b7280;
    font-style: italic;
}

.email-html-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

.email-html-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

.email-html-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.email-html-content a:hover {
    color: #2563eb;
}

.email-html-content ul, 
.email-html-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.email-html-content li {
    margin: 5px 0;
}

.email-text-content {
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #374151;
}

.email-header-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.email-header-info div {
    margin: 5px 0;
    font-size: 14px;
}

.email-header-info strong {
    color: #495057;
    min-width: 70px;
    display: inline-block;
}
.calendar-nav-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.calendar-action-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-action-btn.primary {
    background: #10b981;
}

/* Calendar Grid */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    flex: 1;
}

.calendar-weekdays {
    display: contents;
}

.calendar-weekdays > div {
    background: #5b5b5b;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-days {
    display: contents;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid #f3f4f6;
}

.calendar-day:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1;
}

.calendar-day.other-month {
    background: #f9fafb;
    color: #9ca3af;
}

.calendar-day.today {
    background: #dbeafe;
    border: 2px solid #3b82f6;
}

.calendar-day.has-events {
    background: #f0f9ff;
}

.day-number {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #374151;
}

.calendar-day.other-month .day-number {
    color: #9ca3af;
    font-weight: normal;
}

.calendar-event {
    background: #3b82f6;
    color: white;
    padding: 3px 6px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.calendar-event:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.calendar-event.meeting {
    background: #10b981;
}

.calendar-event.reminder {
    background: #f59e0b;
}

.calendar-event.note {
    background: #8b5cf6;
}

.calendar-event.task {
    background: #ef4444;
}

.calendar-event-more {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 2px;
    padding: 2px 4px;
}

/* Events Summary */
.calendar-events-summary {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    max-height: 200px;
    overflow-y: auto;
}

.no-events-selected {
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.event-item {
    padding: 12px;
    margin: 8px 0;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-item:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.event-type-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    color: white;
}

/* Event Modals */
.event-modal, .event-form-modal {
    width:35%;
    background: white;
    border-radius: 12px;
    margin: 0 auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	padding:20px;
}

.event-header, .event-form-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.event-header h3, .event-form-header h3 {
    margin: 0;
    flex: 1;
}

.event-content {
    padding: 20px;
}

.event-detail {
    margin: 15px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
}

.event-detail label {
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 4px;
}

.event-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.event-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #6b7280;
    color: white;
}

.event-action-btn.primary {
    background: #10b981;
}

.event-action-btn.danger {
    background: #ef4444;
}

/* Form Styles */
.form-group {
    margin: 15px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.form-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #6b7280;
    color: white;
}

.form-btn.primary {
    background: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-modal {
        width: 98%;
        margin: 10px;
    }
    
    .calendar-controls {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: 80px;
    }
}
/* Email Modal Styles */
.email-modal {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.email-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
}

.close-email {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.close-email:hover {
    color: #475569;
}

.email-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Sidebar */
.email-sidebar {
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 20px;
    overflow-y: auto;
}

.compose-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.compose-btn:hover {
    background: #2563eb;
}

.email-folders {
    margin-bottom: 32px;
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    color: #475569;
    transition: all 0.2s;
}

.folder-item:hover {
    background: #f1f5f9;
}

.folder-item.active {
    background: #3b82f6;
    color: white;
}

.folder-icon {
    margin-right: 12px;
    font-size: 16px;
}

.folder-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.folder-count {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.folder-item.active .folder-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.email-accounts {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.accounts-header {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.account-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    color: #475569;
    transition: all 0.2s;
}

.account-item:hover {
    background: #f1f5f9;
}

.account-item.active {
    background: #3b82f6;
    color: white;
}

.account-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
}

.account-name {
    font-size: 14px;
    font-weight: 500;
}

/* Main Content */
.email-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.email-topbar {
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
}

.email-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
}

.action-btn:hover {
    background: #f1f5f9;
    color: #374151;
}

/* Email List */
.email-list {
    flex: 1;
    overflow-y: auto;
}

.email-list-header {
    display: grid;
    grid-template-columns: 40px 1fr 2fr 120px;
    gap: 16px;
    padding: 12px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.email-list-items {
    min-height: 200px;
}

.email-item {
    display: grid;
    grid-template-columns: 40px 1fr 2fr 120px;
    gap: 16px;
    padding: 12px 24px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}

.email-item:hover {
    background: #f8fafc;
}

.email-item.unread {
    background: #f0f9ff;
    font-weight: 600;
}

.email-item.unread:hover {
    background: #e0f2fe;
}

.email-checkbox {
    display: flex;
    align-items: center;
}

.email-checkbox input {
    margin: 0;
}

.email-sender {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.sender-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.important-badge {
    background: #f59e0b;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.email-subject {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.subject-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-icon {
    color: #64748b;
    font-size: 12px;
}

.email-date {
    font-size: 12px;
    color: #64748b;
    text-align: right;
}

.no-emails {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 14px;
}

/* Email Reader */
.email-reader {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.email-reader-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.back-btn:hover {
    color: #2563eb;
}

.email-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.email-header-info {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.email-header-info div {
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.email-header-info strong {
    color: #64748b;
    min-width: 60px;
    display: inline-block;
}

.email-body {
    line-height: 1.6;
    color: #374151;
}

.email-body pre {
    white-space: pre-wrap;
    font-family: inherit;
    background: #f8fafc;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* AI Actions */
.email-ai-actions {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.email-ai-actions h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
}

.ai-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-btn {
    background: white;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
    transition: all 0.2s;
}

.ai-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Compose Modal */
.compose-modal {
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.compose-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compose-header h3 {
    margin: 0;
    color: #1e293b;
}

.close-compose {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
}

#composeForm {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

.compose-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.compose-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.compose-btn.primary {
    background: #3b82f6;
    color: white;
}

.compose-btn.primary:hover {
    background: #2563eb;
}

.compose-btn:not(.primary) {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
}

.compose-btn:not(.primary):hover {
    background: #f1f5f9;
}

/* Account Modal */
.account-modal {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.account-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-header h3 {
    margin: 0;
    color: #1e293b;
}

.close-account {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
}

#addAccountForm {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.form-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.form-btn.primary {
    background: #3b82f6;
    color: white;
}

.form-btn.primary:hover {
    background: #2563eb;
}

.form-btn:not(.primary) {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
}

.form-btn:not(.primary):hover {
    background: #f1f5f9;
}

/* Scrollbar Styling */
.email-sidebar::-webkit-scrollbar,
.email-list::-webkit-scrollbar,
.email-content::-webkit-scrollbar {
    width: 6px;
}

.email-sidebar::-webkit-scrollbar-track,
.email-list::-webkit-scrollbar-track,
.email-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.email-sidebar::-webkit-scrollbar-thumb,
.email-list::-webkit-scrollbar-thumb,
.email-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.email-sidebar::-webkit-scrollbar-thumb:hover,
.email-list::-webkit-scrollbar-thumb:hover,
.email-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* Email Dialog Styles */
.email-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.email-dialog {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.dialog-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.dialog-icon {
    font-size: 24px;
    margin-right: 12px;
}

.dialog-title {
    margin: 0;
    color: #1F2937;
    font-size: 18px;
    font-weight: 600;
}

.dialog-message {
    color: #6B7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.dialog-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
}

.dialog-btn.cancel-btn {
    background: white;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.dialog-btn.confirm-btn {
    color: white;
}

.dialog-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.email-prompt-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.email-prompt-input:focus {
    border-color: #3B82F6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Email Reader Actions */
.email-reader-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.email-action-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.email-action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.email-action-btn.primary {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

.email-action-btn.primary:hover {
    background: #2563eb;
}

/* Compose Form Improvements */
.compose-modal {
    max-width: 800px;
    width: 90%;
}

.compose-modal .form-group {
    margin-bottom: 16px;
}

.compose-modal input,
.compose-modal textarea,
.compose-modal select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.compose-modal textarea {
    min-height: 200px;
    resize: vertical;
    font-family: inherit;
}

.compose-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.compose-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.compose-btn.primary {
    background: #10B981;
    color: white;
}

.compose-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Finance Submenu - Same style as Projects */
.eve-finance-submenu {
    margin-left: 16px;
    border-left: 2px solid #e5e7eb;
    padding-left: 10px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.finance-menu-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin: 4px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.finance-menu-item:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    transform: translateX(4px);
}

.finance-menu-item.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.finance-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.finance-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

/* Finance folder item - matches Projects folder */
.eve-folder-item.finance-folder {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
}

.eve-folder-item.finance-folder:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.eve-folder-item.finance-folder.expanded {
    background: #eff6ff;
    border-color: #3b82f6;
}

.eve-folder-item.finance-folder .folder-arrow {
    transition: transform 0.2s ease;
}

.eve-folder-item.finance-folder.expanded .folder-arrow {
    transform: rotate(180deg);
}
.stock-market-modal {
    width: 98%;
    height: 98%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stock-market-header {
    padding: 5px 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.stock-market-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.close-stock-market {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-stock-market:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.stock-market-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

/* Compact Add Form */
.add-stock-form {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.compact-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.compact-input {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    min-width: 80px;
}

.compact-input:focus {
    outline: none;
    border-color: #3b82f6;
}

#stockSymbol { width: 80px; }
#stockName { width: 120px; }
#stockQuantity { width: 70px; }
#stockPrice { width: 90px; }

.add-stock-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.add-stock-btn:hover {
    background: #059669;
}

/* Compact Controls */
.stock-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 5px;
}

.control-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.control-btn:hover {
    background: #2563eb;
}

.portfolio-total {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Compact Stocks List */
.stocks-list-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}

.stocks-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e5e7eb;
}

/* Header Row - UPDATED with separate Symbol and Name columns */
.stocks-header {
    display: grid;
    grid-template-columns: 80px 120px 100px 70px 90px 90px 120px 80px 40px;
    gap: 8px;
    padding: 8px 10px;
    background: #374151;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}

/* Single Row Stock Item - UPDATED with separate Symbol and Name columns */
.stock-item {
    display: grid;
    grid-template-columns: 80px 120px 100px 70px 90px 90px 120px 80px 40px;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: white;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
}

.stock-item:hover {
    background: #f9fafb;
}

.stock-symbol {
    font-weight: 600;
    color: #1f2937;
}

.stock-name {
    color: #6b7280;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cef-symbol {
    font-weight: 600;
    color: #7c3aed;
}

.stock-price {
    font-weight: 600;
    text-align: right;
}

.stock-price.positive {
    color: #059669;
	text-align: inherit;
}

.stock-price.negative {
    color: #dc2626;
}

.stock-quantity, .stock-avg-price, .stock-value {
    color: #6b7280;
}

.stock-change {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.stock-change .change-amount {
    font-weight: bold;
    font-size: 13px;
}

.stock-change .change-percent {
    font-size: 11px;
    margin-top: 1px;
}

.stock-change.positive {
    color: #059669;
}

.stock-change.negative {
    color: #dc2626;
}

.stock-volume {
    text-align: right;
    color: #6b7280;
    font-size: 12px;
}

.delete-stock-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    opacity: 0.6;
}

.delete-stock-btn:hover {
    opacity: 1;
    background: #fef2f2;
}

/* Loading States */
.loading-stocks, .no-stocks, .error-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    background: white;
}

.stock-loading {
    text-align: center;
    padding: 10px;
    background: #e5e7eb;
    border-radius: 4px;
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.positive {
    color: #10B981;
}

.negative {
    color: #EF4444;
}