* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 0; /* Remove padding to stick to top */
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95); /* Slight transparency looks good with background */
    min-height: 100vh; /* Make it stretch full height */
    padding: 20px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
header h1 {
    font-size: 1.5em;
    margin: 0;
    color: #2c3e50;
}
.lang-selector button {
    background: #eee;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
    color: #666;
}
.lang-selector button.active {
    background: #ff6b6b;
    color: white;
}
.info-panel {
    background: #fdf2f2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.info-panel p {
    margin: 0 0 10px 0;
}
.status {
    font-weight: bold;
    color: #444;
}
.add-option-panel {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
#new-option-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}
#add-option-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
#add-option-btn:hover {
    background-color: #ff5252;
}
#add-option-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.option-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s;
}
.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.option-content {
    display: flex;
    align-items: center;
    gap: 15px;
}
.vote-count {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff6b6b;
    min-width: 40px;
    text-align: center;
}
.option-text {
    font-size: 1.1em;
    word-break: break-word;
}
.vote-action {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vote-btn {
    background: white;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.vote-btn:hover {
    background: #ff6b6b;
    color: white;
}
.vote-btn.voted {
    background: #ff6b6b;
    color: white;
}
.vote-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
    background: white;
}
.vote-btn.voted:disabled {
    background: #ccc;
    color: white;
}
#footer-text {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #888;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}
.page-btn {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}
.page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.page-text {
    font-weight: bold;
    color: #444;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px 30px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}
.close-modal:hover {
    color: #333;
}
.result-item {
    margin-bottom: 15px;
}
.result-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
}
.result-bar-bg {
    background: #eee;
    border-radius: 8px;
    height: 20px;
    width: 100%;
    overflow: hidden;
}
.result-bar-fill {
    background: #ff6b6b;
    height: 100%;
    transition: width 0.5s ease;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 10px;
    }
    .add-option-panel {
        flex-direction: column;
    }
}
