/* Poll List Styles */
ul#questionsList { 
    list-style-type: none; 
    padding: 0; 
    display: flex; 
    flex-direction: column;
    gap: 10px; 
}

/* Poll Card Specific Styles */
li.item-card[data-item-type="question"] { 
    padding: 10px; 
}

/* Question Text */
.question-text { 
    font-size: 1.15em; 
    color: #f8f8f2; 
    margin-bottom: 10px; 
    word-break: break-word; 
    font-weight: bold; 
    text-align: center; 
    padding: 5px;
    box-sizing: border-box;
}
.question-text[contenteditable="true"] {
    outline: 1px solid #8be9fd; 
    background-color: #3a3c4e; 
    border-radius: 2px; 
    cursor: text;
    margin: 5px; 
    padding: 8px 5px; 
}
.question-text[contenteditable="true"]:focus {
    background-color: #2f313e; 
    outline-color: #bd93f9; 
}


/* Answers Container */
.answers-container { 
    display: flex; 
    flex-wrap: wrap;       
    justify-content: center; 
    gap: 8px;             
    margin-bottom: 10px;   
}

/* Individual Answer Block */
.answer-block { 
    background-color: #3a3c4e; 
    border: 1px solid #282a36; 
    padding: 8px; 
    width: 200px;  
    height: 120px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; /* Pushes .answer-actions to bottom */
    align-items: center; 
    box-sizing: border-box;
    border-radius: 3px; 
    text-align: center; 
}

.answer-block .answer-text { 
    font-size: 1em; /* Base size, JS will adjust */
    color: #f8f8f2; 
    word-break: break-word; 
    width: 100%;      
    flex-grow: 1; /* Allows text to take available vertical space */
    display: flex; 
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    margin-bottom: 6px; /* Space between text and actions */
    line-height: 1.2; 
    padding: 2px 0; 
    box-sizing: border-box;
}
.answer-block .answer-text[contenteditable="true"] {
    outline: 1px solid #8be9fd; 
    background-color: #282a36; 
    border-radius: 2px; 
    cursor: text;
    padding: 5px; 
    margin: -2px 0; /* Adjust if padding causes layout shifts */
}
.answer-block .answer-text[contenteditable="true"]:focus {
    background-color: #1e1f26; 
    outline-color: #bd93f9; 
}

.answer-block .answer-actions { 
    width: 100%;
    display: flex;
    justify-content: center; /* Center the button if it has max-width */
    flex-shrink: 0; /* Prevent this section from shrinking */
}

/* .vote-count is no longer a separate element styled here */

.answer-block .vote-button { 
    width: 100%; 
    max-width: 160px; 
    padding: 8px 5px; 
    display: flex;
    align-items: center;    
    justify-content: center; 
    gap: 5px; /* Space between "Vote" label and count */
    line-height: 1.2; 
    min-height: 36px; 
    box-sizing: border-box;
}

.answer-block .vote-button .vote-button-label {
    font-size: 1em; 
    font-weight: 700; 
}
.answer-block .vote-button .vote-button-count {
    font-size: 0.9em; 
    color: #f8f8f2; 
    opacity: 0.9;
    font-weight: normal; 
}

.answer-block .vote-button.voted-for { 
    background-color: #50fa7b !important; 
    color: #282a36 !important; 
    border-color: #50fa7b !important; 
}

.answer-block .vote-button.voted-for .vote-button-count {
    color: #282a36; 
    opacity: 1;
    font-weight: 700; 
}

li.item-card[data-item-type="question"] .item-actions {
    display: flex; 
    justify-content: flex-end; 
    width: 100%; 
    margin-top: 10px; 
    padding-top: 8px;  
}