/* Email Modal Styles */
.emailModal {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1005;
}

.email-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.email-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-email {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-left: 10px;
}

.close-email:hover {
    background: rgba(255,255,255,0.2);
}

.close-email svg {
    width: 20px;
    height: 20px;
}

.email-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Left Sidebar */
.email-sidebar {
    width: 280px;
    border-right: 1px solid #e2e8f0;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    flex-shrink: 0;
}

.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;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.compose-btn:hover {
    background: #2563eb;
}

.compose-btn svg {
    width: 16px;
    height: 16px;
}

.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;
}

.mail-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mail-icon svg {
    width: 16px;
    height: 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;
    min-width: 20px;
    text-align: center;
}

.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;
    flex-shrink: 0;
}

.account-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-account-btn {
    width: 100%;
    background: transparent;
    border: 1px dashed #d1d5db;
    color: #64748b;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.add-account-btn:hover {
    background: #f1f5f9;
    border-color: #9ca3af;
}

.add-account-btn svg {
    width: 14px;
    height: 14px;
}

/* Main Content */
.email-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    min-height: 0;
}

/* Top Bar */
.email-topbar {
    flex: 1;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.search-box {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
}

.search-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    display: flex;
    align-items: center;
}

.search-btn svg {
    width: 16px;
    height: 16px;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    display: none;
    padding: 12px 20px;
    background: #f0f9ff;
    border-bottom: 1px solid #bae6fd;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.bulk-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
}

.bulk-action-btn {
    background: white;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.bulk-action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.bulk-action-btn svg {
    width: 14px;
    height: 14px;
}

.selected-count {
    font-size: 13px;
    color: #64748b;
    margin-left: auto;
    padding: 0 12px;
    white-space: nowrap;
}

/* Email List */
.email-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.email-list-header {
    display: grid;
    grid-template-columns: 50px minmax(200px, 1fr) minmax(200px, 2fr) 150px 100px;
    gap: 16px;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1;
}

.email-list-items {
    min-height: 0;
}

.email-item {
    display: grid;
    grid-template-columns: 50px minmax(200px, 1fr) minmax(200px, 2fr) 150px 100px;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
    align-items: center;
}

.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;
    justify-content: center;
}

.email-checkbox input {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.email-sender {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    overflow: hidden;
}

.sender-info {
    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;
    flex-shrink: 0;
}

.attachment-icon {
    color: #64748b;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.attachment-icon svg {
    width: 14px;
    height: 14px;
}

.email-subject {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    overflow: hidden;
}

.subject-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-date {
    font-size: 12px;
    color: #64748b;
    text-align: right;
}

.email-actions-header {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.email-quick-action {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: all 0.2s;
}

.email-quick-action:hover {
    background: #f1f5f9;
    color: #374151;
}

.email-quick-action svg {
    width: 14px;
    height: 14px;
}

.no-emails {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* Email Reader */
.email-reader {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    scrollbar-width: thin;
height: 100%;
overflow-y: auto;
}

.email-reader-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.back-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: #f1f5f9;
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

.email-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f1f5f9;
    color: #374151;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.email-content {
    flex: 1;
    padding: 20px;
    min-height: 0;
}

.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;
    line-height: 1.5;
}

.email-header-info strong {
    color: #64748b;
    min-width: 60px;
    display: inline-block;
}

.email-body-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.email-html-content {
    line-height: 1.6;
    font-size: 14px;
    color: #333;
}

.email-html-content * {
    max-width: 100%;
}

.email-text-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Email Attachments */
.email-attachments {
    padding: 0 20px 20px;
    flex-shrink: 0;
}

.email-attachments h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-attachments h4 svg {
    width: 16px;
    height: 16px;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    gap: 12px;
}

.attachment-icon {
    color: #64748b;
    display: flex;
    align-items: center;
}

.attachment-icon svg {
    width: 16px;
    height: 16px;
}

.attachment-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-size {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.download-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.download-btn:hover {
    background: #2563eb;
}

.moveFolderModal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(10px);
z-index: 10000;
background: rgba(0,0,0,0.5);
}

.addAccountModal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(10px);
z-index: 10000;
background: rgba(0,0,0,0.5);
}

.thia-modal-emailcontent {

    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.compose-modal {
    width: 90%;
    max-width: 800px;
}

.compose-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.compose-header h3 {
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.compose-header h3 svg {
    width: 20px;
    height: 20px;
}

.close-compose,
.close-account,
.close-folder {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-compose:hover,
.close-account:hover,
.close-folder:hover {
    background: rgba(255,255,255,0.3);
}

.close-compose svg,
.close-account svg,
.close-folder svg {
    width: 20px;
    height: 20px;
}

#composeForm {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.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;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.5;
}

.compose-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    padding: 6px;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.format-btn {
    background: white;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.format-btn:hover {
    background: #f3f4f6;
}

.format-btn svg {
    width: 14px;
    height: 14px;
}

.attachments-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attach-btn {
    background: #f8fafc;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    transition: all 0.2s;
}

.attach-btn:hover {
    background: #f1f5f9;
}

.attach-btn svg {
    width: 16px;
    height: 16px;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachments-list .attachment-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    gap: 8px;
}

.remove-attachment {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.remove-attachment:hover {
    background: #fee2e2;
}

.remove-attachment svg {
    width: 14px;
    height: 14px;
}

.compose-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.compose-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.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;
}

.compose-btn svg {
    width: 16px;
    height: 16px;
}

/* Account Modal */
.account-modal {
    width: 90%;
    max-width: 500px;
}

.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;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

#addAccountForm {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}



.password-field {
    position: relative;
}

.password-field input {
    padding-right: 40px;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toggle-password:hover {
    background: #f1f5f9;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.form-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.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;
}

/* Folder Modal */
.folder-modal {
    width: 90%;
    max-width: 300px;
	background: rgba(255,255,255,0.5);
border: 1px solid rgba(255,255,255,0.3);
backdrop-filter: blur(10px);
}

.folder-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-header h3 {
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.folder-list {
    padding: 20px;
}

.folder-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    color: #fff;
    transition: all 0.2s;
    gap: 12px;
}

.folder-option:hover {
    background: rgba(255,255,255,0.3);
}

.folder-option svg {
    width: 16px;
    height: 16px;
}

/* Email Dialog */
.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;
}

.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;
    gap: 12px;
}

.dialog-icon {
    display: flex;
    align-items: center;
}

.dialog-icon svg {
    width: 24px;
    height: 24px;
}

.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);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
.email-sidebar::-webkit-scrollbar,
.email-list::-webkit-scrollbar,
.email-content::-webkit-scrollbar,
#composeForm::-webkit-scrollbar,
#addAccountForm::-webkit-scrollbar {
    width: 8px;
}

.email-sidebar::-webkit-scrollbar-track,
.email-list::-webkit-scrollbar-track,
.email-content::-webkit-scrollbar-track,
#composeForm::-webkit-scrollbar-track,
#addAccountForm::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.email-sidebar::-webkit-scrollbar-thumb,
.email-list::-webkit-scrollbar-thumb,
.email-content::-webkit-scrollbar-thumb,
#composeForm::-webkit-scrollbar-thumb,
#addAccountForm::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.email-sidebar::-webkit-scrollbar-thumb:hover,
.email-list::-webkit-scrollbar-thumb:hover,
.email-content::-webkit-scrollbar-thumb:hover,
#composeForm::-webkit-scrollbar-thumb:hover,
#addAccountForm::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 1200px) {
    .email-list-header,
    .email-item {
        grid-template-columns: 40px 150px 1fr 120px 80px;
    }
}

@media (max-width: 768px) {
    .email-layout {
        flex-direction: column;
    }
    
    .email-sidebar {
        width: 100%;
        max-height: 200px;
    }
    
    .email-list-header,
    .email-item {
        grid-template-columns: 40px 1fr 80px;
    }
    
    .email-subject {
        display: none;
    }
    
    .email-actions-header {
        display: none;
    }
    
    .compose-modal {
        width: 95%;
        height: 90vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Utility */
.no-accounts {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}

.deleting {
    opacity: 0.5;
    transition: opacity 0.3s;
}

/* Ensure SVG icons are properly sized */
button svg {
    pointer-events: none;
}

/* Make sure the email content is scrollable */
.email-content {
    display: flex;
    flex-direction: column;
}

.email-body-container {
    flex: 1;
    overflow-y: auto;
}
/* Trash specific styles */
.trash-folder .email-item {
    background-color: #fef2f2 !important;
    border-left: 4px solid #ef4444;
}

.trash-folder .email-item:hover {
    background-color: #fee2e2 !important;
}

.trash-folder .email-item.unread {
    background-color: #fef2f2 !important;
}

.trash-folder .email-item.unread:hover {
    background-color: #fee2e2 !important;
}

.trash-folder .email-sender::before {
    content: "??? ";
    margin-right: 5px;
    font-size: 12px;
}

/* Deleted email indicator */
.email-item[data-deleted="true"] {
    opacity: 0.8;
    position: relative;
}

.email-item[data-deleted="true"]::after {
    content: "Deleted";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Move modal styling */
.folder-modal .folder-option[data-folder="trash"] {
    color: #dc2626;
    font-weight: 600;
}

.folder-modal .folder-option[data-folder="trash"]:hover {
    background: #fee2e2;
}