.poll-creator-container {
margin-top: 15px;
background: #1e2433;
border: 1px solid rgba(74, 158, 255, 0.1);
border-radius: 8px;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
overflow: hidden;
max-height: 0;
opacity: 0;
transform: translateY(-10px);
z-index: 20;
position: relative;
}

.poll-creator-container.show {
max-height: 800px;
opacity: 1;
transform: translateY(0);
overflow-y: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}

.poll-creator-container.show::-webkit-scrollbar {
display: none;
}

.poll-creator-content {
padding: 12px;
}

.poll-creator-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.poll-creator-title {
display: flex;
align-items: center;
gap: 6px;
font-size: 14px;
font-weight: 600;
color: rgba(255, 255, 255, 0.9);
}

.poll-creator-title i {
color: #4a9eff;
}

.poll-creator-close {
background: none;
border: none;
color: rgba(255, 255, 255, 0.4);
font-size: 16px;
cursor: pointer;
padding: 4px;
border-radius: 4px;
transition: all 0.2s ease;
}

.poll-creator-close:hover {
color: rgba(255, 255, 255, 0.6);
background: rgba(255, 255, 255, 0.1);
}

.poll-question-section {
margin-bottom: 12px;
}

.poll-question-section label {
display: block;
font-size: 12px;
font-weight: 500;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 6px;
}

.poll-input-wrapper {
position: relative;
}

.poll-input-wrapper input {
width: 100%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
padding: 8px 12px;
color: white;
font-size: 13px;
outline: none;
transition: all 0.3s ease;
}

.poll-input-wrapper input:focus {
border-color: rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.08);
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.poll-input-wrapper input::placeholder {
color: rgba(255, 255, 255, 0.4);
}

.poll-char-count {
position: absolute;
bottom: -16px;
right: 0;
font-size: 10px;
color: rgba(255, 255, 255, 0.4);
}

.poll-options-section {
margin-bottom: 12px;
}

.poll-options-section label {
display: block;
font-size: 12px;
font-weight: 500;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 6px;
}

.poll-options-list {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 8px;
}

.poll-creator-option {
display: flex;
align-items: center;
gap: 6px;
}

.poll-creator-option input {
flex: 1;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 4px;
padding: 6px 8px;
color: white;
font-size: 12px;
outline: none;
transition: all 0.3s ease;
}

.poll-creator-option input:focus {
border-color: rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.08);
}

.poll-creator-option input::placeholder {
color: rgba(255, 255, 255, 0.4);
}

.poll-option-remove {
background: none;
border: none;
color: rgba(255, 255, 255, 0.4);
font-size: 10px;
cursor: pointer;
padding: 4px;
border-radius: 3px;
transition: all 0.2s ease;
min-width: 24px;
min-height: 24px;
display: flex;
align-items: center;
justify-content: center;
}

.poll-option-remove:hover {
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
}

.poll-add-option {
background: none;
border: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.6);
padding: 6px 8px;
border-radius: 4px;
font-size: 11px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 4px;
}

.poll-add-option:hover {
border-color: rgba(255, 255, 255, 0.2);
color: rgba(255, 255, 255, 0.8);
background: rgba(255, 255, 255, 0.05);
}

.poll-settings-section {
margin-bottom: 12px;
}

.poll-duration label {
display: block;
font-size: 12px;
font-weight: 500;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 6px;
}

.poll-duration-options {
display: flex;
gap: 6px;
}

.poll-duration-btn {
flex: 1;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.6);
padding: 6px 8px;
border-radius: 4px;
font-size: 11px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
}

.poll-duration-btn:hover {
border-color: rgba(255, 255, 255, 0.2);
color: rgba(255, 255, 255, 0.8);
background: rgba(255, 255, 255, 0.08);
}

.poll-duration-btn.active {
border-color: #4a9eff;
color: #4a9eff;
background: rgba(74, 158, 255, 0.1);
}

.poll-actions {
display: flex;
gap: 8px;
align-items: stretch;
}

.poll-cancel-btn {
flex: 1;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.7);
padding: 8px 12px;
border-radius: 6px;
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}

.poll-cancel-btn:hover {
border-color: rgba(255, 255, 255, 0.2);
color: rgba(255, 255, 255, 0.9);
background: rgba(255, 255, 255, 0.08);
}

.poll-create-btn {
flex: 2;
background: #4a9eff;
border: 1px solid #4a9eff;
color: white;
padding: 8px 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 36px;
}

.poll-create-btn:hover:not(:disabled) {
background: #3b8eef;
border-color: #3b8eef;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.poll-create-btn:disabled {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.3);
cursor: not-allowed;
transform: none;
box-shadow: none;
}

.poll-preview-container {
margin-top: 15px;
background: rgba(74, 158, 255, 0.05);
border: 1px solid rgba(74, 158, 255, 0.2);
border-radius: 8px;
padding: 16px;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
overflow: hidden;
max-height: 0;
opacity: 0;
transform: translateY(-10px);
z-index: 20;
position: relative;
}

.poll-preview-container.show {
max-height: 500px;
opacity: 1;
transform: translateY(0);
}

.poll-preview {
position: relative;
}

.poll-preview-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}

.poll-preview-title {
display: flex;
align-items: center;
gap: 6px;
font-size: 14px;
font-weight: 500;
color: #4a9eff;
}

.poll-preview-remove {
background: none;
border: none;
color: rgba(255, 255, 255, 0.4);
font-size: 12px;
cursor: pointer;
padding: 4px;
border-radius: 4px;
transition: all 0.2s ease;
}

.poll-preview-remove:hover {
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
}

.poll-preview-content {
display: flex;
flex-direction: column;
gap: 8px;
}

.poll-preview-question {
font-size: 14px;
font-weight: 500;
color: rgba(255, 255, 255, 0.8);
}

.poll-preview-options {
display: flex;
flex-direction: column;
gap: 4px;
}

.poll-preview-option {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: rgba(255, 255, 255, 0.6);
}

.poll-preview-option::before {
content: '•';
color: rgba(255, 255, 255, 0.3);
}

.poll-preview-duration {
display: flex;
align-items: center;
gap: 4px;
font-size: 12px;
color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
.poll-creator-container {
z-index: 60;
}

.poll-preview-container {
z-index: 60;
}

.poll-creator-content {
padding: 10px;
}

.poll-creator-header {
margin-bottom: 10px;
padding-bottom: 6px;
}

.poll-duration-options {
flex-direction: column;
}

.poll-actions {
flex-direction: row;
gap: 8px;
}

.poll-cancel-btn {
width: 30%;
min-height: 36px;
flex-shrink: 0;
}

.poll-create-btn {
width: 70%;
min-height: 36px;
flex-shrink: 0;
}
}
