/**
 * Election Vote Widget Styles
 * Anzeige für aktive Leader-Wahlen
 */

.election-vote-widget {
    position: fixed;
    top: 20px;
    left: 120px; /* Top left, right of navigation island */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 998;
    max-width: 400px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.election-vote-widget.expanded {
    max-width: 500px;
}

.election-vote-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 12px;
    color: #ffffff;
}

.election-vote-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.election-vote-info {
    flex: 1;
}

.election-vote-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.election-vote-time {
    font-size: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.election-vote-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    color: #ffffff;
}

.election-vote-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.election-vote-manage {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    color: #ffffff;
    text-decoration: none;
}

.election-vote-manage:hover {
    background: rgba(255, 255, 255, 0.3);
}

.election-vote-leader-info {
    padding: 20px;
    text-align: center;
    color: #6366f1;
}

.election-vote-leader-info svg {
    margin-bottom: 12px;
}

.election-vote-leader-info span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.election-vote-manage-link {
    display: inline-block;
    padding: 8px 16px;
    background: #6366f1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.election-vote-manage-link:hover {
    background: #4f46e5;
}

.election-vote-widget.expanded .election-vote-toggle svg {
    transform: rotate(180deg);
}

.election-vote-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.election-vote-form.active {
    max-height: 600px;
}

.election-vote-form form {
    padding: 20px;
}

.election-vote-form h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.election-vote-candidates {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.election-candidate-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.election-candidate-option:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.02);
}

.election-candidate-option input[type="radio"]:checked + .election-candidate-info {
    font-weight: 700;
}

.election-candidate-option:has(input[type="radio"]:checked) {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.election-candidate-option input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

.election-candidate-info {
    flex: 1;
}

.election-candidate-info strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.election-candidate-info small {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.election-vote-submit {
    width: 100%;
    padding: 12px;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.election-vote-submit:hover {
    background: #4f46e5;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.election-vote-voted {
    padding: 20px;
    text-align: center;
    color: #10b981;
}

.election-vote-voted svg {
    margin-bottom: 12px;
}

.election-vote-voted span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.election-vote-voted small {
    display: block;
    font-size: 12px;
    color: #64748b;
}

/* Responsive */
