* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, p {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

form {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    align-items: center;
}

input, select, button {
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

input, select {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.button,
.button-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    background-color: #ecf0f1;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.button:hover {
    background-color: #e74c3c;
    color: white;
}

.button-link:hover {
    background-color: #3498db;
    color: white;
}

.results-link {
    display: inline-block;
    font-weight: bold;
    color: green;
    margin-top: 5px;
}

.results-link::before {
    content: "→ ";
}

.bar-container {
    height: 30px;
    background-color: #f1f1f1;
    border-radius: 6px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bar {
    height: 100%;
    text-align: right;
    line-height: 30px;
    color: white;
    font-weight: 600;
    transition: width 0.5s ease-in-out;
    position: relative;
    padding-right: 10px;
    box-sizing: border-box;
}

.bar-container.empty::after {
    content: "0%";
    position: absolute;
    left: 10px;
    top: 0;
    line-height: 30px;
    color: #999;
    font-size: 0.9rem;
}

.vote-detail {
    position: absolute;
    right: 10px;
    top: -20px;
    font-size: 0.8rem;
    color: #2c3e50;
}

.poolt {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.vastu {
    background: linear-gradient(to right, #e74c3c, #c0392b);
}

.error {
    color: #e74c3c;
    margin-top: 5px;
    font-size: 0.9rem;
    width: 100%;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-button {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.logout-button:hover {
    background-color: #dde4e7;
}

.vote-count {
    display: inline-block;
    background-color: #ecf0f1;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.9rem;
    margin-left: 5px;
}
