.form-container {
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-container button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #45a049;
}

/* Card alignment: pin all content to top so spacing stays tight */
.hextra-card > div {
    margin-top: 0 !important;
}

/* Feedback Widget Styling */
.feedback-widget {
    transition: all 0.2s ease;
    opacity: 1;
}

.feedback-widget:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.dark .feedback-widget:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feedback-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.feedback-btn {
    position: relative;
    cursor: pointer;
    min-height: 2.25rem;
}

.feedback-btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

/* Voted state colors */
.feedback-up:disabled {
    background-color: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: rgb(34, 197, 94) !important;
}

.feedback-down:disabled {
    background-color: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: rgb(239, 68, 68) !important;
}

/* Dark mode voted state colors */
.dark .feedback-up:disabled {
    background-color: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.5) !important;
    color: rgb(74, 222, 128) !important;
}

.dark .feedback-down:disabled {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
    color: rgb(248, 113, 113) !important;
}

/* Vote count badge */
.vote-count {
    display: none;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #475467;
}

.vote-count::before {
    content: '·';
    opacity: 0.6;
}

.dark .vote-count {
    color: #cbd5f5;
}

/* Feedback message */
.feedback-message {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .feedback-widget {
        gap: 0.75rem;
    }

    .feedback-btn {
        width: 100%;
    }
}

@media (min-width: 640px) {
    .feedback-controls {
        width: auto;
        justify-content: flex-start;
    }
}

@media (min-width: 1280px) {
    .hextra-toc .feedback-widget {
        width: 100%;
        margin-top: 1.5rem;
        padding: 1rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 0.75rem;
        background: rgba(249, 250, 251, 0.75);
        box-shadow: none;
    }

    .dark .hextra-toc .feedback-widget {
        border-color: rgba(148, 163, 184, 0.25);
        background: rgba(15, 23, 42, 0.6);
    }

    .hextra-toc .feedback-widget .feedback-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .hextra-toc .feedback-widget .feedback-message {
        text-align: left;
    }
}
