/* Global Dark Theme Overrides */
body.dark-theme {
    background: #0b141a; /* Global app background */
    color: #e9edef;
}

body.dark-theme .app-layout {
    background: #111b21;
}

body.dark-theme .app-header {
    background: #202c33;
    border-bottom: 1px solid #222d32;
    color: #00a884;
}

body.dark-theme .app-nav {
    background: #202c33;
    border-top: 1px solid #222d32;
    border-right: 1px solid #222d32;
}

body.dark-theme .main-wrapper {
    border-left: 1px solid #222d32;
}

body.dark-theme .nav-item {
    color: #8696a0;
}

body.dark-theme .nav-item.active {
    color: #00a884;
}

body.dark-theme .nav-item:hover,
body.dark-theme .nav-item:active {
    background: #2a3942;
}

/* Home */
body.dark-theme .wallet-card {
    background: linear-gradient(135deg, #005c4b, #00a884);
}
body.dark-theme .search-input {
    background: #202c33;
    color: #e9edef;
    border-color: #222d32;
}
body.dark-theme .friend:hover {
    background: #202c33;
}
body.dark-theme .friend-info h3 {
    color: #e9edef;
}
body.dark-theme .friend-info p {
    color: #8696a0;
}

/* Updates */
body.dark-theme .update-card,
body.dark-theme .community-card,
body.dark-theme .feature-card {
    background: #202c33;
    box-shadow: none;
    border: 1px solid #222d32;
}

body.dark-theme .feature-card {
    background: linear-gradient(135deg, #182229, #202c33);
}

body.dark-theme .tag {
    background: #005c4b;
}

/* Community */
body.dark-theme .featured-community {
    background: linear-gradient(135deg, #182229, #202c33);
    box-shadow: none;
    border: 1px solid #222d32;
}
body.dark-theme .categories span {
    background: #202c33;
    color: #e9edef;
    box-shadow: none;
    border: 1px solid #222d32;
}
body.dark-theme .community-info h4 {
    color: #e9edef;
}
body.dark-theme .community-info p {
    color: #8696a0;
}

/* Wallet */
body.dark-theme .stat-card,
body.dark-theme .transaction-item {
    background: #202c33;
    box-shadow: none;
    border: 1px solid #222d32;
}
body.dark-theme .transactions h3 {
    color: #e9edef;
}
body.dark-theme .transaction-item h4 {
    color: #e9edef;
}

/* Profile */
body.dark-theme .profile-header {
    background: linear-gradient(135deg, #005c4b, #00a884);
}
body.dark-theme .profile-stats,
body.dark-theme .profile-card {
    background: #202c33;
    box-shadow: none;
}
body.dark-theme .info-row p {
    color: #e9edef;
}
body.dark-theme .settings-btn {
    background: #111b21;
    color: #e9edef;
    border: 1px solid #222d32;
}
body.dark-theme .profile-card.danger {
    background: #2a1215;
}
body.dark-theme .logout-btn {
    background: #4a191b;
}

/* Chat */
body.dark-theme .chat-header,
body.dark-theme .community-header {
    background: #202c33;
}
body.dark-theme .chat-input,
body.dark-theme .community-input {
    background: #202c33;
    border-color: #222d32;
}
body.dark-theme .chat-input input,
body.dark-theme .community-input input {
    background: #2a3942;
    color: #e9edef;
    border: none;
}
body.dark-theme .received,
body.dark-theme .msg-bubble {
    background: #202c33;
    color: #e9edef;
}
body.dark-theme .sent,
body.dark-theme .msg-bubble.own {
    background: #005c4b;
    color: #e9edef;
}
body.dark-theme .date-divider span,
body.dark-theme .system-message.join {
    background: #182229;
    color: #8696a0;
}
body.dark-theme .send-btn,
body.dark-theme .attach-btn {
    background: #00a884;
}
body.dark-theme .money-card {
    background: #202c33;
}
body.dark-theme .amount-field {
    background: #111b21;
}
body.dark-theme .amount-field .currency,
body.dark-theme .amount-field input {
    color: #e9edef;
}
body.dark-theme .money-header h4 {
    color: #e9edef;
}

/* Settings */
body.dark-theme .settings-list {
    background: #202c33;
    box-shadow: none;
}
body.dark-theme .settings-list li {
    border-bottom: 1px solid #222d32;
}
body.dark-theme .settings-list li:hover {
    background: #2a3942;
}
body.dark-theme .setting-info h4 {
    color: #e9edef;
}
body.dark-theme .setting-info p {
    color: #8696a0;
}

/* Auth / Index */
body.dark-theme .container {
    background: #202c33;
    box-shadow: none;
}
body.dark-theme .form h2 {
    color: #e9edef;
}
body.dark-theme .form input {
    background: #111b21;
    color: #e9edef;
    border: 1px solid #222d32;
}
body.dark-theme .toggle-text {
    color: #8696a0;
}
body.dark-theme .toggle-text span {
    color: #00a884;
}

/* Modals in Dark Mode */
body.dark-theme .modal-content {
    background: #202c33;
    color: #e9edef;
}
body.dark-theme .modal-header {
    border-bottom-color: #222d32;
}
body.dark-theme .modal-header h2 {
    color: #e9edef;
}
body.dark-theme .close-btn {
    color: #8696a0;
}
body.dark-theme .modal-body label {
    color: #8696a0;
}
body.dark-theme .modal-body input,
body.dark-theme .modal-body textarea,
body.dark-theme .modal-body select {
    background: #111b21;
    color: #e9edef;
    border-color: #222d32;
}

/* Friend Request Cards in Dark Mode */
body.dark-theme .friend-request-card .request-info {
    background: rgba(0, 168, 132, 0.15) !important;
}
body.dark-theme .friend-request-card h4 {
    color: #e9edef;
}
body.dark-theme .friend-request-card p {
    color: #8696a0 !important;
}

