.veryfi-poll, .poll-form {
    max-width: 600px;
    padding: 2em;
    margin: 2em;
    background: rgba(255,255,255,0.4);
    border: 1px solid #fff;
    border-radius: 8px;
    box-shadow: 0 2px 14px 1px rgba(23, 28, 58, .1);
    padding-top: 1.7em !important
}

.veryfi-poll h3 {
    margin: 0 0 1.5em;
    font-size: 1.2em;
    color: #333;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    width: 100% !important;
}

.veryfi-poll .poll-subtitle {
    margin-top: 0px !important;
    width: 100% !important;
}

.veryfi-poll-option {
    display: flex;
    align-items: center;
    padding: 1em;
    border: 0px solid #e1e1e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    background: #fff;
}

.veryfi-poll-option:hover {
    background-image: linear-gradient(298.79deg, #2db5d2 -23.47%, #00fa6c 92.01%, #2db5d2 214.83%);
    --tw-text-opacity: 1;
    color: rgb(var(--color-blue) / var(--tw-text-opacity));
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) 
            var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) 
            var(--tw-drop-shadow);
}

.veryfi-poll-option input[type="radio"] {
    margin-right: 1em;
    display: none! important;
}

.veryfi-poll-option input[type="radio"]:checked + .option-text {
    font-weight: 500;
}

.veryfi-poll-option:has(input[type="radio"]:checked) {
    background-color: #00aa00;
    border-color: #00aa00;
}

.veryfi-poll-option label {
    flex-grow: 1;
    cursor: pointer;
}

.checkmark {
    margin-left: 8px;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.vote-button {
    width: 100%;
    padding: 1em;
    background: #0a66c2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1em;
}

.vote-button:hover {
    background: #004182;
}

.result-item {
    margin-bottom: 15px;
}

.result-label {
    margin-bottom: 5px;
    font-weight: 500;
    padding: 0 15px;
    line-height: 56px;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-text {
    flex-grow: 1;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 400;
}

.font-weight-bold {
    font-weight: 500;
}

.percentage-text {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
}

.result-bar {
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: #00fa6c;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 8px;
}

.total-votes {
    margin-top: 20px;
    text-align: right;
    color: #666;
    font-size: 0.9em;
}

/* Admin styles */
.wp-admin .veryfi-poll-block {
    padding: 20px;
    border: 1px solid #ddd;
    background: #f8f8f8;
}

.option-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.option-row {
    display: flex;
    align-items: center;  /* Add this to vertically center items */
    gap: 10px;
    margin-bottom: 10px;
}

.option-row .components-base-control {
    flex: 1;  /* Add this to make the input take remaining space */
    margin-bottom: 0;  /* Add this to remove any bottom margin */
}

.option-row .components-text-control__input {
    width: 100%;  /* Add this to make input fill the container */
}

.poll-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.poll-preview {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

/* Admin styles */

.components-modal__frame {
    max-width: 800px !important;  /* Increase this value to make it wider */
    width: 90% !important;        /* This ensures it's responsive */
}

.components-modal__content {
    margin: 20px;  /* Optional: adds some padding inside the modal */
}

/* Optional: adjust the modal position if needed */
.components-modal__screen-overlay {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}
