/* Digital Event Manager - Clean Beige Theme */

/* Google Fonts Import handled via WP Enqueue */

:root {
    /* Clean Beige Palette */
    --dem-bg-light: #F5F5F0;
    --dem-white: #FFFFFF;
    --dem-text-dark: #333333;
    --dem-text-gray: #666666;
    --dem-accent-gold: #D4AF37;
    --dem-accent-blue: #3E7BFA;
    --dem-border: #E5E5E0;
    --dem-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--dem-bg-light);
    color: var(--dem-text-dark);
    font-family: 'Inter', sans-serif;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dem-text-dark);
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Layout Wrapper --- */
.dem-layout-wrapper {
    max-width: 98%;
    /* Maximizing screen usage */
    margin: 0 auto;
    padding: 10px;
}

/* --- Navigation Header --- */
.dem-header {
    background: var(--dem-white);
    border-radius: 8px;
    box-shadow: var(--dem-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 15px 0;
}

.dem-nav-item {
    color: var(--dem-text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.2s;
}

.dem-nav-item:hover,
.dem-nav-item.active {
    color: var(--dem-text-dark);
    background: rgba(0, 0, 0, 0.05);
}

.dem-nav-item.active {
    color: var(--dem-accent-blue);
    background: rgba(62, 123, 250, 0.1);
    font-weight: 600;
}

.dem-nav-item .dashicons {
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
}

/* --- Main Grid --- */
.dem-main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: stretch;
}

/* --- Content Area (Left) --- */
.dem-content-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* Video Container (Lobby) */
.dem-video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dem-video-embed,
.dem-video-embed iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Content Boxes Below Video */
.dem-content-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.dem-content-box {
    background: var(--dem-white);
    border-radius: 12px;
    box-shadow: var(--dem-shadow);
    overflow: hidden;
    border: 1px solid var(--dem-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dem-content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.dem-box-header {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dem-box-header .dashicons {
    font-size: 1.4rem;
    width: 24px;
    height: 24px;
}

.dem-box-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.dem-box-content {
    padding: 20px;
    min-height: 120px;
}

.dem-box-empty {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 0;
}

position: absolute;
top: 20px;
left: 20px;
z-index: 2;
background: rgba(0, 0, 0, 0.6);
padding: 5px 10px;
border-radius: 4px;
display: flex;
align-items: center;
gap: 10px;
}

.dem-live-badge {
    background: #ea4335;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.dem-viewer-count {
    color: #fff;
    font-size: 0.85rem;
}

.dem-video-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: rgba(245, 245, 240, 0.95);
    /* Beige background */
    padding: 20px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Chat Messages Area (Scrollable) */
.dem-empty-state {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.dem-chat-messages {
    flex: 1 1 auto !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fafafa;
    min-height: 0 !important;
    max-height: calc(100vh - 250px) !important;
    scroll-behavior: smooth;
}


.dem-video-info h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #333;
    /* Dark text for beige background */
}

.dem-video-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Custom Controls Bar - Minimal (Fullscreen only) */
/* Custom Controls Bar - Top Right */
.dem-video-controls-top {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    /* Ensure it is above the iframe (z-index 1) */
}

.dem-video-controls-top .dashicons {
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 50%;
    width: auto;
    height: auto;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    display: flex;
    /* Fix alignment */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dem-video-controls-top .dashicons:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Cleanup old controls if present */
.dem-video-controls {
    display: none;
}

.dem-video-controls .dashicons {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    color: #333;
    transition: opacity 0.2s, transform 0.2s;
}

.dem-video-controls .dashicons:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Views (Full Width Content) --- */
.dem-view-container {
    background: var(--dem-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--dem-shadow);
}

.dem-page-title {
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--dem-border);
    padding-bottom: 10px;
    display: inline-block;
}

/* Agenda Grid Re-styling */
.dem-schedule-item {
    border-bottom: 1px solid var(--dem-border);
    padding: 20px 0;
}

.dem-schedule-item:last-child {
    border-bottom: none;
}

.dem-session-title {
    color: var(--dem-text-dark);
}

.dem-session-desc {
    color: var(--dem-text-gray);
}

/* Speaker Grid Re-styling */
.dem-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    /* Slightly wider cards */
    gap: 30px;
}

.dem-speaker-card {
    background: #FFFFFF;
    border: 1px solid var(--dem-border);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dem-speaker-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.dem-speaker-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 3px solid #fff;
}

.dem-speaker-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--dem-text-dark);
}

.dem-speaker-job {
    font-size: 0.9rem;
    color: var(--dem-accent-blue);
    font-weight: 500;
    margin-bottom: 3px;
}

.dem-speaker-company {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.dem-speaker-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
    /* Push to bottom if needed */
    opacity: 0.7;
    transition: opacity 0.2s;
}

.dem-speaker-card:hover .dem-speaker-social {
    opacity: 1;
}

.dem-speaker-social a {
    color: #555;
    transition: color 0.2s, transform 0.2s;
}

.dem-speaker-social a:hover {
    color: var(--dem-accent-blue);
    transform: scale(1.2);
}

.dem-speaker-social .dashicons {
    font-size: 1.2rem;
}

/* --- Sidebar (Right) --- */
.dem-sidebar-panel {
    background: var(--dem-white);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--dem-text-dark);
    box-shadow: var(--dem-shadow);
    border: 1px solid var(--dem-border);
    min-height: 0;
    height: 100%;
    max-height: 100%;
}

.dem-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--dem-border);
    background: #FAFAFA;
}

.dem-sidebar-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.dem-window-controls span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    margin-left: 4px;
}

/* Tabs */
.dem-sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--dem-border);
    background: #fff;
}

.dem-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--dem-text-gray);
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.dem-tab.active {
    color: var(--dem-accent-blue);
    border-bottom-color: var(--dem-accent-blue);
    background: #fff;
}

/* Tab Content Areas */
.dem-tab-content {
    display: none;
    flex: 1 1 0 !important;
    flex-direction: column;
    overflow: hidden !important;
    min-height: 0 !important;
    max-height: 100% !important;
}

.dem-tab-content.active {
    display: flex !important;
}

/* Chat messages are defined earlier with scroll */

.dem-chat-msg {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

.dem-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.dem-chat-msg strong {
    color: var(--dem-accent-blue);
    font-size: 0.85rem;
    display: block;
}

.dem-chat-text {
    font-size: 0.9rem;
    color: var(--dem-text-dark);
    line-height: 1.4;
}

/* ... (previous styles) ... */

/* --- Chat Input Area (Mobile Style - High Specificity) --- */
/* --- Chat Input Area (Multi-row Style) --- */
.dem-chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--dem-border);
    background: #fff;
    display: flex;
    flex-direction: column;
    /* Stack input and actions */
    gap: 10px;
    position: relative;
    border-radius: 0 0 12px 12px;
}

/* Actions Row */
.dem-chat-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Emoji Trigger - Reset Button Styles */
.dem-emoji-trigger-btn,
button.dem-emoji-trigger-btn {
    /* Double selector for specificity */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1;
    color: #555 !important;
    margin-right: -5px;
    width: auto !important;
    height: auto !important;
}

.dem-emoji-trigger-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: transparent !important;
}

/* Input Field */
/* Input Field (Full Width) */
.dem-chat-input-area input[type="text"] {
    width: 100%;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-size: 0.95rem;
    background: #fdfdfd !important;
    font-family: 'Inter', sans-serif;
    color: #333;
    box-shadow: none;
    height: auto !important;
    min-height: 45px;
}

/* Actions Row Buttons */
.dem-emoji-trigger-btn,
button.dem-emoji-trigger-btn {
    background: transparent !important;
    border: none !important;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: transform 0.2s;
    line-height: 1;
    color: #555 !important;
    width: auto !important;
    height: auto !important;
}

.dem-emoji-trigger-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: #f5f5f5 !important;
    border-radius: 50%;
}

.dem-chat-input-area input:focus {
    outline: none;
    border-color: var(--dem-accent-gold) !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1) !important;
}

/* Send Button - Force Gold */
.dem-chat-input-area button#demChatSendBtn {
    background: var(--dem-accent-gold) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 0 24px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    width: auto !important;
}

.dem-chat-input-area button#demChatSendBtn:hover {
    background: #C19B2F !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* ... (Emoji Picker styles) ... */

/* --- Video Reactions (Force Transparent) --- */
.dem-reaction-bar {
    position: absolute;
    bottom: 20px;
    /* Adjusted position */
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button.dem-react-btn {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    /* Emoji color usually native, but ensures no text color override */
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

button.dem-react-btn:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.45) !important;
}

.dem-video-reactions-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}


.floating-emoji {
    position: absolute;
    bottom: 100px;
    right: 40px;
    /* Start near the buttons */
    font-size: 2rem;
    animation: floatUp 2s ease-out forwards;
    opacity: 1;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-100px) scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-200px) scale(1.5);
        opacity: 0;
    }
}

/* --- Chat Emojis & Reactions --- */
.dem-emoji-trigger-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.dem-emoji-trigger-btn:hover {
    transform: scale(1.1);
}

/* Emoji Picker (Fixed for Clickability) */
.dem-emoji-picker {
    position: absolute;
    bottom: 65px;
    left: 15px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    border-radius: 12px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    z-index: 1000;
    /* High z-index */
    pointer-events: auto;
    /* Allow clicks */
}

.dem-emoji-picker.show {
    display: grid;
}

.dem-emoji-picker span {
    cursor: pointer !important;
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.1s, transform 0.1s;
    pointer-events: auto !important;
    /* CRITICAL */
    user-select: none;
    display: block;
}

.dem-emoji-picker span:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

/* Message Reactions Display */
.dem-msg-reactions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.75rem;
}

.dem-reaction-badge {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
    color: #666;
}

/* Message Timestamp */
.dem-msg-timestamp {
    margin-top: 4px;
    font-size: 0.7rem;
    color: #999;
    font-style: italic;
}

/* Reaction Button - Below Message */
.dem-msg-react-btn {
    background: transparent !important;
    border: none !important;
    padding: 2px 4px !important;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 4px;
    display: inline-block;
}

.dem-msg-react-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.dem-chat-msg:hover .dem-msg-react-btn {
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE DESIGN - Media Queries
   ============================================ */

/* Hamburger Menu (Hidden on desktop) */
.dem-hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.dem-hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dem-accent-blue);
    border-radius: 2px;
    transition: all 0.3s;
}

.dem-hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.dem-hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.dem-hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Header container */
.dem-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Tablet: 768px - 1199px */
@media (max-width: 1199px) {
    .dem-container {
        width: 95%;
        padding: 15px;
    }

    .dem-main-grid {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }

    .dem-content-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .dem-chat-messages {
        max-height: calc(100vh - 350px) !important;
    }

    .dem-box-header h3 {
        font-size: 0.9rem;
    }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
    .dem-container {
        width: 100%;
        padding: 10px;
    }

    /* Single column layout */
    .dem-main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Video maintains 16:9 */
    .dem-video-container {
        border-radius: 8px;
    }

    /* Content boxes stacked */
    .dem-content-boxes {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }

    .dem-content-box {
        border-radius: 8px;
    }

    .dem-box-header {
        padding: 12px 15px;
    }

    .dem-box-header h3 {
        font-size: 0.85rem;
    }

    .dem-box-content {
        padding: 15px;
        min-height: 80px;
    }

    /* Sidebar full width */
    .dem-sidebar-panel {
        height: auto;
        max-height: 500px;
        border-radius: 8px;
    }

    .dem-chat-messages {
        max-height: 350px !important;
        padding: 12px;
        gap: 12px;
    }

    /* Touch-friendly buttons */
    .dem-react-btn,
    .dem-msg-react-btn,
    #demChatSendBtn,
    #demEmojiTrigger {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.1rem;
    }

    .dem-chat-input-area input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Tabs */
    .dem-sidebar-tabs {
        gap: 5px;
    }

    .dem-tab {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* Navigation */
    .dem-nav-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Chat messages */
    .dem-chat-msg {
        margin-bottom: 15px;
    }

    .dem-chat-avatar {
        width: 32px;
        height: 32px;
    }

    .dem-msg-timestamp {
        font-size: 0.65rem;
    }

    /* Reaction bar */
    .dem-reaction-bar {
        padding: 8px;
        gap: 8px;
    }

    .dem-reaction-bar button {
        font-size: 1.2rem;
        padding: 6px 10px;
    }

    /* Emoji picker */
    .dem-emoji-picker {
        max-width: 280px;
    }

    .dem-emoji-picker span {
        font-size: 1.3rem;
        padding: 8px;
    }
}

/* Small mobile: < 480px */
@media (max-width: 479px) {
    .dem-container {
        padding: 5px;
    }

    .dem-main-grid {
        gap: 10px;
    }

    .dem-box-header h3 {
        font-size: 0.8rem;
    }

    .dem-tab {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .dem-chat-messages {
        max-height: 300px !important;
        padding: 10px;
    }
}

/* ============================================
   QUESTIONS & ANSWERS STYLES
   ============================================ */

.dem-questions-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fafafa;
    min-height: 0;
}

.dem-question-item {
    background: var(--dem-white);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--dem-border);
    transition: all 0.2s;
}

.dem-question-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dem-question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.dem-question-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dem-question-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dem-question-meta strong {
    font-size: 0.85rem;
    color: var(--dem-text-dark);
}

.dem-question-time {
    font-size: 0.7rem;
    color: #999;
}

.dem-question-text {
    font-size: 0.9rem;
    color: var(--dem-text-dark);
    line-height: 1.5;
    margin: 8px 0;
}

.dem-question-answer {
    background: #f0f8ff;
    border-left: 3px solid var(--dem-accent-blue);
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.dem-question-answer strong {
    color: var(--dem-accent-blue);
    display: block;
    margin-bottom: 5px;
}

.dem-question-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
}

.dem-vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: #666;
}

.dem-vote-btn:hover {
    background: #f5f5f5;
    border-color: var(--dem-accent-blue);
}

.dem-vote-btn.voted {
    background: var(--dem-accent-blue);
    border-color: var(--dem-accent-blue);
    color: white;
}

.dem-vote-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.dem-vote-btn .vote-count {
    font-weight: 600;
}

.dem-question-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid var(--dem-border);
    flex-shrink: 0;
}

.dem-question-input-area textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--dem-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 8px;
}

.dem-question-input-area textarea:focus {
    outline: none;
    border-color: var(--dem-accent-blue);
}

#demQuestionSubmitBtn {
    background: var(--dem-gold);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    width: 100%;
    display: block !important;
}

#demQuestionSubmitBtn:hover {
    background: #C19B2F;
    transform: translateY(-1px);
}


background: none;
border: none;
cursor: pointer;
font-size: 1rem;
color: #ccc;
transition: opacity 0.2s;
}

.dem-msg-react-btn:hover {
    color: var(--dem-accent-gold);
}