.tmcrm-dark-switch-wrap {
    padding: 10px 18px 14px;
}

.tmcrm-dark-switch {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 8px 10px 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
}

.tmcrm-dark-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 800;
}

.tmcrm-dark-switch-label i {
    width: 18px;
    text-align: center;
}

.tmcrm-dark-switch-track {
    width: 44px;
    height: 24px;
    flex: 0 0 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    position: relative;
}

.tmcrm-dark-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.tmcrm-dark-switch.is-on .tmcrm-dark-switch-track {
    background: #22c55e;
}

.tmcrm-dark-switch.is-on .tmcrm-dark-switch-thumb {
    transform: translateX(20px);
}

html.tmcrm-dark,
html.tmcrm-dark body {
    background: #0b1120 !important;
    color: #e5edf8 !important;
}

html.tmcrm-dark .main-header,
html.tmcrm-dark .footernav {
    background: #0f172a !important;
    color: #e5edf8 !important;
}

html.tmcrm-dark .container,
html.tmcrm-dark .container-fluid,
html.tmcrm-dark .profile-page,
html.tmcrm-dark .profile-shell,
html.tmcrm-dark .profile-right-content,
html.tmcrm-dark .dashboard-page,
html.tmcrm-dark .dashboard-shell,
html.tmcrm-dark .dashboard-right-content,
html.tmcrm-dark .tasks-page,
html.tmcrm-dark .projects-page,
html.tmcrm-dark .chat-page,
html.tmcrm-dark .settings-page,
html.tmcrm-dark .login-container {
    background: #0b1120 !important;
    color: #e5edf8 !important;
}

html.tmcrm-dark .profile-left-panel,
html.tmcrm-dark #sidebar {
    background: linear-gradient(135deg, #020617, #1e3a8a) !important;
}

html.tmcrm-dark .profile-section-card,
html.tmcrm-dark .settings-card,
html.tmcrm-dark .login-card,
html.tmcrm-dark .project-card,
html.tmcrm-dark .task-card,
html.tmcrm-dark .today-task-card,
html.tmcrm-dark .dashboard-dropdown,
html.tmcrm-dark .dropdown-menu,
html.tmcrm-dark .chat-panel,
html.tmcrm-dark .chat-thread,
html.tmcrm-dark .chat-sidebar,
html.tmcrm-dark .tmcrm-call-alert,
html.tmcrm-dark .tmcrm-call-permission {
    background: #111827 !important;
    border-color: #263244 !important;
    color: #e5edf8 !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34) !important;
}

html.tmcrm-dark h1,
html.tmcrm-dark h2,
html.tmcrm-dark h3,
html.tmcrm-dark h4,
html.tmcrm-dark h5,
html.tmcrm-dark h6,
html.tmcrm-dark .profile-main-header h2,
html.tmcrm-dark .profile-section-title h4,
html.tmcrm-dark .settings-title,
html.tmcrm-dark .settings-card-title,
html.tmcrm-dark .dashboard-greeting,
html.tmcrm-dark .section-title,
html.tmcrm-dark .project-title,
html.tmcrm-dark .today-task-title,
html.tmcrm-dark .tmcrm-call-name {
    color: #f8fafc !important;
}

html.tmcrm-dark p,
html.tmcrm-dark small,
html.tmcrm-dark .profile-main-header p,
html.tmcrm-dark .settings-subtitle,
html.tmcrm-dark .settings-card-subtitle,
html.tmcrm-dark .today-task-text,
html.tmcrm-dark .tmcrm-call-message,
html.tmcrm-dark .dashboard-dropdown-item small {
    color: #a8b3c7 !important;
}

html.tmcrm-dark input,
html.tmcrm-dark textarea,
html.tmcrm-dark select,
html.tmcrm-dark .profile-input,
html.tmcrm-dark .dashboard-search-input,
html.tmcrm-dark .settings-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html.tmcrm-dark input::placeholder,
html.tmcrm-dark textarea::placeholder {
    color: #94a3b8 !important;
}

html.tmcrm-dark .profile-input:disabled {
    background: #1f2937 !important;
    color: #a8b3c7 !important;
}

html.tmcrm-dark .dropdown-menu a,
html.tmcrm-dark .dashboard-dropdown-item,
html.tmcrm-dark a {
    color: #dbeafe;
}

html.tmcrm-dark .today-task-card::before {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.2) 100%) !important;
}

html.tmcrm-large-text body {
    font-size: 1.0625rem !important;
}

html.tmcrm-large-text input,
html.tmcrm-large-text button,
html.tmcrm-large-text textarea,
html.tmcrm-large-text select {
    font-size: 1rem !important;
}

html.tmcrm-high-contrast body,
html.tmcrm-high-contrast .profile-section-card,
html.tmcrm-high-contrast .settings-card {
    color: #ffffff !important;
}

html.tmcrm-high-contrast a,
html.tmcrm-high-contrast button {
    outline-offset: 3px;
}

html.tmcrm-high-contrast :focus {
    outline: 3px solid #facc15 !important;
}

html.tmcrm-reduce-motion *,
html.tmcrm-reduce-motion *::before,
html.tmcrm-reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
}

html.tmcrm-compact .profile-right-content,
html.tmcrm-compact .dashboard-right-content,
html.tmcrm-compact .settings-main {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

body.sidebar-collapsed .tmcrm-dark-switch-wrap {
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-collapsed .tmcrm-dark-switch {
    justify-content: center;
    padding: 8px;
}

body.sidebar-collapsed .tmcrm-dark-switch-label span,
body.sidebar-collapsed .tmcrm-dark-switch-track {
    display: none;
}
