/* Theme Variables - Default: Original (neutral gray/blue) */
:root {
    --bg-body: #f5f5f5;
    --bg-container: white;
    --bg-container-solid: white;
    --bg-input: white;
    --bg-hover: #f5f5f5;
    --bg-active: #e8f4f8;
    --chat-bg: url('../images/chat-wallpaper-light.svg');

    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;

    --border-main: #e0e0e0;
    --border-light: #f0f0f0;
    --border-dark: #333;

    --message-bubble: #9dd0e1;
    --accent-blue: #007bff;
    --accent-blue-hover: #0056b3;
    --accent-green: #4CAF50;
    --accent-red: #dc3545;

    --shadow: rgba(0, 0, 0, 0.1);
    --overlay: rgba(0, 0, 0, 0.5);

    --gift-popup-background: white;
}

[data-theme="dark"] {
    --bg-body: #1a1a1a;
    --bg-container: #2a2a2a;
    --bg-container-solid: #2a2a2a;
    --bg-input: #333;
    --bg-hover: #3a3a3a;
    --bg-active: #3a4a50;
    --chat-bg: url('../images/chat-wallpaper-dark.svg');

    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;

    --border-main: #444;
    --border-light: #3a3a3a;
    --border-dark: #666;

    --message-bubble: #63b4cf;
    --accent-blue: #4a9eff;
    --accent-blue-hover: #6ab0ff;
    --accent-green: #5dbb63;
    --accent-red: #ff6b7a;

    --shadow: rgba(0, 0, 0, 0.3);
    --overlay: rgba(0, 0, 0, 0.7);

    --gift-popup-background: #2a2a2a;
}

/* ===========================================
   COLOR PALETTE SWITCHER
   Palette 0: Original (default above)
   Palette 1: Steel Blue & Purple
   Palette 2: Sunset Warmth
   Palette 3: Natural Green & Violet
   Palette 4: Barbie Pink
   Palette 5: Soft Greens & Lavender
   Palette 6: Jewel Tones
   Palette 7: Sunset Gradient
   =========================================== */

/* Palette 0: Original - uses default :root values */

/* Palette 1: Steel Blue & Purple */
[data-palette="1"] {
    --bg-body: #f0f4f7;
    --bg-container: white;
    --bg-container-solid: white;
    --bg-input: white;
    --bg-hover: rgba(124, 158, 178, 0.1);
    --bg-active: rgba(82, 82, 140, 0.12);
    --text-primary: #231123;
    --text-secondary: #372554;
    --text-muted: #52528c;
    --border-main: rgba(124, 158, 178, 0.3);
    --border-light: rgba(124, 158, 178, 0.15);
    --border-dark: #52528c;
    --message-bubble: #7c9eb2;
    --accent-blue: #52528c;
    --accent-blue-hover: #372554;
    --accent-green: #4CAF50;
    --accent-red: #dc3545;
    --shadow: rgba(35, 17, 35, 0.12);
    --overlay: rgba(35, 17, 35, 0.6);
    --gift-popup-background: white;
}

[data-palette="1"][data-theme="dark"] {
    --bg-body: #231123;
    --bg-container: rgba(55, 37, 84, 0.5);
    --bg-container-solid: rgb(55, 37, 84);
    --bg-input: rgba(82, 82, 140, 0.3);
    --bg-hover: rgba(82, 82, 140, 0.4);
    --bg-active: rgba(124, 158, 178, 0.2);
    --text-primary: #f0f4f7;
    --text-secondary: #7c9eb2;
    --text-muted: #52528c;
    --border-main: rgba(82, 82, 140, 0.5);
    --border-light: rgba(55, 37, 84, 0.5);
    --border-dark: #7c9eb2;
    --message-bubble: #52528c;
    --accent-blue: #7c9eb2;
    --accent-blue-hover: #52528c;
    --accent-green: #5dbb63;
    --accent-red: #ff6b7a;
    --shadow: rgba(0, 0, 0, 0.4);
    --overlay: rgba(35, 17, 35, 0.85);
    --gift-popup-background: rgba(55, 37, 84, 0.95);
}

/* Palette 2: Sunset Warmth */
[data-palette="2"] {
    --bg-body: #fefdf5;
    --bg-container: white;
    --bg-container-solid: white;
    --bg-input: white;
    --bg-hover: rgba(237, 211, 130, 0.2);
    --bg-active: rgba(252, 158, 79, 0.15);
    --text-primary: #020122;
    --text-secondary: #f4442e;
    --text-muted: #fc9e4f;
    --border-main: rgba(237, 211, 130, 0.4);
    --border-light: rgba(242, 243, 174, 0.5);
    --border-dark: #f4442e;
    --message-bubble: #fc9e4f;
    --accent-blue: #f4442e;
    --accent-blue-hover: #d63a27;
    --accent-green: #4CAF50;
    --accent-red: #f4442e;
    --shadow: rgba(2, 1, 34, 0.12);
    --overlay: rgba(2, 1, 34, 0.6);
    --gift-popup-background: white;
}

[data-palette="2"][data-theme="dark"] {
    --bg-body: #020122;
    --bg-container: rgba(244, 68, 46, 0.15);
    --bg-container-solid: rgb(244, 68, 46);
    --bg-input: rgba(252, 158, 79, 0.15);
    --bg-hover: rgba(252, 158, 79, 0.25);
    --bg-active: rgba(244, 68, 46, 0.2);
    --text-primary: #f2f3ae;
    --text-secondary: #fc9e4f;
    --text-muted: #edd382;
    --border-main: rgba(252, 158, 79, 0.4);
    --border-light: rgba(244, 68, 46, 0.3);
    --border-dark: #fc9e4f;
    --message-bubble: #f4442e;
    --accent-blue: #fc9e4f;
    --accent-blue-hover: #f4442e;
    --accent-green: #5dbb63;
    --accent-red: #f4442e;
    --shadow: rgba(0, 0, 0, 0.5);
    --overlay: rgba(2, 1, 34, 0.85);
    --gift-popup-background: rgba(244, 68, 46, 0.9);
}

/* Palette 3: Natural Green & Violet */
[data-palette="3"] {
    --bg-body: #f5fcf4;
    --bg-container: white;
    --bg-container-solid: white;
    --bg-input: white;
    --bg-hover: rgba(182, 204, 161, 0.2);
    --bg-active: rgba(182, 143, 64, 0.15);
    --text-primary: #30011e;
    --text-secondary: #545454;
    --text-muted: #b68f40;
    --border-main: rgba(182, 204, 161, 0.4);
    --border-light: rgba(215, 252, 212, 0.5);
    --border-dark: #545454;
    --message-bubble: #b6cca1;
    --accent-blue: #b68f40;
    --accent-blue-hover: #9a7a36;
    --accent-green: #4CAF50;
    --accent-red: #dc3545;
    --shadow: rgba(48, 1, 30, 0.12);
    --overlay: rgba(48, 1, 30, 0.6);
    --gift-popup-background: white;
}

[data-palette="3"][data-theme="dark"] {
    --bg-body: #30011e;
    --bg-container: rgba(84, 84, 84, 0.3);
    --bg-container-solid: rgb(84, 84, 84);
    --bg-input: rgba(182, 143, 64, 0.2);
    --bg-hover: rgba(182, 204, 161, 0.15);
    --bg-active: rgba(182, 143, 64, 0.25);
    --text-primary: #d7fcd4;
    --text-secondary: #b6cca1;
    --text-muted: #b68f40;
    --border-main: rgba(182, 204, 161, 0.3);
    --border-light: rgba(84, 84, 84, 0.4);
    --border-dark: #b6cca1;
    --message-bubble: #b68f40;
    --accent-blue: #b6cca1;
    --accent-blue-hover: #b68f40;
    --accent-green: #5dbb63;
    --accent-red: #ff6b7a;
    --shadow: rgba(0, 0, 0, 0.5);
    --overlay: rgba(48, 1, 30, 0.85);
    --gift-popup-background: rgba(84, 84, 84, 0.95);
}

/* Palette 4: Barbie Pink */
[data-palette="4"] {
    --bg-body: #fff5fa;
    --bg-container: white;
    --bg-container-solid: white;
    --bg-input: white;
    --bg-hover: rgba(250, 25, 139, 0.08);
    --bg-active: rgba(185, 19, 114, 0.12);
    --text-primary: #0e0004;
    --text-secondary: #b91372;
    --text-muted: #6b0f1a;
    --border-main: rgba(250, 25, 139, 0.25);
    --border-light: rgba(250, 25, 139, 0.1);
    --border-dark: #b91372;
    --message-bubble: #fa198b;
    --accent-blue: #b91372;
    --accent-blue-hover: #31081f;
    --accent-green: #4CAF50;
    --accent-red: #6b0f1a;
    --shadow: rgba(14, 0, 4, 0.12);
    --overlay: rgba(14, 0, 4, 0.6);
    --gift-popup-background: white;
}

[data-palette="4"][data-theme="dark"] {
    --bg-body: #0e0004;
    --bg-container: rgba(49, 8, 31, 0.8);
    --bg-container-solid: rgb(49, 8, 31);
    --bg-input: rgba(107, 15, 26, 0.4);
    --bg-hover: rgba(185, 19, 114, 0.3);
    --bg-active: rgba(250, 25, 139, 0.2);
    --text-primary: #ffcce6;
    --text-secondary: #fa198b;
    --text-muted: #b91372;
    --border-main: rgba(185, 19, 114, 0.5);
    --border-light: rgba(107, 15, 26, 0.5);
    --border-dark: #fa198b;
    --message-bubble: #b91372;
    --accent-blue: #fa198b;
    --accent-blue-hover: #b91372;
    --accent-green: #5dbb63;
    --accent-red: #fa198b;
    --shadow: rgba(0, 0, 0, 0.6);
    --overlay: rgba(14, 0, 4, 0.85);
    --gift-popup-background: rgba(49, 8, 31, 0.95);
}

/* Palette 5: Soft Greens & Lavender */
[data-palette="5"] {
    --bg-body: #f5faf0;
    --bg-container: white;
    --bg-container-solid: white;
    --bg-input: white;
    --bg-hover: rgba(186, 210, 159, 0.2);
    --bg-active: rgba(128, 138, 159, 0.15);
    --text-primary: #3d2b56;
    --text-secondary: #2c497f;
    --text-muted: #808a9f;
    --border-main: rgba(186, 210, 159, 0.4);
    --border-light: rgba(204, 245, 172, 0.4);
    --border-dark: #2c497f;
    --message-bubble: #bad29f;
    --accent-blue: #2c497f;
    --accent-blue-hover: #3d2b56;
    --accent-green: #4CAF50;
    --accent-red: #dc3545;
    --shadow: rgba(61, 43, 86, 0.12);
    --overlay: rgba(61, 43, 86, 0.6);
    --gift-popup-background: white;
}

[data-palette="5"][data-theme="dark"] {
    --bg-body: #3d2b56;
    --bg-container: rgba(44, 73, 127, 0.4);
    --bg-container-solid: rgb(44, 73, 127);
    --bg-input: rgba(128, 138, 159, 0.3);
    --bg-hover: rgba(186, 210, 159, 0.2);
    --bg-active: rgba(204, 245, 172, 0.15);
    --text-primary: #ccf5ac;
    --text-secondary: #bad29f;
    --text-muted: #808a9f;
    --border-main: rgba(128, 138, 159, 0.5);
    --border-light: rgba(44, 73, 127, 0.5);
    --border-dark: #bad29f;
    --message-bubble: #2c497f;
    --accent-blue: #bad29f;
    --accent-blue-hover: #2c497f;
    --accent-green: #5dbb63;
    --accent-red: #ff6b7a;
    --shadow: rgba(0, 0, 0, 0.5);
    --overlay: rgba(61, 43, 86, 0.85);
    --gift-popup-background: rgba(44, 73, 127, 0.95);
}

/* Palette 6: Jewel Tones */
[data-palette="6"] {
    --bg-body: #f8f9f5;
    --bg-container: white;
    --bg-container-solid: white;
    --bg-input: white;
    --bg-hover: rgba(95, 173, 65, 0.1);
    --bg-active: rgba(45, 147, 108, 0.12);
    --text-primary: #3a0842;
    --text-secondary: #391463;
    --text-muted: #2d936c;
    --border-main: rgba(95, 173, 65, 0.3);
    --border-light: rgba(191, 174, 72, 0.25);
    --border-dark: #391463;
    --message-bubble: #5fad41;
    --accent-blue: #2d936c;
    --accent-blue-hover: #391463;
    --accent-green: #5fad41;
    --accent-red: #dc3545;
    --shadow: rgba(58, 8, 66, 0.12);
    --overlay: rgba(58, 8, 66, 0.6);
    --gift-popup-background: white;
}

[data-palette="6"][data-theme="dark"] {
    --bg-body: #3a0842;
    --bg-container: rgba(57, 20, 99, 0.6);
    --bg-container-solid: rgb(57, 20, 99);
    --bg-input: rgba(45, 147, 108, 0.25);
    --bg-hover: rgba(95, 173, 65, 0.2);
    --bg-active: rgba(191, 174, 72, 0.2);
    --text-primary: #e8f5e0;
    --text-secondary: #bfae48;
    --text-muted: #5fad41;
    --border-main: rgba(45, 147, 108, 0.5);
    --border-light: rgba(57, 20, 99, 0.5);
    --border-dark: #bfae48;
    --message-bubble: #2d936c;
    --accent-blue: #5fad41;
    --accent-blue-hover: #2d936c;
    --accent-green: #5fad41;
    --accent-red: #ff6b7a;
    --shadow: rgba(0, 0, 0, 0.5);
    --overlay: rgba(58, 8, 66, 0.85);
    --gift-popup-background: rgba(57, 20, 99, 0.95);
}

/* Palette 7: Sunset Gradient */
[data-palette="7"] {
    --bg-body: #fef9f4;
    --bg-container: white;
    --bg-container-solid: white;
    --bg-input: white;
    --bg-hover: rgba(249, 86, 79, 0.08);
    --bg-active: rgba(179, 63, 98, 0.12);
    --text-primary: #0c0a3e;
    --text-secondary: #7b1e7a;
    --text-muted: #b33f62;
    --border-main: rgba(249, 86, 79, 0.2);
    --border-light: rgba(243, 198, 119, 0.3);
    --border-dark: #7b1e7a;
    --message-bubble: #f9564f;
    --accent-blue: #b33f62;
    --accent-blue-hover: #7b1e7a;
    --accent-green: #4CAF50;
    --accent-red: #f9564f;
    --shadow: rgba(12, 10, 62, 0.12);
    --overlay: rgba(12, 10, 62, 0.6);
    --gift-popup-background: white;
}

[data-palette="7"][data-theme="dark"] {
    --bg-body: #0c0a3e;
    --bg-container: rgba(123, 30, 122, 0.3);
    --bg-container-solid: rgb(123, 30, 122);
    --bg-input: rgba(179, 63, 98, 0.2);
    --bg-hover: rgba(179, 63, 98, 0.25);
    --bg-active: rgba(249, 86, 79, 0.15);
    --text-primary: #f3c677;
    --text-secondary: #f9564f;
    --text-muted: #b33f62;
    --border-main: rgba(179, 63, 98, 0.4);
    --border-light: rgba(123, 30, 122, 0.4);
    --border-dark: #f9564f;
    --message-bubble: #f9564f;
    --accent-blue: #f9564f;
    --accent-blue-hover: #b33f62;
    --accent-green: #5dbb63;
    --accent-red: #f9564f;
    --shadow: rgba(0, 0, 0, 0.6);
    --overlay: rgba(12, 10, 62, 0.85);
    --gift-popup-background: rgba(123, 30, 122, 0.95);
}

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

button {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 65px;
}

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-container-solid);
    padding: 15px 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    max-width: 100%;
    justify-content: space-between;
}

.navbar-logo {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-logo:hover {
    text-decoration: none;
}

.navbar-match {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.navbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-avatar-icon {
    font-size: 14px;
    color: var(--text-muted);
}

.container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    line-height: 1;
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: inline;
}

/* Navbar Message Icon */
.navbar-message-icon {
    position: relative;
    text-decoration: none;
    font-size: 20px;
    padding: 5px;
}

.navbar-unread-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-container);
    box-shadow: 2px 0 10px var(--shadow);
    transition: left 0.3s ease-out;
    z-index: 2000;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 24px;
    color: var(--text-primary);
}

.wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.25);
    border-radius: 20px;
    border: 2px solid rgba(255, 180, 0, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.wallet-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 60%
    );
    animation: walletShine 2.5s ease-in-out infinite;
}

@keyframes walletShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.wallet-coin-img {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.wallet-balance {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.sidebar-nav {
    padding: 5px 0;
}

.sidebar-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.sidebar-nav a:hover {
    background: var(--bg-hover);
}

.sidebar-icon {
    display: inline-block;
    width: 24px;
    text-align: center;
    margin-right: 12px;
}

.sidebar-theme-toggle {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.sidebar-theme-toggle:hover {
    background: var(--bg-hover);
}

.sidebar-theme-toggle .theme-label {
    flex: 1;
}

.theme-switch {
    width: 44px;
    height: 24px;
    background: var(--border-main);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
}

.theme-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.sidebar-theme-toggle.active .theme-switch {
    background: var(--accent-green);
}

.sidebar-theme-toggle.active .theme-switch-slider {
    transform: translateX(20px);
}

/* Palette Switcher */
.sidebar-palette-switcher {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.sidebar-palette-switcher:hover {
    background: var(--bg-hover);
}

.sidebar-palette-switcher .palette-label {
    flex: 1;
}

.palette-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-input);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.palette-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--message-bubble);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1500;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-main);
    margin: 10px 0;
}

/* Sidebar Match Item */
.sidebar-match-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.sidebar-match-item:hover {
    background: var(--bg-hover);
}

.sidebar-match-item.active {
    background: var(--bg-active);
}

.sidebar-match-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-match-avatar-icon {
    font-size: 18px;
    color: var(--text-muted);
}

.sidebar-match-info {
    flex: 1;
    min-width: 0;
}

.sidebar-match-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.sidebar-match-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-preview-blurred {
    filter: blur(4px);
    user-select: none;
}

.typing-preview {
    font-style: italic;
    color: var(--text-muted);
}

.sidebar-unmatch-form {
    padding: 10px 20px;
}

.sidebar-unmatch-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--accent-red);
    border-radius: 8px;
    background: var(--bg-container);
    color: var(--accent-red);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-unmatch-btn:hover {
    background: var(--accent-red);
    color: white;
}

.sidebar-unmatch-btn--active {
    background: var(--accent-red);
    color: white;
}

.sidebar-unmatch-btn--active:hover {
    background: #c82333;
}

/* Messages */
.messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    animation: slideIn 0.3s ease-out;
    cursor: pointer;
}

.message.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.message.info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

[data-theme="dark"] .message.error {
    background: #4a2020;
    color: #ff8888;
    border: 1px solid #663333;
}

[data-theme="dark"] .message.success {
    background: #204a20;
    color: #88ff88;
    border: 1px solid #336633;
}

[data-theme="dark"] .message.info {
    background: #20204a;
    color: #8888ff;
    border: 1px solid #333366;
}

@media (max-width: 576px) {
    .top-navbar {
        padding: 10px 40px;
    }
    body {
        padding-top: 53px;
    }
}