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

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #f59e0b;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gray-lighter: #f1f5f9;
    --white: #ffffff;
    --success: #059669;
    --danger: #dc2626;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.5;
    font-size: 14px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    border-radius: 50%;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
}

.logo img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-login,
.btn-send,
.btn-save {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover,
.btn-send:hover,
.btn-save:hover {
    background: var(--primary-dark);
}

.btn-login:active,
.btn-send:active,
.btn-save:active {
    transform: scale(0.98);
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
    border-left: 3px solid var(--danger);
    font-weight: 500;
    font-size: 13px;
}

.success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
    border-left: 3px solid var(--success);
    font-weight: 500;
    font-size: 13px;
}

.container {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}

.sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    padding: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.sidebar::before {
    display: none;
}

.logo-sidebar {
    text-align: center;
    padding: 24px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-sidebar img {
    width: 100%;
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mail-nav {
    padding: 12px 16px;
    flex: 1;
    overflow-y: auto;
}

/* Quick Actions Dashboard */
.quick-actions-dashboard {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-actions-dashboard::-webkit-scrollbar {
    display: none;
}

.quick-actions-dashboard .quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-actions-dashboard .quick-action-btn:hover {
    background: #f9fafb;
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    transform: none;
    box-shadow: none;
}

.quick-actions-dashboard .quick-action-btn svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.quick-actions-dashboard .quick-action-btn:hover svg {
    color: #3b82f6;
}

.quick-actions-dashboard .quick-action-btn span {
    line-height: 1;
}

.kurulum-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    left: auto;
    transform: none;
    background: #dc2626;
    color: #ffffff;
    font-size: 7px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    line-height: 1 !important;
}

[data-theme="dark"] .quick-actions-dashboard {
    background: #1f2937;
    border-bottom-color: #374151;
}

[data-theme="dark"] .quick-actions-dashboard .quick-action-btn {
    color: #9ca3af;
}

[data-theme="dark"] .quick-actions-dashboard .quick-action-btn:hover {
    background: #374151;
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

[data-theme="dark"] .quick-actions-dashboard .quick-action-btn svg {
    color: #6b7280;
}

[data-theme="dark"] .quick-actions-dashboard .quick-action-btn:hover svg {
    color: #60a5fa;
}


.user-info-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
}

.user-info-footer .user-email {
    margin-bottom: 12px;
}

.user-info-footer .user-email p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    line-height: 1.4;
}

.user-info-footer .btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.user-info-footer .btn-logout:hover {
    background: var(--danger);
}

.mail-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.mail-nav a .badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.mail-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

#kurulumMenu {
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

#kurulumMenu a {
    padding: 8px 12px;
    font-size: 12px;
    opacity: 0.85;
}

#kurulumMenu a:hover {
    opacity: 1;
}

.mail-nav a.active {
    background: var(--primary-light);
    color: white;
}

.btn-compose {
    background: var(--success) !important;
    color: white !important;
    margin-bottom: 16px !important;
    text-align: center;
    font-weight: 600 !important;
    justify-content: center !important;
}

.btn-compose:hover {
    background: #047857 !important;
}

.content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    background: #f8fafc;
    margin-left: 260px;
}

.mail-list h2,
.compose-mail h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 20px;
    font-weight: 600;
    padding: 24px 24px 0;
}

.mail-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}

.mail-list-header h2 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.mail-actions-toolbar {
    display: flex;
    gap: 6px;
}

.btn-delete-selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-delete-selected:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.btn-delete-selected svg {
    width: 14px;
    height: 14px;
}

.btn-delete-single {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    background: transparent;
    color: #9ca3af;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-delete-single:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.btn-delete-single svg {
    width: 13px;
    height: 13px;
}

.mail-checkbox {
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: #3b82f6;
}

#selectAll {
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: #3b82f6;
}

.mail-list table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.mail-list th {
    background: #ffffff;
    color: #6b7280;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid #e5e7eb;
}

.mail-list th:first-child {
    width: 36px;
    text-align: center;
    padding: 10px 8px;
}

.mail-list th:nth-child(2) {
    width: 38%;
}

.mail-list th:nth-child(3) {
    width: 22%;
}

.mail-list th:nth-child(4) {
    width: 8%;
    text-align: center;
}

.mail-list th:nth-child(5) {
    width: 18%;
}

.mail-list th:nth-child(6) {
    width: 50px;
    text-align: center;
    padding: 10px 8px;
}

.mail-list td:first-child {
    text-align: center;
    padding: 10px 8px;
}

.mail-list td:nth-child(2) {
    font-weight: 500;
}

.mail-list td:nth-child(2) {
    font-weight: 500;
}

.mail-list td:nth-child(3) {
    color: #6b7280;
    font-size: 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-list td:nth-child(4) {
    text-align: center;
    width: 8%;
    padding: 10px 8px;
}

.mail-list td:nth-child(5) {
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
}

.mail-list td:nth-child(6) {
    text-align: center;
    padding: 10px 8px;
}

.mail-list td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #374151;
    vertical-align: middle;
}

.td-attachment {
    text-align: center;
}

.attachment-icon {
    color: #9ca3af;
    cursor: default;
    display: inline-block;
    vertical-align: middle;
    transition: var(--transition);
    width: 14px;
    height: 14px;
}

.mail-list tr:hover .attachment-icon {
    color: #6b7280;
}

.mail-list tr.unread .attachment-icon {
    color: #6b7280;
}

.mail-list tr:last-child td {
    border-bottom: none;
}

.mail-list tr:hover {
    background: #fafbfc;
}

.mail-list tr.unread {
    background: #f0f9ff;
}

.mail-list tr.unread td:first-child {
    font-weight: 600;
}

.mail-list tr.unread:hover {
    background: #e0f2fe;
}

.mail-list tr.active {
    background: #dbeafe;
    border-left: 3px solid var(--primary);
}

.mail-list tr.active td {
    font-weight: 600;
}

.mail-list tr.active td:first-child {
    padding-left: 13px;
}

.mail-list a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.mail-list a:hover {
    color: var(--primary);
}

.mail-list tr.unread a {
    font-weight: 600;
}

.compose-mail form {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.compose-mail .form-group {
    margin-bottom: 16px;
}

.compose-mail .form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compose-mail .form-group input,
.compose-mail .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 13px;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.compose-mail .form-group input:focus,
.compose-mail .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.compose-mail .form-group textarea {
    min-height: 300px;
    resize: vertical;
    line-height: 1.6;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    flex-wrap: wrap;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-btn:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
}

.toolbar-btn:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

.toolbar-btn svg {
    width: 14px;
    height: 14px;
}

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

.toolbar-select {
    height: 28px;
    padding: 0 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-select:hover {
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #374151;
}

.toolbar-select:focus {
    outline: none;
    border-color: #d1d5db;
    background: #f9fafb;
}

.color-picker-wrapper {
    position: relative;
}

.color-palette {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    z-index: 1000;
}

.color-option {
    width: 24px;
    height: 24px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #3b82f6;
}

.color-option:active {
    transform: scale(1.05);
}

.message-editor {
    width: 100%;
    min-height: 300px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 6px 6px;
    font-size: 13px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    transition: var(--transition);
    color: #374151;
}

.message-editor:focus {
    outline: none;
    border-color: #d1d5db;
}

.message-editor:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
    font-size: 13px;
}

.message-editor img {
    max-width: 200px;
    height: auto;
    display: block;
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #f9fafb;
    padding: 4px;
}

.message-editor br {
    line-height: 1.6;
}

.mail-view,
.signature-settings {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.signature-settings .form-group {
    margin-bottom: 16px;
}

.signature-settings .form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signature-settings .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 13px;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.signature-settings .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-lighter);
    color: var(--gray);
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.btn-back:hover {
    background: var(--gray-light);
    color: var(--dark);
    border-color: var(--gray);
}

.mail-header {
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 24px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px;
    border-radius: 12px;
}

.mail-header h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 24px;
    font-weight: 700;
}

.mail-header p {
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 14px;
}

.mail-header p strong {
    color: var(--dark);
    font-weight: 600;
}

.mail-body {
    line-height: 1.8;
    color: var(--dark);
    font-size: 15px;
    padding: 20px;
}

small {
    display: block;
    margin-top: 8px;
    color: var(--gray);
    font-size: 13px;
}

/* Split View Styles */
.split-view {
    display: flex;
    gap: 0;
    height: calc(100vh - 0px);
}

.mail-list-panel {
    flex: 0 0 400px;
    overflow-y: auto;
    background: white;
    border-right: 1px solid var(--gray-light);
}

.mail-view-panel {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.mail-detail {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mail-detail-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-light);
    background: white;
    position: relative;
}

.btn-close {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 12px;
    background: var(--gray-lighter);
    color: var(--gray);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-close:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.mail-detail-header h2 {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    padding-right: 80px;
    line-height: 1.4;
}

.mail-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.mail-meta p {
    margin: 0;
    color: var(--gray);
    font-size: 13px;
}

.mail-meta p strong {
    color: var(--dark);
    font-weight: 600;
    min-width: 70px;
    display: inline-block;
}

.mail-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    background: white;
    color: var(--dark);
}

.btn-action:hover {
    background: var(--gray-lighter);
    border-color: var(--gray);
}

.btn-reply:hover {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-forward:hover {
    background: #f0fdf4;
    border-color: var(--success);
    color: var(--success);
}

.mail-detail-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    line-height: 1.6;
    color: var(--dark);
    font-size: 14px;
    background: #fafbfc;
}

.no-mail-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    font-size: 14px;
    background: #fafbfc;
}

/* Mail Compose Inline */
.mail-compose-inline {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
}

.compose-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-light);
    background: #fafbfc;
    position: relative;
}

.compose-header h2 {
    margin: 0;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
    padding-right: 80px;
}

.reply-form {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: white;
}

.reply-form .form-group {
    margin-bottom: 16px;
}

.reply-form .form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reply-form .form-group input,
.reply-form .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 13px;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.reply-form .form-group input:focus,
.reply-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.reply-form .form-group textarea {
    min-height: 300px;
    resize: vertical;
    line-height: 1.6;
}

.reply-form .editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    flex-wrap: wrap;
}

.reply-form .message-editor {
    width: 100%;
    min-height: 300px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 6px 6px;
    font-size: 13px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    transition: var(--transition);
    color: #374151;
}

.reply-form .message-editor:focus {
    outline: none;
    border-color: #d1d5db;
}

.reply-form .message-editor:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
    font-size: 13px;
}

.reply-form .message-editor img {
    max-width: 200px;
    height: auto;
    display: block;
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #f9fafb;
    padding: 4px;
}

.reply-form .message-editor br {
    line-height: 1.6;
}

.file-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 13px;
    background: #fafbfc;
    cursor: pointer;
    transition: var(--transition);
}

.file-input:hover {
    border-color: var(--primary);
    background: #f0f9ff;
}

.file-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--gray);
    font-size: 11px;
}

.reply-form .btn-send {
    width: auto;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.reply-form .btn-send:hover {
    background: var(--primary-dark);
}

/* Signature Preview in Forms */
.signature-image-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    pointer-events: none;
}

.signature-image-preview img {
    max-width: 200px;
    height: auto;
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: white;
}

.signature-preview-box {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    pointer-events: none;
}

.signature-divider {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 8px;
    font-weight: 500;
}

.signature-text {
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
    white-space: pre-wrap;
}

.signature-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 4px;
    background: white;
}

/* Success/Error Messages */
.message-success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    border-left: 3px solid var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    border-left: 3px solid var(--danger);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mail Attachments */
.mail-attachments {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.mail-attachments h3 {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.attachment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.attachment-item:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.attachment-item svg {
    flex-shrink: 0;
    color: #9ca3af;
    width: 18px;
    height: 18px;
}

.attachment-item:hover svg {
    color: #6b7280;
}

.attachment-preview {
    flex-shrink: 0;
    width: 300px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.attachment-item.attachment-image {
    padding: 8px;
}

.attachment-item.attachment-image:hover .attachment-preview {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attachment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.attachment-name {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-size {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 400;
}

.download-icon {
    flex-shrink: 0;
    opacity: 0.4;
    transition: var(--transition);
    width: 14px;
    height: 14px;
}

.attachment-item:hover .download-icon {
    opacity: 1;
    color: var(--primary);
}

/* Mail list içinde aktif mail vurgulama */
.mail-list table tr.active {
    background: linear-gradient(90deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid var(--primary);
}

.mail-list table tr.active td {
    font-weight: 600;
}

/* Contact Autocomplete Styles */
.contact-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.contact-suggestion-item {
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-suggestion-item:last-child {
    border-bottom: none;
}

.contact-suggestion-item:hover {
    background: #f9fafb;
    border-left: 3px solid #3b82f6;
    padding-left: 11px;
}

.contact-suggestion-item::before {
    content: '👤';
    font-size: 16px;
    opacity: 0.6;
}

.contact-suggestion-item strong {
    display: block;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-suggestion-item small {
    color: #6b7280;
    font-size: 11px;
    display: block;
}

.save-contact-suggestion {
    margin-top: 8px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-contact-suggestion::before {
    content: 'ℹ️';
    font-size: 14px;
}

.save-contact-suggestion span {
    font-weight: 600;
    color: #1f2937;
}

.save-contact-suggestion a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.save-contact-suggestion a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.save-contact-form {
    margin-top: 10px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.save-contact-form-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.save-contact-form-header svg {
    width: 18px;
    height: 18px;
    color: #3b82f6;
}

.save-contact-form-header span {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.save-contact-form-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.save-contact-form-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.save-contact-form-input-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.save-contact-form input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.15s ease;
    background: #f9fafb;
}

.save-contact-form input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.save-contact-form input::placeholder {
    color: #9ca3af;
}

.save-contact-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.save-contact-form .btn-save-contact {
    flex: 1;
    padding: 9px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.save-contact-form .btn-save-contact:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.25);
}

.save-contact-form .btn-save-contact:active {
    transform: translateY(0);
}

.save-contact-form .btn-cancel-contact {
    flex: 1;
    padding: 9px 16px;
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.save-contact-form .btn-cancel-contact:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

.save-contact-form .btn-cancel-contact:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 1024px) {
    .split-view {
        flex-direction: column;
    }
    
    .mail-list-panel {
        flex: 0 0 auto;
        max-height: 40vh;
    }
    
    .mail-view-panel {
        flex: 1;
    }
}


/* Dark Mode Styles */
[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #93c5fd;
    --secondary: #fbbf24;
    --dark: #f9fafb;
    --dark-light: #e5e7eb;
    --gray: #9ca3af;
    --gray-light: #374151;
    --gray-lighter: #1f2937;
    --white: #111827;
    --success: #34d399;
    --danger: #f87171;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background: #0f172a;
    color: #e5e7eb;
}

[data-theme="dark"] .login-container {
    background: #0f172a;
}

[data-theme="dark"] .login-box {
    background: rgba(31, 41, 55, 0.98);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .logo {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .container {
    background: #0f172a;
}

[data-theme="dark"] .sidebar {
    background: #1e293b;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .logo-sidebar {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .content {
    background: #0f172a;
}

[data-theme="dark"] .compose-mail form,
[data-theme="dark"] .mail-view,
[data-theme="dark"] .signature-settings {
    background: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mail-list table {
    background: #1f2937;
}

[data-theme="dark"] .mail-list th {
    background: #1f2937;
    color: #9ca3af;
    border-bottom: 1px solid #374151;
}

[data-theme="dark"] .mail-list td {
    border-bottom: 1px solid #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .mail-list tr:hover {
    background: #374151;
}

[data-theme="dark"] .mail-list tr.unread {
    background: #1e3a5f;
}

[data-theme="dark"] .mail-list tr.unread:hover {
    background: #1e40af;
}

[data-theme="dark"] .mail-list tr.active {
    background: linear-gradient(90deg, #1e3a5f 0%, #1e40af 100%);
}

[data-theme="dark"] .mail-list-header {
    background: #1f2937;
    border-bottom: 1px solid #374151;
}

[data-theme="dark"] .btn-delete-selected,
[data-theme="dark"] .btn-delete-single {
    background: #1f2937;
    color: #9ca3af;
    border-color: #374151;
}

[data-theme="dark"] .btn-delete-selected:hover,
[data-theme="dark"] .btn-delete-single:hover {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

[data-theme="dark"] .editor-toolbar {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .toolbar-btn:hover {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .toolbar-select {
    background: #1f2937;
    color: #9ca3af;
}

[data-theme="dark"] .toolbar-select:hover {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .message-editor {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .message-editor:empty:before {
    color: #6b7280;
}

[data-theme="dark"] .color-palette {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .mail-detail-header,
[data-theme="dark"] .compose-header {
    background: #1f2937;
    border-bottom: 1px solid #374151;
}

[data-theme="dark"] .mail-detail-body {
    background: #111827;
}

[data-theme="dark"] .no-mail-selected {
    background: #111827;
}

[data-theme="dark"] .btn-close,
[data-theme="dark"] .btn-back {
    background: #374151;
    color: #9ca3af;
    border-color: #4b5563;
}

[data-theme="dark"] .btn-close:hover,
[data-theme="dark"] .btn-back:hover {
    background: #4b5563;
    color: #e5e7eb;
}

[data-theme="dark"] .btn-action {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .btn-action:hover {
    background: #374151;
}

[data-theme="dark"] .mail-attachments {
    background: #1f2937;
    border-bottom: 1px solid #374151;
}

[data-theme="dark"] .attachment-item {
    background: #111827;
    border-color: #374151;
}

[data-theme="dark"] .attachment-item:hover {
    background: #1f2937;
    border-color: #4b5563;
}

[data-theme="dark"] .contact-suggestions {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .contact-suggestion-item {
    border-bottom: 1px solid #374151;
}

[data-theme="dark"] .contact-suggestion-item:hover {
    background: #374151;
}

[data-theme="dark"] .contact-suggestion-item strong {
    color: #e5e7eb;
}

[data-theme="dark"] .save-contact-suggestion {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .save-contact-form {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .save-contact-form input {
    background: #111827;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .error {
    background: #7f1d1d;
    color: #fca5a5;
    border-left-color: #991b1b;
}

[data-theme="dark"] .success {
    background: #064e3b;
    color: #6ee7b7;
    border-left-color: #059669;
}

[data-theme="dark"] .file-input {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .file-input:hover {
    background: #374151;
    border-color: #60a5fa;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3b82f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 24px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

[data-theme="dark"] .theme-toggle {
    background: #1f2937;
    border: 2px solid #374151;
}

/* Login page theme toggle */
.login-container .theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: auto;
}




/* Email Tag/Chip Styles */
.email-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    min-height: 38px;
    cursor: text;
    transition: border-color 0.2s ease;
}
.email-tags-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}
.email-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    font-size: 12px;
    color: #1e40af;
    max-width: 220px;
    white-space: nowrap;
}
.email-tag .tag-label {
    overflow: hidden;
    text-overflow: ellipsis;
}
.email-tag .tag-remove {
    cursor: pointer;
    color: #93c5fd;
    font-size: 14px;
    line-height: 1;
    padding: 0 1px;
    border-radius: 2px;
    transition: color 0.15s;
    flex-shrink: 0;
}
.email-tag .tag-remove:hover {
    color: #ef4444;
}
.email-tags-wrapper input.tag-input {
    flex: 1;
    min-width: 140px;
    border: none;
    outline: none;
    padding: 4px 0;
    font-size: 13px;
    background: transparent;
}


/* Context Menu (Sağ Tık Menü) */
.context-menu {
    position: fixed;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    min-width: 230px;
    padding: 5px;
    font-size: 13px;
    color: #1f2937;
    user-select: none;
    backdrop-filter: blur(12px);
    animation: ctxFadeIn 0.12s ease-out;
}
@keyframes ctxFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    position: relative;
    white-space: nowrap;
    border-radius: 6px;
    font-weight: 450;
    letter-spacing: -0.01em;
}
.context-menu-item:hover {
    background: #3b82f6;
    color: #fff;
}
.context-menu-item:hover svg {
    stroke: #fff;
}
.context-menu-item:hover span[style*="color:#ef4444"] {
    color: #fff !important;
}
.context-menu-item:hover svg path,
.context-menu-item:hover svg line,
.context-menu-item:hover svg circle {
    stroke: #fff;
}
.context-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.context-menu-item:hover svg {
    opacity: 1;
}
.context-menu-item .submenu-arrow {
    margin-left: auto;
    opacity: 0.4;
}
.context-menu-item:hover .submenu-arrow {
    opacity: 1;
}
.context-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 5px;
}
.context-menu-submenu {
    position: relative;
}
.context-submenu {
    position: fixed;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    min-width: 190px;
    padding: 5px;
    z-index: 10001;
    max-height: 320px;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    animation: ctxFadeIn 0.1s ease-out;
}
.context-submenu .context-menu-item {
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 400;
}
.context-submenu::-webkit-scrollbar {
    width: 5px;
}
.context-submenu::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

/* Dark mode context menu */
[data-theme="dark"] .context-menu,
[data-theme="dark"] .context-submenu {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
[data-theme="dark"] .context-menu-item:hover {
    background: #3b82f6;
    color: #fff;
}
[data-theme="dark"] .context-menu-divider {
    background: #334155;
}
[data-theme="dark"] .context-submenu::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Context menu aktif satır */
#mailListForm tbody tr.ctx-active {
    background: #eff6ff !important;
    outline: 1px solid #bfdbfe;
}
[data-theme="dark"] #mailListForm tbody tr.ctx-active {
    background: #1e3a5f !important;
    outline: 1px solid #2563eb;
}


/* Flagged (Önemli) mail */
.flagged-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    flex-shrink: 0;
}
#mailListForm tbody tr.flagged {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}
#mailListForm tbody tr.flagged:hover {
    background: #fef3c7;
}
[data-theme="dark"] #mailListForm tbody tr.flagged {
    background: #292524;
    border-left-color: #f59e0b;
}
[data-theme="dark"] #mailListForm tbody tr.flagged:hover {
    background: #44403c;
}
