/* ArslanyMail - Responsive CSS */

/* Force Light Mode - Disable Auto Dark Mode Detection */
html {
    color-scheme: light only !important;
}

body {
    color-scheme: light only !important;
}

/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Universal Inter Font Application - Apply to EVERYTHING */
*,
*::before,
*::after,
html,
body,
div, span, p, h1, h2, h3, h4, h5, h6,
a, em, strong, small, sub, sup,
ul, ol, li, dl, dt, dd,
table, tr, td, th, tbody, thead, tfoot,
form, input, textarea, select, button, label,
section, article, aside, header, footer, nav,
code, pre, kbd, samp, var,
blockquote, cite, q {
    font-family: 'Inter', sans-serif !important;
}

/* Preserve Font Awesome Icons - Override Universal Font */
i[class*="fa-"],
i[class^="fa "],
i[class^="fas "],
i[class^="far "],
i[class^="fab "],
i[class^="fal "],
i[class^="fad "],
i[class^="fass "],
i[class^="fasr "],
i[class^="fasl "],
.fa,
.fas,
.far,
.fab,
.fal,
.fad,
.fass,
.fasr,
.fasl,
[class*="fa-"]:before,
[class*="fa-"]:after,
[class^="fa "]:before,
[class^="fa "]:after,
[class^="fas "]:before,
[class^="fas "]:after,
[class^="far "]:before,
[class^="far "]:after,
[class^="fab "]:before,
[class^="fab "]:after,
[class^="fal "]:before,
[class^="fal "]:after,
[class^="fad "]:before,
[class^="fad "]:after {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Specific Font Awesome Weight Classes */
.far,
[class^="far "],
i[class^="far "] {
    font-weight: 400 !important;
}

.fab,
[class^="fab "],
i[class^="fab "] {
    font-weight: 400 !important;
}

.fal,
[class^="fal "],
i[class^="fal "] {
    font-weight: 300 !important;
}

.fas,
[class^="fas "],
i[class^="fas "],
.fa,
[class^="fa "],
i[class^="fa "] {
    font-weight: 900 !important;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #edf8ff;
}

.login-box {
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    background: rgba(0, 149, 255, 0.08);
    border: 1px solid rgba(0, 149, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 149, 255, 0.1);
}

.logo {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
}

.login-subtitle {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #0095ff45;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    outline: none;
    background: white !important;
    background-color: white !important;
    box-sizing: border-box;
}

.form-input:-webkit-autofill {
    background: white !important;
    background-color: white !important;
    box-shadow: 0 5px 20px rgba(0, 149, 255, 0.1);
    border: 1px solid rgb(0 149 255 / 30%);
}

.form-input:focus {
    border-color: #0095FF;
}

/* Form input display (read-only display field) */
.form-input-display {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    color: #6b7280;
    box-sizing: border-box;
    cursor: default;
}

/* Password input container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 50px !important; /* Space for toggle button */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    z-index: 2;
}

.password-toggle:hover {
    color: #0095FF;
    background: rgba(0, 149, 255, 0.1);
}

.password-toggle:focus {
    outline: none;
    color: #0095FF;
    background: rgba(0, 149, 255, 0.1);
}

.password-toggle i {
    font-size: 14px;
}

.btn-primary {
    width: 100%;
    background: #0095FF;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #0077DD;
}

.signup-link {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.signup-link a {
    color: #0095FF;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: center;
    margin-bottom: 20px;
}

.forgot-password-link a {
    color: #0095FF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password-link a:hover {
    text-decoration: underline;
    color: #0077CC;
}

/* Login Footer inside login box */
.login-footer {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 149, 255, 0.15);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0095FF;
    text-decoration: underline;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}

/* Mobile responsive for login footer */
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }

    .login-box {
        padding: 20px;
    }

    .login-footer {
        padding-top: 20px;
    }

    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
}

.footer {
    text-align: center;
    color: white;
    font-size: 14px;
}

.footer a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
}

.footer a:hover {
    text-decoration: underline;
}

/* Main App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid rgb(229, 231, 235);
    backdrop-filter: blur(20px);
    padding: 0 24px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    right: 0;
    left: 280px;
    z-index: 100;
    transition: left 0.3s;
    box-sizing: border-box;
    min-height: 65px;
}

.header.sidebar-collapsed {
    left: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.sidebar-toggle {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
}

.sidebar-toggle:hover {
    background: #e2e8f0;
    color: #0095FF;
}

.page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    padding-left: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Professional Header Actions */
.header-action {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 18px;
    flex-shrink: 0;
}

.header-action:hover {
    background: #e2e8f0;
    color: #0095FF;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Professional Profile Menu */
.header-profile {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0095FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.header-profile:hover .profile-avatar {
    box-shadow: 0 0 0 2px rgba(0, 149, 255, 0.1);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    min-width: 260px;
    max-width: 280px;
    width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    cursor: default;
    overflow: hidden;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    margin-top: 8px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 36px;
}

.profile-header:hover {
    background: rgba(0, 149, 255, 0.15);
}

.profile-divider2 {
    height: 1px;
    background: #e5e7eb;
    margin-top: 8px;
}

.profile-info {
    cursor: default;
}

.profile-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    cursor: default;
}

.profile-info span {
    font-size: 14px;
    color: #64748b;
    cursor: default;
    display: block;
    margin-top: 2px;
}

.profile-email-info {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.profile-email-info .email-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.profile-header .copy-icon {
    color: #64748b;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.2s ease;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-header:hover .copy-icon {
    opacity: 1;
}

.profile-header i:first-child {
    width: 16px;
    height: 16px;
    font-size: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-menu {
    padding: 8px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 10px;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 36px;
}

.profile-menu-item:hover {
    background: #f3f4f6;
    color: #374151;
}

.profile-menu-item.logout {
    color: #ef4444;
}

.profile-menu-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}



.profile-menu-item i {
    width: 16px;
    height: 16px;
    font-size: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid rgb(229, 231, 235);
    backdrop-filter: blur (20px);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s;
    z-index: 200;
    padding-bottom: 60px;
}

.sidebar.collapsed {
    width: 60px;
}

/* Collapsed sidebar adjustments */
.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .unread-counter {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 16px;
    justify-content: center;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
}

.sidebar.collapsed .logo {
    margin: 0 !important;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px;
    gap: 0;
    position: relative;
}

.sidebar.collapsed .nav-icon {
    margin: 0;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .user-profile {
    padding: 12px;
    justify-content: center;
    align-items: center;
}

.sidebar.collapsed .user-info {
    justify-content: center;
    width: 100%;
    gap: 0;
}

.sidebar.collapsed .user-avatar {
    margin: 0;
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.sidebar.collapsed .user-email {
    display: none;
}

.sidebar-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgb(229, 231, 235);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header a {
    text-decoration: none;
}

.sidebar-close-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: none; /* Hidden by default on all screens */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-close-btn:hover {
    background: #e2e8f0;
    color: #0095FF;
    transform: scale(1);
}

/* Show close button ONLY on mobile when sidebar is open */
@media (max-width: 768px) {
    .sidebar.mobile-open .sidebar-close-btn {
        display: flex; /* Show on mobile when sidebar is open */
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
}

/* Ensure close button is NEVER shown on desktop */
@media (min-width: 769px) {
    .sidebar-close-btn {
        display: none !important; /* Force hide on desktop */
    }
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo {
    width: 32px;
    height: 32px;
    margin: 0;
    font-size: 14px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

/* User Profile Section */
.user-profile {
    padding: 24px;
    border-bottom: 1px solid rgb(229, 231, 235);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0095FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

.user-details h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1a202c;
}

.user-email {
    font-size: 12px;
    color: #0095FF;
    margin-top: 2px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 180px;
    background: rgba(0, 149, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 149, 255, 0.05);
}

.user-email:hover {
    color: #0095FF;
    background: rgba(0, 149, 255, 0.15);
    box-shadow: 0 3px 6px rgba(0, 149, 255, 0.15);
    transform: translateY(-1px);
}

.user-email .email-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    transition: all 0.2s ease;
    color: #0095FF;
    font-weight: 500;
}

.user-email:hover .email-text {
    color: #0077DD;
    font-weight: 600;
}

.user-email .copy-icon {
    font-size: 10px;
    opacity: 0.8;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #0095FF;
}

.user-email:hover .copy-icon {
    opacity: 1;
    color: #0077DD;
    transform: scale(1.1);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 12px 12px;
}

.sidebar.collapsed .sidebar-nav {
    padding: 0 6px;
}

.nav-section-title {
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    line-height: 1.4;
    min-height: 36px;
}

.nav-link span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover {
    background: rgb(243, 244, 246);
    color: #374151;
}

.nav-link.active {
    background: rgba(0, 149, 255, 0.15);
    color: #0095FF;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #0095FF;
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-align: center;
    line-height: 1;
}

/* Unread message counter */
.unread-counter {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    min-width: 18px;
    text-align: right;
    line-height: 1.2;
}

.nav-link.active .unread-counter {
    color: #0095FF;
}

/* Storage Usage - Fixed Footer Style */
.storage-usage-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 280px;
    padding: 6px 20px;
    z-index: 100;
    background: white;
    border: 1px solid rgb(229, 231, 235);
}

.storage-usage-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.storage-usage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 149, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.storage-usage-icon i {
    font-size: 16px;
    color: #0095FF;
}

.storage-usage-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.storage-usage-bar {
    width: 100%;
    height: 6px;
    background: rgb(229, 231, 235);
    border-radius: 3px;
    overflow: hidden;
}

.storage-usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #0095FF 0%, #00d4ff 100%); /* Blue: 0-69% */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Warning level: 70-89% - Orange */
.storage-warning .storage-usage-progress {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

/* Critical level: 90-100% - Red */
.storage-critical .storage-usage-progress {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
    animation: pulse-red 2s infinite;
}

/* Unlimited Storage - Blue Theme */
.storage-unlimited .storage-usage-progress {
    background: linear-gradient(90deg, #0095FF 0%, #00d4ff 100%);
}

/* Pulse animation for full storage */
@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.storage-usage-text {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.2;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
}

/* Storage Level Styles */
.storage-normal .storage-usage-text {
    color: #6b7280; /* Default gray */
}

.storage-normal .storage-usage-icon {
    background: rgba(0, 149, 255, 0.1); /* Blue background */
}

.storage-normal .storage-usage-icon i {
    color: #0095FF; /* Blue icon */
}

.storage-warning .storage-usage-text {
    color: #d97706; /* Orange text */
    font-weight: 600;
}

.storage-warning .storage-usage-icon {
    background: rgba(245, 158, 11, 0.1); /* Orange background */
}

.storage-warning .storage-usage-icon i {
    color: #f59e0b; /* Orange icon */
}

.storage-critical .storage-usage-text {
    color: #dc2626; /* Red text */
    font-weight: 700;
}

.storage-critical .storage-usage-icon {
    background: rgba(239, 68, 68, 0.1); /* Red background */
    animation: pulse-red-icon 2s infinite;
}

.storage-critical .storage-usage-icon i {
    color: #ef4444; /* Red icon */
}

/* Unlimited Storage Styles */
.storage-unlimited .storage-usage-text {
    color: #0095FF; /* Blue text */
    font-weight: 600;
}

.storage-unlimited .storage-usage-icon {
    background: rgba(0, 149, 255, 0.1); /* Blue background */
}

.storage-unlimited .storage-usage-icon i {
    color: #0095FF; /* Blue icon */
    animation: pulse-blue 3s infinite;
}

/* Unlimited storage text */
.storage-usage-text-for-unlimited {
    font-size: 11px;
    color: #0095FF;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
    padding: 6px 0;
}

/* Database Plan Unlimited - Clean Display */
.storage-usage-text-plan-unlimited {
    font-size: 11px;
    color: #0095FF;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.3s ease;
    padding: 6px 0;
}

/* IMAP Real Unlimited - Show Usage Details */
.storage-usage-text-imap-unlimited {
    font-size: 11px;
    color: #0095FF;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.3s ease;
    padding: 6px 0;
}

/* Blue pulse animation for unlimited storage */
@keyframes pulse-blue {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Icon pulse animation for critical storage */
@keyframes pulse-red-icon {
    0%, 100% {
        background: rgba(239, 68, 68, 0.1);
    }
    50% {
        background: rgba(239, 68, 68, 0.2);
    }
}

/* Collapsed sidebar storage adjustments */
.sidebar.collapsed .storage-usage-container {
    width: 60px;
    padding: 8px 8px;
}

.sidebar.collapsed .storage-usage-content {
    gap: 0px;
}

.sidebar.collapsed .storage-usage-icon {
    width: 24px;
    height: 24px;
}

.sidebar.collapsed .storage-usage-icon i {
    font-size: 14px;
}

.sidebar.collapsed .storage-usage-info {
    gap: 4px;
}

.sidebar.collapsed .storage-usage-text {
    display: none;
}

.sidebar.collapsed .storage-usage-text-for-unlimited {
    display: none;
}

.sidebar.collapsed .storage-usage-text-plan-unlimited {
    display: none;
}

.sidebar.collapsed .storage-usage-text-imap-unlimited {
    display: none;
}

.sidebar.collapsed .storage-usage-bar {
    height: 4px;
}

/* Mobile responsive adjustments for fixed storage */
@media (max-width: 768px) {
    .storage-usage-container {
        display: none; /* Hide storage on mobile when sidebar is overlay */
    }
    
    .sidebar.mobile-open .storage-usage-container {
        display: block;
        box-shadow: none;
    }

    .profile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100; /* Below profile menu (z-index: 1000) */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
}

/* Mobile Overlay for Sidebar and Profile Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Mobile Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200; /* Below sidebar (z-index: 1000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Profile Menu Mobile Overlay */
.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100; /* Below profile menu (z-index: 1000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Email Status Indicators */
.spam-indicator {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trash-indicator {
    background: #6b7280;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    margin-top: 64px;
    padding: 16px;
    flex: 1;
    transition: margin-left 0.3s;
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

.main-content.sidebar-collapsed {
    margin-left: 60px;
    width: calc(100% - 60px);
    max-width: calc(100% - 60px);
}

/* Ensure all child elements resize properly */
.main-content.sidebar-collapsed .mail-actions,
.main-content.sidebar-collapsed .email-list,
.main-content.sidebar-collapsed .pagination {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.page-subtitle {
    color: #64748b;
    font-size: 16px;
}

/* Mail Actions */
/* Premium Notice Styles - Modern Design */
.premium-notice {
    background: linear-gradient(135deg, #0095FF 0%, #00d4ff 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 149, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.premium-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.premium-notice:hover::before {
    left: 100%;
}

.premium-notice:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 149, 255, 0.35);
}

.premium-notice i {
    color: #FFD700;
    font-size: 14px;
    animation: gentle-pulse 2s infinite;
}

.premium-notice a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
}

.premium-notice a:hover {
    border-bottom-color: #FFD700;
    text-decoration: none;
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes gentle-pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.mail-actions {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.action-btn {
    padding: 12px;
    border: none;
    background: #f3f4f6;
    border-radius: 30px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    min-height: 30px;
    min-width: 30px;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.action-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.action-btn.primary {
    background: #0095FF;
    color: white;
}

.action-btn.primary:hover {
    background: #0077DD;
}

.action-btn.disabled {
    background: #f9fafb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.action-btn.disabled:hover {
    background: #f9fafb !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Button content should not block clicks */
.action-btn i,
.action-btn span {
    pointer-events: none;
    flex-shrink: 0;
}

/* Mobile touch optimization */
@media screen and (max-width: 1024px) {
    .action-btn {
        padding: 12px;
        min-height: 30px;
        min-width: 30px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .action-btn:active {
        background: #d1d5db;
        transform: scale(0.95);
    }
    
    .action-btn.disabled {
        touch-action: none;
    }
    
    .action-btn.disabled:active {
        background: #f9fafb !important;
        transform: none !important;
    }
}

/* Touch devices specific */
@media (hover: none) and (pointer: coarse) {
    .action-btn {
        padding: 12px;
        min-height: 30px;
        min-width: 30px;
    }
    
    .action-btn:active {
        background: #d1d5db;
        transform: scale(0.95);
        transition: all 0.1s;
    }
}

/* Email List */
.email-list {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    box-shadow: 0 5px 20px rgba(0, 149, 255, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.email-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 149, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    width: 100%;
}

.email-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 149, 255, 0.1);
    transform: translateY(-1px);
    border-color: rgba(0, 149, 255, 0.15);
}

.email-item.unread {
    background: rgba(0, 149, 255, 0.08);
}

.email-item.unread:hover {
    background: #bbe4fd;
    box-shadow: 0 5px 20px rgba(0, 149, 255, 0.1);
    transform: translateY(-1px);
    border-color: rgba(0, 149, 255, 0.15);
}

/* Read/Unread Message Styling */
.email-item .email-sender {
    font-weight: normal;
    color: rgb(107, 114, 128);
}

.email-item .email-subject {
    font-weight: normal;
    color: rgb(107, 114, 128);
}

.email-item.unread .email-sender {
    font-weight: 600;
    color: rgb(17, 24, 39);
}

.email-item.unread .email-subject {
    font-weight: bold;
    color: rgb(17, 24, 39);
}

/* Email View Normal Styling */
.email-view .sender-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.email-view .sender-email {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.email-view .email-subject-view {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
}

.email-checkbox {
    margin-right: 16px;
}

.email-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0095FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 16px;
    text-transform: uppercase;
}

/* Email Avatar Dark Colors - 100 Unique Colors */
.email-avatar.avatar-color-1 { background: #B71C1C; }
.email-avatar.avatar-color-2 { background: #C62828; }
.email-avatar.avatar-color-3 { background: #8B0000; }
.email-avatar.avatar-color-4 { background: #7F1D1D; }
.email-avatar.avatar-color-5 { background: #571515; }
.email-avatar.avatar-color-6 { background: #6D1B19; }
.email-avatar.avatar-color-7 { background: #5A0F0F; }
.email-avatar.avatar-color-8 { background: #A40000; }
.email-avatar.avatar-color-9 { background: #991B1B; }
.email-avatar.avatar-color-10 { background: #D32F2F; }
.email-avatar.avatar-color-11 { background: #BF360C; }
.email-avatar.avatar-color-12 { background: #A13E0C; }
.email-avatar.avatar-color-13 { background: #8D4E2D; }
.email-avatar.avatar-color-14 { background: #6D3B17; }
.email-avatar.avatar-color-15 { background: #5D311A; }
.email-avatar.avatar-color-16 { background: #4E342E; }
.email-avatar.avatar-color-17 { background: #3E2723; }
.email-avatar.avatar-color-18 { background: #5D4037; }
.email-avatar.avatar-color-19 { background: #7B3F00; }
.email-avatar.avatar-color-20 { background: #6F4E37; }
.email-avatar.avatar-color-21 { background: #827717; }
.email-avatar.avatar-color-22 { background: #9E9D24; }
.email-avatar.avatar-color-23 { background: #8C7A00; }
.email-avatar.avatar-color-24 { background: #6B6500; }
.email-avatar.avatar-color-25 { background: #726000; }
.email-avatar.avatar-color-26 { background: #5A5200; }
.email-avatar.avatar-color-27 { background: #7F6A00; }
.email-avatar.avatar-color-28 { background: #6D5E0C; }
.email-avatar.avatar-color-29 { background: #665C00; }
.email-avatar.avatar-color-30 { background: #4B4A00; }
.email-avatar.avatar-color-31 { background: #1B5E20; }
.email-avatar.avatar-color-32 { background: #2E7D32; }
.email-avatar.avatar-color-33 { background: #145A32; }
.email-avatar.avatar-color-34 { background: #0B3D0B; }
.email-avatar.avatar-color-35 { background: #0E4123; }
.email-avatar.avatar-color-36 { background: #0C3B2E; }
.email-avatar.avatar-color-37 { background: #164A41; }
.email-avatar.avatar-color-38 { background: #0F5132; }
.email-avatar.avatar-color-39 { background: #0B4228; }
.email-avatar.avatar-color-40 { background: #17402F; }
.email-avatar.avatar-color-41 { background: #0D47A1; }
.email-avatar.avatar-color-42 { background: #1565C0; }
.email-avatar.avatar-color-43 { background: #0A2A6B; }
.email-avatar.avatar-color-44 { background: #102A43; }
.email-avatar.avatar-color-45 { background: #12203F; }
.email-avatar.avatar-color-46 { background: #1A237E; }
.email-avatar.avatar-color-47 { background: #283593; }
.email-avatar.avatar-color-48 { background: #303F9F; }
.email-avatar.avatar-color-49 { background: #2C387E; }
.email-avatar.avatar-color-50 { background: #191970; }
.email-avatar.avatar-color-51 { background: #01579B; }
.email-avatar.avatar-color-52 { background: #014F86; }
.email-avatar.avatar-color-53 { background: #013A63; }
.email-avatar.avatar-color-54 { background: #0B2E4E; }
.email-avatar.avatar-color-55 { background: #0A3D62; }
.email-avatar.avatar-color-56 { background: #0A4F5A; }
.email-avatar.avatar-color-57 { background: #064E40; }
.email-avatar.avatar-color-58 { background: #004D40; }
.email-avatar.avatar-color-59 { background: #00695C; }
.email-avatar.avatar-color-60 { background: #005A57; }
.email-avatar.avatar-color-61 { background: #4A148C; }
.email-avatar.avatar-color-62 { background: #6A1B9A; }
.email-avatar.avatar-color-63 { background: #5E35B1; }
.email-avatar.avatar-color-64 { background: #4527A0; }
.email-avatar.avatar-color-65 { background: #381F6B; }
.email-avatar.avatar-color-66 { background: #2E1A47; }
.email-avatar.avatar-color-67 { background: #5D1452; }
.email-avatar.avatar-color-68 { background: #661A66; }
.email-avatar.avatar-color-69 { background: #732673; }
.email-avatar.avatar-color-70 { background: #800080; }
.email-avatar.avatar-color-71 { background: #AD1457; }
.email-avatar.avatar-color-72 { background: #880E4F; }
.email-avatar.avatar-color-73 { background: #7A1F52; }
.email-avatar.avatar-color-74 { background: #8E3A59; }
.email-avatar.avatar-color-75 { background: #6A1E3A; }
.email-avatar.avatar-color-76 { background: #5A1033; }
.email-avatar.avatar-color-77 { background: #4B0026; }
.email-avatar.avatar-color-78 { background: #660033; }
.email-avatar.avatar-color-79 { background: #800040; }
.email-avatar.avatar-color-80 { background: #99004D; }
.email-avatar.avatar-color-81 { background: #263238; }
.email-avatar.avatar-color-82 { background: #5E35B1; }
.email-avatar.avatar-color-83 { background: #E91E63; }
.email-avatar.avatar-color-84 { background: #00BCD4; }
.email-avatar.avatar-color-85 { background: #333333; }
.email-avatar.avatar-color-86 { background: #3A3A3A; }
.email-avatar.avatar-color-87 { background: #404040; }
.email-avatar.avatar-color-88 { background: #484848; }
.email-avatar.avatar-color-89 { background: #505050; }
.email-avatar.avatar-color-90 { background: #585858; }
.email-avatar.avatar-color-91 { background: #3D2B1F; }
.email-avatar.avatar-color-92 { background: #4B3621; }
.email-avatar.avatar-color-93 { background: #5C4033; }
.email-avatar.avatar-color-94 { background: #3E2C27; }
.email-avatar.avatar-color-95 { background: #4A2C2A; }
.email-avatar.avatar-color-96 { background: #3B2F2F; }
.email-avatar.avatar-color-97 { background: #442F29; }
.email-avatar.avatar-color-98 { background: #9C27B0; }
.email-avatar.avatar-color-99 { background: #5A3A2E; }
.email-avatar.avatar-color-100 { background: #513629; }

.email-content {
    flex: 1;
    min-width: 0;
}

.email-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    min-width: 0;
    gap: 12px;
}

.email-sender {
    font-size: 16px;
    font-weight: 500;
    color: #1a202c;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-date {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

.email-subject {
    color: #374151;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    flex: 1;
    min-width: 0;
}

/* Email Content Wrapper */
.email-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}



/* Email Preview with Ellipsis */
.email-preview {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 4px;
}

/* Email Meta Container */
.email-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}



/* Email View */
.email-view {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.email-view-header {
    padding: 16px;
}

.email-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.sender-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0095FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Sender Avatar Dark Colors - 100 Unique Colors */
.sender-avatar.avatar-color-1 { background: #B71C1C; }
.sender-avatar.avatar-color-2 { background: #C62828; }
.sender-avatar.avatar-color-3 { background: #8B0000; }
.sender-avatar.avatar-color-4 { background: #7F1D1D; }
.sender-avatar.avatar-color-5 { background: #571515; }
.sender-avatar.avatar-color-6 { background: #6D1B19; }
.sender-avatar.avatar-color-7 { background: #5A0F0F; }
.sender-avatar.avatar-color-8 { background: #A40000; }
.sender-avatar.avatar-color-9 { background: #991B1B; }
.sender-avatar.avatar-color-10 { background: #D32F2F; }
.sender-avatar.avatar-color-11 { background: #BF360C; }
.sender-avatar.avatar-color-12 { background: #A13E0C; }
.sender-avatar.avatar-color-13 { background: #8D4E2D; }
.sender-avatar.avatar-color-14 { background: #6D3B17; }
.sender-avatar.avatar-color-15 { background: #5D311A; }
.sender-avatar.avatar-color-16 { background: #4E342E; }
.sender-avatar.avatar-color-17 { background: #3E2723; }
.sender-avatar.avatar-color-18 { background: #5D4037; }
.sender-avatar.avatar-color-19 { background: #7B3F00; }
.sender-avatar.avatar-color-20 { background: #6F4E37; }
.sender-avatar.avatar-color-21 { background: #827717; }
.sender-avatar.avatar-color-22 { background: #9E9D24; }
.sender-avatar.avatar-color-23 { background: #8C7A00; }
.sender-avatar.avatar-color-24 { background: #6B6500; }
.sender-avatar.avatar-color-25 { background: #726000; }
.sender-avatar.avatar-color-26 { background: #5A5200; }
.sender-avatar.avatar-color-27 { background: #7F6A00; }
.sender-avatar.avatar-color-28 { background: #6D5E0C; }
.sender-avatar.avatar-color-29 { background: #665C00; }
.sender-avatar.avatar-color-30 { background: #4B4A00; }
.sender-avatar.avatar-color-31 { background: #1B5E20; }
.sender-avatar.avatar-color-32 { background: #2E7D32; }
.sender-avatar.avatar-color-33 { background: #145A32; }
.sender-avatar.avatar-color-34 { background: #0B3D0B; }
.sender-avatar.avatar-color-35 { background: #0E4123; }
.sender-avatar.avatar-color-36 { background: #0C3B2E; }
.sender-avatar.avatar-color-37 { background: #164A41; }
.sender-avatar.avatar-color-38 { background: #0F5132; }
.sender-avatar.avatar-color-39 { background: #0B4228; }
.sender-avatar.avatar-color-40 { background: #17402F; }
.sender-avatar.avatar-color-41 { background: #0D47A1; }
.sender-avatar.avatar-color-42 { background: #1565C0; }
.sender-avatar.avatar-color-43 { background: #0A2A6B; }
.sender-avatar.avatar-color-44 { background: #102A43; }
.sender-avatar.avatar-color-45 { background: #12203F; }
.sender-avatar.avatar-color-46 { background: #1A237E; }
.sender-avatar.avatar-color-47 { background: #283593; }
.sender-avatar.avatar-color-48 { background: #303F9F; }
.sender-avatar.avatar-color-49 { background: #2C387E; }
.sender-avatar.avatar-color-50 { background: #191970; }
.sender-avatar.avatar-color-51 { background: #01579B; }
.sender-avatar.avatar-color-52 { background: #014F86; }
.sender-avatar.avatar-color-53 { background: #013A63; }
.sender-avatar.avatar-color-54 { background: #0B2E4E; }
.sender-avatar.avatar-color-55 { background: #0A3D62; }
.sender-avatar.avatar-color-56 { background: #0A4F5A; }
.sender-avatar.avatar-color-57 { background: #064E40; }
.sender-avatar.avatar-color-58 { background: #004D40; }
.sender-avatar.avatar-color-59 { background: #00695C; }
.sender-avatar.avatar-color-60 { background: #005A57; }
.sender-avatar.avatar-color-61 { background: #4A148C; }
.sender-avatar.avatar-color-62 { background: #6A1B9A; }
.sender-avatar.avatar-color-63 { background: #5E35B1; }
.sender-avatar.avatar-color-64 { background: #4527A0; }
.sender-avatar.avatar-color-65 { background: #381F6B; }
.sender-avatar.avatar-color-66 { background: #2E1A47; }
.sender-avatar.avatar-color-67 { background: #5D1452; }
.sender-avatar.avatar-color-68 { background: #661A66; }
.sender-avatar.avatar-color-69 { background: #732673; }
.sender-avatar.avatar-color-70 { background: #800080; }
.sender-avatar.avatar-color-71 { background: #AD1457; }
.sender-avatar.avatar-color-72 { background: #880E4F; }
.sender-avatar.avatar-color-73 { background: #7A1F52; }
.sender-avatar.avatar-color-74 { background: #8E3A59; }
.sender-avatar.avatar-color-75 { background: #6A1E3A; }
.sender-avatar.avatar-color-76 { background: #5A1033; }
.sender-avatar.avatar-color-77 { background: #4B0026; }
.sender-avatar.avatar-color-78 { background: #660033; }
.sender-avatar.avatar-color-79 { background: #800040; }
.sender-avatar.avatar-color-80 { background: #99004D; }
.sender-avatar.avatar-color-81 { background: #263238; }
.sender-avatar.avatar-color-82 { background: #5E35B1; }
.sender-avatar.avatar-color-83 { background: #E91E63; }
.sender-avatar.avatar-color-84 { background: #00BCD4; }
.sender-avatar.avatar-color-85 { background: #333333; }
.sender-avatar.avatar-color-86 { background: #3A3A3A; }
.sender-avatar.avatar-color-87 { background: #404040; }
.sender-avatar.avatar-color-88 { background: #484848; }
.sender-avatar.avatar-color-89 { background: #505050; }
.sender-avatar.avatar-color-90 { background: #585858; }
.sender-avatar.avatar-color-91 { background: #3D2B1F; }
.sender-avatar.avatar-color-92 { background: #4B3621; }
.sender-avatar.avatar-color-93 { background: #5C4033; }
.sender-avatar.avatar-color-94 { background: #3E2C27; }
.sender-avatar.avatar-color-95 { background: #4A2C2A; }
.sender-avatar.avatar-color-96 { background: #3B2F2F; }
.sender-avatar.avatar-color-97 { background: #442F29; }
.sender-avatar.avatar-color-98 { background: #9C27B0; }
.sender-avatar.avatar-color-99 { background: #5A3A2E; }
.sender-avatar.avatar-color-100 { background: #513629; }

/* User Avatar Dark Colors - 100 Unique Colors */
.user-avatar.avatar-color-1 { background: #B71C1C; }
.user-avatar.avatar-color-2 { background: #C62828; }
.user-avatar.avatar-color-3 { background: #8B0000; }
.user-avatar.avatar-color-4 { background: #7F1D1D; }
.user-avatar.avatar-color-5 { background: #571515; }
.user-avatar.avatar-color-6 { background: #6D1B19; }
.user-avatar.avatar-color-7 { background: #5A0F0F; }
.user-avatar.avatar-color-8 { background: #A40000; }
.user-avatar.avatar-color-9 { background: #991B1B; }
.user-avatar.avatar-color-10 { background: #D32F2F; }
.user-avatar.avatar-color-11 { background: #BF360C; }
.user-avatar.avatar-color-12 { background: #A13E0C; }
.user-avatar.avatar-color-13 { background: #8D4E2D; }
.user-avatar.avatar-color-14 { background: #6D3B17; }
.user-avatar.avatar-color-15 { background: #5D311A; }
.user-avatar.avatar-color-16 { background: #4E342E; }
.user-avatar.avatar-color-17 { background: #3E2723; }
.user-avatar.avatar-color-18 { background: #5D4037; }
.user-avatar.avatar-color-19 { background: #7B3F00; }
.user-avatar.avatar-color-20 { background: #6F4E37; }
.user-avatar.avatar-color-21 { background: #827717; }
.user-avatar.avatar-color-22 { background: #9E9D24; }
.user-avatar.avatar-color-23 { background: #8C7A00; }
.user-avatar.avatar-color-24 { background: #6B6500; }
.user-avatar.avatar-color-25 { background: #726000; }
.user-avatar.avatar-color-26 { background: #5A5200; }
.user-avatar.avatar-color-27 { background: #7F6A00; }
.user-avatar.avatar-color-28 { background: #6D5E0C; }
.user-avatar.avatar-color-29 { background: #665C00; }
.user-avatar.avatar-color-30 { background: #4B4A00; }
.user-avatar.avatar-color-31 { background: #1B5E20; }
.user-avatar.avatar-color-32 { background: #2E7D32; }
.user-avatar.avatar-color-33 { background: #145A32; }
.user-avatar.avatar-color-34 { background: #0B3D0B; }
.user-avatar.avatar-color-35 { background: #0E4123; }
.user-avatar.avatar-color-36 { background: #0C3B2E; }
.user-avatar.avatar-color-37 { background: #164A41; }
.user-avatar.avatar-color-38 { background: #0F5132; }
.user-avatar.avatar-color-39 { background: #0B4228; }
.user-avatar.avatar-color-40 { background: #17402F; }
.user-avatar.avatar-color-41 { background: #0D47A1; }
.user-avatar.avatar-color-42 { background: #1565C0; }
.user-avatar.avatar-color-43 { background: #0A2A6B; }
.user-avatar.avatar-color-44 { background: #102A43; }
.user-avatar.avatar-color-45 { background: #12203F; }
.user-avatar.avatar-color-46 { background: #1A237E; }
.user-avatar.avatar-color-47 { background: #283593; }
.user-avatar.avatar-color-48 { background: #303F9F; }
.user-avatar.avatar-color-49 { background: #2C387E; }
.user-avatar.avatar-color-50 { background: #191970; }
.user-avatar.avatar-color-51 { background: #01579B; }
.user-avatar.avatar-color-52 { background: #014F86; }
.user-avatar.avatar-color-53 { background: #013A63; }
.user-avatar.avatar-color-54 { background: #0B2E4E; }
.user-avatar.avatar-color-55 { background: #0A3D62; }
.user-avatar.avatar-color-56 { background: #0A4F5A; }
.user-avatar.avatar-color-57 { background: #064E40; }
.user-avatar.avatar-color-58 { background: #004D40; }
.user-avatar.avatar-color-59 { background: #00695C; }
.user-avatar.avatar-color-60 { background: #005A57; }
.user-avatar.avatar-color-61 { background: #4A148C; }
.user-avatar.avatar-color-62 { background: #6A1B9A; }
.user-avatar.avatar-color-63 { background: #5E35B1; }
.user-avatar.avatar-color-64 { background: #4527A0; }
.user-avatar.avatar-color-65 { background: #381F6B; }
.user-avatar.avatar-color-66 { background: #2E1A47; }
.user-avatar.avatar-color-67 { background: #5D1452; }
.user-avatar.avatar-color-68 { background: #661A66; }
.user-avatar.avatar-color-69 { background: #732673; }
.user-avatar.avatar-color-70 { background: #800080; }
.user-avatar.avatar-color-71 { background: #AD1457; }
.user-avatar.avatar-color-72 { background: #880E4F; }
.user-avatar.avatar-color-73 { background: #7A1F52; }
.user-avatar.avatar-color-74 { background: #8E3A59; }
.user-avatar.avatar-color-75 { background: #6A1E3A; }
.user-avatar.avatar-color-76 { background: #5A1033; }
.user-avatar.avatar-color-77 { background: #4B0026; }
.user-avatar.avatar-color-78 { background: #660033; }
.user-avatar.avatar-color-79 { background: #800040; }
.user-avatar.avatar-color-80 { background: #99004D; }
.user-avatar.avatar-color-81 { background: #263238; }
.user-avatar.avatar-color-82 { background: #5E35B1; }
.user-avatar.avatar-color-83 { background: #E91E63; }
.user-avatar.avatar-color-84 { background: #00BCD4; }
.user-avatar.avatar-color-85 { background: #333333; }
.user-avatar.avatar-color-86 { background: #3A3A3A; }
.user-avatar.avatar-color-87 { background: #404040; }
.user-avatar.avatar-color-88 { background: #484848; }
.user-avatar.avatar-color-89 { background: #505050; }
.user-avatar.avatar-color-90 { background: #585858; }
.user-avatar.avatar-color-91 { background: #3D2B1F; }
.user-avatar.avatar-color-92 { background: #4B3621; }
.user-avatar.avatar-color-93 { background: #5C4033; }
.user-avatar.avatar-color-94 { background: #3E2C27; }
.user-avatar.avatar-color-95 { background: #4A2C2A; }
.user-avatar.avatar-color-96 { background: #3B2F2F; }
.user-avatar.avatar-color-97 { background: #442F29; }
.user-avatar.avatar-color-98 { background: #9C27B0; }
.user-avatar.avatar-color-99 { background: #5A3A2E; }
.user-avatar.avatar-color-100 { background: #513629; }

/* Profile Avatar Dark Colors - 100 Unique Colors */
.profile-avatar.avatar-color-1 { background: #B71C1C; }
.profile-avatar.avatar-color-2 { background: #C62828; }
.profile-avatar.avatar-color-3 { background: #8B0000; }
.profile-avatar.avatar-color-4 { background: #7F1D1D; }
.profile-avatar.avatar-color-5 { background: #571515; }
.profile-avatar.avatar-color-6 { background: #6D1B19; }
.profile-avatar.avatar-color-7 { background: #5A0F0F; }
.profile-avatar.avatar-color-8 { background: #A40000; }
.profile-avatar.avatar-color-9 { background: #991B1B; }
.profile-avatar.avatar-color-10 { background: #D32F2F; }
.profile-avatar.avatar-color-11 { background: #BF360C; }
.profile-avatar.avatar-color-12 { background: #A13E0C; }
.profile-avatar.avatar-color-13 { background: #8D4E2D; }
.profile-avatar.avatar-color-14 { background: #6D3B17; }
.profile-avatar.avatar-color-15 { background: #5D311A; }
.profile-avatar.avatar-color-16 { background: #4E342E; }
.profile-avatar.avatar-color-17 { background: #3E2723; }
.profile-avatar.avatar-color-18 { background: #5D4037; }
.profile-avatar.avatar-color-19 { background: #7B3F00; }
.profile-avatar.avatar-color-20 { background: #6F4E37; }
.profile-avatar.avatar-color-21 { background: #827717; }
.profile-avatar.avatar-color-22 { background: #9E9D24; }
.profile-avatar.avatar-color-23 { background: #8C7A00; }
.profile-avatar.avatar-color-24 { background: #6B6500; }
.profile-avatar.avatar-color-25 { background: #726000; }
.profile-avatar.avatar-color-26 { background: #5A5200; }
.profile-avatar.avatar-color-27 { background: #7F6A00; }
.profile-avatar.avatar-color-28 { background: #6D5E0C; }
.profile-avatar.avatar-color-29 { background: #665C00; }
.profile-avatar.avatar-color-30 { background: #4B4A00; }
.profile-avatar.avatar-color-31 { background: #1B5E20; }
.profile-avatar.avatar-color-32 { background: #2E7D32; }
.profile-avatar.avatar-color-33 { background: #145A32; }
.profile-avatar.avatar-color-34 { background: #0B3D0B; }
.profile-avatar.avatar-color-35 { background: #0E4123; }
.profile-avatar.avatar-color-36 { background: #0C3B2E; }
.profile-avatar.avatar-color-37 { background: #164A41; }
.profile-avatar.avatar-color-38 { background: #0F5132; }
.profile-avatar.avatar-color-39 { background: #0B4228; }
.profile-avatar.avatar-color-40 { background: #17402F; }
.profile-avatar.avatar-color-41 { background: #0D47A1; }
.profile-avatar.avatar-color-42 { background: #1565C0; }
.profile-avatar.avatar-color-43 { background: #0A2A6B; }
.profile-avatar.avatar-color-44 { background: #102A43; }
.profile-avatar.avatar-color-45 { background: #12203F; }
.profile-avatar.avatar-color-46 { background: #1A237E; }
.profile-avatar.avatar-color-47 { background: #283593; }
.profile-avatar.avatar-color-48 { background: #303F9F; }
.profile-avatar.avatar-color-49 { background: #2C387E; }
.profile-avatar.avatar-color-50 { background: #191970; }
.profile-avatar.avatar-color-51 { background: #01579B; }
.profile-avatar.avatar-color-52 { background: #014F86; }
.profile-avatar.avatar-color-53 { background: #013A63; }
.profile-avatar.avatar-color-54 { background: #0B2E4E; }
.profile-avatar.avatar-color-55 { background: #0A3D62; }
.profile-avatar.avatar-color-56 { background: #0A4F5A; }
.profile-avatar.avatar-color-57 { background: #064E40; }
.profile-avatar.avatar-color-58 { background: #004D40; }
.profile-avatar.avatar-color-59 { background: #00695C; }
.profile-avatar.avatar-color-60 { background: #005A57; }
.profile-avatar.avatar-color-61 { background: #4A148C; }
.profile-avatar.avatar-color-62 { background: #6A1B9A; }
.profile-avatar.avatar-color-63 { background: #5E35B1; }
.profile-avatar.avatar-color-64 { background: #4527A0; }
.profile-avatar.avatar-color-65 { background: #381F6B; }
.profile-avatar.avatar-color-66 { background: #2E1A47; }
.profile-avatar.avatar-color-67 { background: #5D1452; }
.profile-avatar.avatar-color-68 { background: #661A66; }
.profile-avatar.avatar-color-69 { background: #732673; }
.profile-avatar.avatar-color-70 { background: #800080; }
.profile-avatar.avatar-color-71 { background: #AD1457; }
.profile-avatar.avatar-color-72 { background: #880E4F; }
.profile-avatar.avatar-color-73 { background: #7A1F52; }
.profile-avatar.avatar-color-74 { background: #8E3A59; }
.profile-avatar.avatar-color-75 { background: #6A1E3A; }
.profile-avatar.avatar-color-76 { background: #5A1033; }
.profile-avatar.avatar-color-77 { background: #4B0026; }
.profile-avatar.avatar-color-78 { background: #660033; }
.profile-avatar.avatar-color-79 { background: #800040; }
.profile-avatar.avatar-color-80 { background: #99004D; }
.profile-avatar.avatar-color-81 { background: #263238; }
.profile-avatar.avatar-color-82 { background: #5E35B1; }
.profile-avatar.avatar-color-83 { background: #E91E63; }
.profile-avatar.avatar-color-84 { background: #00BCD4; }
.profile-avatar.avatar-color-85 { background: #333333; }
.profile-avatar.avatar-color-86 { background: #3A3A3A; }
.profile-avatar.avatar-color-87 { background: #404040; }
.profile-avatar.avatar-color-88 { background: #484848; }
.profile-avatar.avatar-color-89 { background: #505050; }
.profile-avatar.avatar-color-90 { background: #585858; }
.profile-avatar.avatar-color-91 { background: #3D2B1F; }
.profile-avatar.avatar-color-92 { background: #4B3621; }
.profile-avatar.avatar-color-93 { background: #5C4033; }
.profile-avatar.avatar-color-94 { background: #3E2C27; }
.profile-avatar.avatar-color-95 { background: #4A2C2A; }
.profile-avatar.avatar-color-96 { background: #3B2F2F; }
.profile-avatar.avatar-color-97 { background: #442F29; }
.profile-avatar.avatar-color-98 { background: #9C27B0; }
.profile-avatar.avatar-color-99 { background: #5A3A2E; }
.profile-avatar.avatar-color-100 { background: #513629; }

/* Large Profile Avatar Dark Colors - 100 Unique Colors */
.user-avatar-large.avatar-color-1 { background: #B71C1C; }
.user-avatar-large.avatar-color-2 { background: #C62828; }
.user-avatar-large.avatar-color-3 { background: #8B0000; }
.user-avatar-large.avatar-color-4 { background: #7F1D1D; }
.user-avatar-large.avatar-color-5 { background: #571515; }
.user-avatar-large.avatar-color-6 { background: #6D1B19; }
.user-avatar-large.avatar-color-7 { background: #5A0F0F; }
.user-avatar-large.avatar-color-8 { background: #A40000; }
.user-avatar-large.avatar-color-9 { background: #991B1B; }
.user-avatar-large.avatar-color-10 { background: #D32F2F; }
.user-avatar-large.avatar-color-11 { background: #BF360C; }
.user-avatar-large.avatar-color-12 { background: #A13E0C; }
.user-avatar-large.avatar-color-13 { background: #8D4E2D; }
.user-avatar-large.avatar-color-14 { background: #6D3B17; }
.user-avatar-large.avatar-color-15 { background: #5D311A; }
.user-avatar-large.avatar-color-16 { background: #4E342E; }
.user-avatar-large.avatar-color-17 { background: #3E2723; }
.user-avatar-large.avatar-color-18 { background: #5D4037; }
.user-avatar-large.avatar-color-19 { background: #7B3F00; }
.user-avatar-large.avatar-color-20 { background: #6F4E37; }
.user-avatar-large.avatar-color-21 { background: #827717; }
.user-avatar-large.avatar-color-22 { background: #9E9D24; }
.user-avatar-large.avatar-color-23 { background: #8C7A00; }
.user-avatar-large.avatar-color-24 { background: #6B6500; }
.user-avatar-large.avatar-color-25 { background: #726000; }
.user-avatar-large.avatar-color-26 { background: #5A5200; }
.user-avatar-large.avatar-color-27 { background: #7F6A00; }
.user-avatar-large.avatar-color-28 { background: #6D5E0C; }
.user-avatar-large.avatar-color-29 { background: #665C00; }
.user-avatar-large.avatar-color-30 { background: #4B4A00; }
.user-avatar-large.avatar-color-31 { background: #1B5E20; }
.user-avatar-large.avatar-color-32 { background: #2E7D32; }
.user-avatar-large.avatar-color-33 { background: #145A32; }
.user-avatar-large.avatar-color-34 { background: #0B3D0B; }
.user-avatar-large.avatar-color-35 { background: #0E4123; }
.user-avatar-large.avatar-color-36 { background: #0C3B2E; }
.user-avatar-large.avatar-color-37 { background: #164A41; }
.user-avatar-large.avatar-color-38 { background: #0F5132; }
.user-avatar-large.avatar-color-39 { background: #0B4228; }
.user-avatar-large.avatar-color-40 { background: #17402F; }
.user-avatar-large.avatar-color-41 { background: #0D47A1; }
.user-avatar-large.avatar-color-42 { background: #1565C0; }
.user-avatar-large.avatar-color-43 { background: #0A2A6B; }
.user-avatar-large.avatar-color-44 { background: #102A43; }
.user-avatar-large.avatar-color-45 { background: #12203F; }
.user-avatar-large.avatar-color-46 { background: #1A237E; }
.user-avatar-large.avatar-color-47 { background: #283593; }
.user-avatar-large.avatar-color-48 { background: #303F9F; }
.user-avatar-large.avatar-color-49 { background: #2C387E; }
.user-avatar-large.avatar-color-50 { background: #191970; }
.user-avatar-large.avatar-color-51 { background: #01579B; }
.user-avatar-large.avatar-color-52 { background: #014F86; }
.user-avatar-large.avatar-color-53 { background: #013A63; }
.user-avatar-large.avatar-color-54 { background: #0B2E4E; }
.user-avatar-large.avatar-color-55 { background: #0A3D62; }
.user-avatar-large.avatar-color-56 { background: #0A4F5A; }
.user-avatar-large.avatar-color-57 { background: #064E40; }
.user-avatar-large.avatar-color-58 { background: #004D40; }
.user-avatar-large.avatar-color-59 { background: #00695C; }
.user-avatar-large.avatar-color-60 { background: #005A57; }
.user-avatar-large.avatar-color-61 { background: #4A148C; }
.user-avatar-large.avatar-color-62 { background: #6A1B9A; }
.user-avatar-large.avatar-color-63 { background: #5E35B1; }
.user-avatar-large.avatar-color-64 { background: #4527A0; }
.user-avatar-large.avatar-color-65 { background: #381F6B; }
.user-avatar-large.avatar-color-66 { background: #2E1A47; }
.user-avatar-large.avatar-color-67 { background: #5D1452; }
.user-avatar-large.avatar-color-68 { background: #661A66; }
.user-avatar-large.avatar-color-69 { background: #732673; }
.user-avatar-large.avatar-color-70 { background: #800080; }
.user-avatar-large.avatar-color-71 { background: #AD1457; }
.user-avatar-large.avatar-color-72 { background: #880E4F; }
.user-avatar-large.avatar-color-73 { background: #7A1F52; }
.user-avatar-large.avatar-color-74 { background: #8E3A59; }
.user-avatar-large.avatar-color-75 { background: #6A1E3A; }
.user-avatar-large.avatar-color-76 { background: #5A1033; }
.user-avatar-large.avatar-color-77 { background: #4B0026; }
.user-avatar-large.avatar-color-78 { background: #660033; }
.user-avatar-large.avatar-color-79 { background: #800040; }
.user-avatar-large.avatar-color-80 { background: #99004D; }
.user-avatar-large.avatar-color-81 { background: #263238; }
.user-avatar-large.avatar-color-82 { background: #5E35B1; }
.user-avatar-large.avatar-color-83 { background: #E91E63; }
.user-avatar-large.avatar-color-84 { background: #00BCD4; }
.user-avatar-large.avatar-color-85 { background: #333333; }
.user-avatar-large.avatar-color-86 { background: #3A3A3A; }
.user-avatar-large.avatar-color-87 { background: #404040; }
.user-avatar-large.avatar-color-88 { background: #484848; }
.user-avatar-large.avatar-color-89 { background: #505050; }
.user-avatar-large.avatar-color-90 { background: #585858; }
.user-avatar-large.avatar-color-91 { background: #3D2B1F; }
.user-avatar-large.avatar-color-92 { background: #4B3621; }
.user-avatar-large.avatar-color-93 { background: #5C4033; }
.user-avatar-large.avatar-color-94 { background: #3E2C27; }
.user-avatar-large.avatar-color-95 { background: #4A2C2A; }
.user-avatar-large.avatar-color-96 { background: #3B2F2F; }
.user-avatar-large.avatar-color-97 { background: #442F29; }
.user-avatar-large.avatar-color-98 { background: #9C27B0; }
.user-avatar-large.avatar-color-99 { background: #5A3A2E; }
.user-avatar-large.avatar-color-100 { background: #513629; }

.sender-details {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sender-details h3 {
    font-size: 16px;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    white-space: normal;
}

.sender-email {
    font-size: 14px;
    color: #64748b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    white-space: normal;
}

.email-date-time {
    font-size: 14px;
    color: #64748b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    white-space: normal;
    flex-shrink: 1;
}

.email-subject-view {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    margin-bottom: 16px;
    white-space: normal;
    width: 100%;
    max-width: 100%;
}

/* PROFESSIONAL EMAIL IFRAME RENDERING */

/* Email Iframe - Complete Email Content Isolation */
.email-iframe {
    /* Complete isolation - no site CSS interference */
    width: 100% !important;
    border: none !important;
    background: white !important;
    min-height: 300px !important;
    
    /* Responsive sizing */
    max-width: 100% !important;
    
    /* Professional styling - NO SHADOW */
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    
    /* Smooth transitions */
    transition: height 0.3s ease !important;
    
    /* Security */
    overflow: hidden !important;
    padding: 0 8px !important;
    
    /* Force Light Mode for Email Content */
    color-scheme: light only !important;
}

/* Container for iframe */
.email-iframe-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
    
    /* Ensure responsive behavior */
    max-width: 100%;
    overflow: hidden;
    
    /* No shadow effect */
    box-shadow: none;
    border-radius: 4px;
}

/* Loading indicator */
.email-iframe-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

/* Mobile responsive iframe */
@media screen and (max-width: 768px) {
    .email-iframe {
        min-height: 300px !important;
    }
    
    .email-iframe-container {
        margin: 15px 0;
        border-radius: 2px;
    }
}

/* No security blocks - allow all links */

/* Force remove all box-shadow from email iframe */
iframe.email-iframe,
.email-iframe,
.email-content-wrapper iframe,
.email-body iframe {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
}

/* Email Content Container - Enhanced for All Email Types */
.email-content-wrapper {
    unicode-bidi: isolate;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    direction: ltr;
    white-space: normal;
    line-height: 1.6;
}

.email-content-wrapper[dir="rtl"] {
    direction: rtl;
}

/* Email Body Wrapping - Universal Support */
.email-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.6;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Enhanced Email Body Content Wrapping */
.email-body * {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
}

/* Plain Text Email Specific Styling */
.email-body.plain-text {
    font-size: 14px;
}

/* HTML Email Enhanced Wrapping */
.email-body.html-content table {
    max-width: 100% !important;
    table-layout: fixed !important;
    word-wrap: break-word !important;
}

.email-body.html-content td,
.email-body.html-content th {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

.email-body.html-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.email-body.html-content a {
    word-break: break-all;
    overflow-wrap: break-word;
    color: #0095FF;
}

/* Email Body Links and Interactive Elements */
.email-body a[href^="blocked:"] {
    color: #999 !important;
    text-decoration: line-through !important;
    pointer-events: none !important;
}

/* Responsive Email Body */
@media (max-width: 768px) {
    .email-content-wrapper {
        padding: 12px 0;
    }
    
    .email-body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .email-body.plain-text {
        font-size: 13px;
    }
}

/* Email View Header Wrapping */
.email-view-header {
    padding: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Forms */
.form-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.card-description {
    color: #64748b;
    font-size: 14px;
}

.empty-state {
    text-align: center;
}

/* Subscription Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.plan-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.plan-card:hover {
    border-color: #0095FF;
    box-shadow: 0 4px 12px rgba(0, 149, 255, 0.15);
}

.plan-card.featured {
    border-color: #0095FF;
    box-shadow: 0 4px 12px rgba(0, 149, 255, 0.15);
}

.plan-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0095FF;
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #0095FF;
    margin-bottom: 16px;
}

.plan-price .currency {
    font-size: 18px;
    font-weight: 500;
}

.plan-period {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.plan-features li {
    padding: 8px 0;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    width: 16px;
    text-align: center;
}

.btn-plan {
    width: 100%;
    padding: 12px;
    background: #0095FF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-plan:hover {
    background: #0077DD;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 250;
        backdrop-filter: blur (20px);
        padding-bottom: 0;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-content {
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        padding-bottom: 30px;
    }
    
    .sidebar-nav {
        flex: 1;
        min-height: 0;
        padding: 12px 8px;
    }
    
    .sidebar-header {
        padding: 16px 20px;
    }

    .user-profile {
        flex-shrink: 0;
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-section {
        margin-bottom: 16px;
    }
    
    .nav-link {
        padding: 12px;
        margin-bottom: 2px;
        border-radius: 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-section-title {
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 600;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    
    .header {
        left: 0;
        padding: 0 16px;
    }
    
    .sidebar-toggle {
        width: 36px;
        height: 36px;
    }
    
    .page-title {
        font-size: 18px;
        max-width: calc(100vw - 200px);
    }
    
    .header-action {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .profile-dropdown {
        min-width: 240px;
        max-width: 260px;
        width: 260px;
        right: -20px;
        margin-right: 16px;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Mail Actions Mobile - Wrap Style */
    .mail-actions {
        padding: 16px;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow: visible;
    }
    
    /* Dropdown mobile adjustments */
    .dropdown-content {
        min-width: 120px;
        max-width: 160px;
        left: 0;
        right: auto;
    }
    
    .action-btn {
        padding: 12px;
        font-size: 14px;
        flex: none;
        min-height: 30px;
        min-width: 30px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.2s;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .action-btn span {
        display: inline;
        font-size: 14px;
        pointer-events: none;
    }
    
    .action-btn i {
        font-size: 14px;
        flex-shrink: 0;
        pointer-events: none;
    }
    
    .action-btn:active {
        background: #d1d5db;
        transform: scale(0.95);
    }
    
    .dropdown {
        position: relative;
        flex: none;
    }
    
    .dropdown-content {
        right: auto;
        left: 0;
        min-width: 180px;
    }
    
    /* Email List Mobile - Exact Desktop Match */
    .email-list {
        border-radius: 8px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .email-item {
        padding: 16px;
        flex-direction: row;
        align-items: center;
        position: relative;
        min-width: 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .email-select {
        position: static;
        flex-shrink: 0;
        margin: 0;
        width: 18px;
        height: 18px;
    }
    
    .sender-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .email-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .email-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-width: 0;
        gap: 16px;
    }
    
    .email-sender {
        font-size: 16px;
        font-weight: 500;
        color: #1a202c;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .email-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
        min-width: 0;
        gap: 12px;
    }
    
    .email-date {
        font-size: 12px;
        color: #64748b;
        flex-shrink: 0;
        white-space: nowrap;
        min-width: 80px;
        text-align: right;
    }
    
    .email-subject {
        font-size: 14px;
        line-height: 1.4;
        margin: 0;
        color: #374151;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        max-width: 100%;
    }
    
    .email-preview {
        font-size: 13px;
        line-height: 1.3;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        max-width: 100%;
        margin-top: 2px;
    }
    
    /* Email View Mobile */
    .email-view-header {
        padding: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .email-meta {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        flex-direction: row;
    }
    
    .sender-info {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }
    
    .sender-details {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .email-date-time {
        font-size: 12px;
        color: #64748b;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        white-space: normal;
        flex-shrink: 1;
    }
    
    .email-subject-view {
        font-size: 18px;
        line-height: 1.4;
        margin-top: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        width: 100%;
        max-width: 100%;
    }
    
    .sender-details h3 {
        font-size: 15px;
        font-weight: 500;
        color: #1a202c;
        margin-bottom: 2px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        white-space: normal;
    }
    
    .sender-email {
        font-size: 12px;
        color: #64748b;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        white-space: normal;
    }
    
    /* Profile Page Mobile */
    .profile-avatar {
        align-self: center;
    }
    
    .profile-form .form-group {
        margin-bottom: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* General Mobile Improvements */
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card {
        border-radius: 6px;
        padding: 16px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    /* Button Mobile Optimizations */
    .btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .main-content {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Mail Actions for Small Mobile - Wrap Style */
    .mail-actions {
        padding: 16px;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow: visible;
    }
    
    /* Dropdown small mobile adjustments */
    .dropdown-content {
        min-width: 110px;
        max-width: 150px;
        font-size: 13px;
    }
    
    .action-btn {
        padding: 12px;
        min-height: 30px;
        min-width: 30px;
        font-size: 14px;
        flex: none;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.2s;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .action-btn span {
        display: inline;
        font-size: 14px;
        pointer-events: none;
    }
    
    .action-btn i {
        font-size: 14px;
        flex-shrink: 0;
        pointer-events: none;
    }
    
    .action-btn:active {
        background: #d1d5db;
        transform: scale(0.95);
    }
    
    /* Email List for Small Mobile - Desktop Match */
    .email-item {
        padding: 16px;
        flex-direction: row;
        align-items: center;
        min-width: 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .email-select {
        position: static;
        flex-shrink: 0;
        margin: 0;
        width: 16px;
        height: 16px;
        transform: scale(1);
    }
    
    .sender-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        color: white;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .email-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .email-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 12px;
        min-width: 0;
    }
    
    .email-sender {
        font-size: 16px;
        font-weight: 500;
        color: #1a202c;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .email-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
        min-width: 0;
        gap: 10px;
    }
    
    .email-date {
        font-size: 11px;
        color: #64748b;
        flex-shrink: 0;
        white-space: nowrap;
        min-width: 70px;
        text-align: right;
    }
    
    .email-subject {
        font-size: 13px;
        line-height: 1.3;
        margin: 0;
        color: #374151;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .email-preview {
        font-size: 12px;
        line-height: 1.2;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        margin-top: 1px;
    }
    
    /* Email View for Small Mobile */
    .email-view-header {
        padding: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .sender-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .email-view-header {
        padding: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .email-meta {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .sender-info {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }
    
    .sender-details {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .sender-details h3 {
        font-size: 14px;
        font-weight: 500;
        color: #1a202c;
        margin-bottom: 2px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        white-space: normal;
    }
    
    .sender-email {
        font-size: 11px;
        color: #64748b;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        white-space: normal;
    }
    
    .email-subject-view {
        font-size: 16px;
        margin-top: 6px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        white-space: normal;
        width: 100%;
        max-width: 100%;
    }
    
    .email-date-time {
        font-size: 11px;
        color: #64748b;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        white-space: normal;
        flex-shrink: 1;
    }
    
    /* Profile Form Small Mobile */
    .btn {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 42px;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
    }
    
    /* Card spacing for small mobile */
    .card {
        border-radius: 4px;
        padding: 16px;
    }
    
    /* Touch targets optimization for small screens */
    .nav-link {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .copy-icon {
        padding: 8px;
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile-first improvements for touch devices */
@media (hover: none) and (pointer: coarse) {
    .action-btn:hover {
        background: #e5e7eb;
    }
    
    .email-item:hover {
        background: #f9fafb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transform: translateY(-1px);
        border-color: #e2e8f0;
    }
    
    .nav-link:hover {
        background: rgb(243, 244, 246);
    }
}

/* Landscape mobile optimization - Wrap Style */
@media (max-width: 768px) and (orientation: landscape) {
    .main-content {
        padding: 16px;
    }
    
    .mail-actions {
        padding: 16px;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow: visible;
    }
    
    /* Dropdown landscape adjustments */
    .dropdown-content {
        min-width: 130px;
        max-width: 170px;
    }
    
    .action-btn {
        padding: 12px;
        min-height: 30px;
        min-width: 30px;
        font-size: 14px;
        flex: none;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.2s;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .action-btn span {
        display: inline;
        pointer-events: none;
    }
    
    .action-btn i {
        flex-shrink: 0;
        pointer-events: none;
    }
    
    .action-btn:active {
        background: #d1d5db;
        transform: scale(0.95);
    }
    
    .email-item {
        padding: 16;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .email-select {
        position: static;
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }
    
    .sender-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .email-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .email-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 12px;
        min-width: 0;
    }
    
    .email-sender {
        font-size: 16px;
        font-weight: 500;
        color: #1a202c;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .email-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
        min-width: 0;
        gap: 10px;
    }
    
    .email-date {
        font-size: 11px;
        color: #64748b;
        flex-shrink: 0;
        white-space: nowrap;
        text-align: right;
        min-width: 70px;
    }
    
    .email-subject {
        font-size: 13px;
        color: #374151;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .email-preview {
        font-size: 12px;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    /* Email View Landscape */
    .email-view-header {
        padding: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .email-meta {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .sender-info {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }
    
    .sender-details {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .sender-details h3 {
        font-size: 15px;
        font-weight: 500;
        color: #1a202c;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        white-space: normal;
    }
    
    .sender-email {
        font-size: 12px;
        color: #64748b;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        white-space: normal;
    }
    
    .email-date-time {
        font-size: 12px;
        color: #64748b;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        white-space: normal;
        flex-shrink: 1;
    }
    
    .email-subject-view {
        font-size: 17px;
        font-weight: 600;
        color: #1a202c;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        margin-top: 6px;
        white-space: normal;
        width: 100%;
        max-width: 100%;
    }
}

/* Text Truncation Utilities */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Container Width Utilities */
.w-full { width: 100%; max-width: 100%; }
.min-w-0 { min-width: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* Flex Utilities for Text Truncation */
.flex-1-truncate {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.flex-shrink-0 { flex-shrink: 0; }

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }


/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #1f2937;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Enhanced Dropdown Functionality */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 140px;
    max-width: 180px;
    box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.12);
    border-radius: 6px;
    z-index: 9999;
    border: 1px solid #e5e7eb;
    overflow: visible;
    animation: dropdownFadeIn 0.15s ease;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 2px;
}

.dropdown-content a {
    color: #374151;
    padding: 10px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8faff;
    color: #0095FF;
}

.dropdown-content a i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.dropdown-content a:hover i {
    color: #0095FF;
}

/* Enhanced Action Buttons */
.action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.action-btn:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 149, 255, 0.2);
}

/* Ensure mobile touch takes priority over hover effects */
@media (max-width: 1024px) {
    .action-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .action-btn:active:not(.disabled) {
        transform: scale(0.95);
    }
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.action-btn:active::after {
    width: 120%;
    height: 120%;
}

/* Dropdown Animation */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar user name ellipsis - Enhanced */
.user-details h4 {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
}

/* Ensure parent container allows ellipsis */
.user-details {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
}

.user-profile {
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Fix user avatar width issue caused by copy icon */
.user-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-shrink: 0 !important;
}

