body.theme-dark {
    background-color: #0f172a;
    color: #e5e7eb;
}

body.theme-dark .site-header {
    background-color: transparent;
    border-bottom-width: 0;
    border-bottom-style: none;
    border-bottom-color: transparent;
}

body.theme-dark .navbar-links a {
    color: #cbd5f5;
}

body.theme-dark .navbar-links a:hover {
    background-color: #1e293b;
    color: #ffffff;
}

body.theme-dark .navbar-toggle {
    background-color: #1e293b;
}

body.theme-dark .navbar-toggle-bar {
    background-color: #e5e7eb;
}

body.theme-dark .nav-auth-link {
    border-color: #334155;
    color: #e5e7eb;
}

body.theme-dark .nav-auth-link:hover {
    background-color: #1e293b;
}

body.theme-dark .nav-user-name {
    color: #e5e7eb;
}

body.theme-dark .nav-profile-link,
body.theme-dark .nav-logout-link {
    color: #cbd5f5;
}

body.theme-dark .nav-profile-link:hover,
body.theme-dark .nav-logout-link:hover {
    color: #ffffff;
}

body.theme-dark .notification-bell {
    background-color: #1e293b;
}

body.theme-dark .notification-badge {
    background-color: #ef4444;
    color: #ffffff;
}

body.theme-dark .notification-dropdown {
    background-color: #020617;
    border-color: #1e293b;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

body.theme-dark .notification-header {
    border-bottom-color: #1e293b;
    color: #e5e7eb;
}

body.theme-dark .notification-item {
    border-bottom-color: #0f172a;
    color: #e5e7eb;
}

body.theme-dark .notification-item:hover {
    background-color: #020617;
}

body.theme-dark .notification-meta {
    color: #9ca3af;
}

body.theme-dark .notification-empty {
    color: #9ca3af;
}

body.theme-dark .notification-clear {
    background-color: #020617;
    color: #9ca3af;
    border-top-color: #1e293b;
}

body.theme-dark .notification-clear:hover {
    color: #e5e7eb;
}

body.theme-dark .form-input {
    background-color: #020617;
    color: #e5e7eb;
    border-color: #1e293b;
}

body.theme-dark .form-input:focus {
    outline-style: solid;
    outline-width: 2px;
    outline-color: #22c55e;
    border-color: #22c55e;
}

body.theme-dark .btn-primary {
    background-image: linear-gradient(135deg, #22c55e, #a3e635);
    color: #0f172a;
}

body.theme-dark .btn-primary:hover {
    filter: brightness(1.03);
}

body.theme-dark .btn-secondary {
    border-color: #334155;
    color: #e5e7eb;
}

body.theme-dark .btn-secondary:hover {
    background-color: #020617;
}

body.theme-dark .card {
    background-image: radial-gradient(circle at top left, #1e293b, #020617);
    border-color: #1f2937;
}

body.theme-dark .family-chat-widget {
    background-color: #020617;
    border-color: #1e293b;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 1);
}

body.theme-dark .family-chat-header {
    border-bottom-color: #1e293b;
}

body.theme-dark .family-chat-toggle {
    background-color: #111827;
    color: #e5e7eb;
}

body.theme-dark .family-chat-messages {
    background-color: #020617;
}

body.theme-dark .family-chat-form {
    border-top-color: #1e293b;
    background-color: #020617;
}

body.theme-dark .family-chat-form input[type="text"],
body.theme-dark .family-chat-form textarea {
    background-color: #020617;
    color: #e5e7eb;
    border-color: #1e293b;
}

body.theme-dark .family-chat-send {
    background-color: #22c55e;
    color: #0f172a;
}

body.theme-dark .chat-message-user {
    color: #a5b4fc;
}

body.theme-dark .chat-message-meta {
    color: #6b7280;
}

body.theme-dark .chat-launcher {
    border-color: rgba(148, 163, 184, 0.8);
    background-color: rgba(15, 23, 42, 0.96);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
}

body.theme-dark .chat-window {
    border-color: rgba(148, 163, 184, 0.7);
    background-color: rgba(15, 23, 42, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.98);
}

body.theme-dark .chat-window-header {
    border-bottom-color: rgba(30, 64, 175, 0.6);
}

body.theme-dark .chat-input {
    background-color: #020617;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.7);
}

body.theme-dark .chat-send-button {
    border-color: rgba(148, 163, 184, 0.8);
    color: #e5e7eb;
    background-color: #0f172a;
}

body.theme-dark .site-footer {
    background-color: #020617;
    border-top-color: #1e293b;
    color: #9ca3af;
}