/* Main Container */
.vote-container {
    width: calc(100% - 4.4em);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    gap: 2rem;
    color: var(--text-secondary-color);
    padding: 1rem 2rem 0 2rem;
    position: relative;
    background-color: var(--body-bg-color);
}

/* Header */
.vote-container h1 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0;
}

/* Form Groups */
.vote-form-group {
    margin-bottom: 30px;
}

.vote-form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Title Input */
.vote-title {
    width: 100%;
    padding: 15px;
    background-color: var(--input-bg-color);
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    color: var(--text-secondary-color);
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.vote-title:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 166, 23, 0.25);
}

.vote-title::placeholder {
    color: var(--vote-placeholder-color);
    font-style: italic;
}

/* Options Section */
.vote-options-section {
    margin-bottom: 40px;
    position: relative;
}

.vote-options-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.vote-options-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

/* Option Inputs */
.vote-option-input {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    position: relative;
}

.vote-choises {
    flex: 1;
    padding: 12px 15px;
    background-color: var(--input-bg-color);
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    color: var(--text-secondary-color);
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.vote-choises:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 166, 23, 0.25);
}

.vote-choises::placeholder {
    color: var(--vote-placeholder-color);
    font-style: italic;
}

/* Option Controls */
.option-controls {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.btn-remove {
    background-color: var(--vote-btn-remove-bg);
    color: var(--text-secondary-color);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background-color: var(--vote-btn-remove-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-remove:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

/* Add Option Button */
.btn-add {
    background-color: var(--primary-color);
    color: var(--vote-btn-text-color);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-add:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-add:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.btn-add::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-add:hover::after {
    animation: ripple 0.6s ease-out;
}

/* Submit Button */
.vote-button {
    background-color: var(--primary-color);
    color: var(--vote-btn-text-color);
    border: none;
    border-radius: 4px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.vote-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vote-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.vote-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.vote-button:hover::after {
    animation: ripple 0.6s ease-out;
}

/* Error Messages */
.error {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.error::before {
    content: "⚠️";
    margin-right: 5px;
}

/* Empty State */
.empty-options-message {
    color: var(--text-muted-color);
    font-style: italic;
    padding: 10px 0;
}

/* Animations */
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vote-container {
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .vote-container h1 {
        font-size: 1.5rem;
    }
    
    .vote-option-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .option-controls {
        margin-left: 0;
        margin-top: 8px;
        justify-content: flex-end;
    }
}