* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f0f0f0;
    padding: 10px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.poll-section, .log-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#poll-question {
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.user-search {
    margin-bottom: 15px;
}

#user-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#user-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

#user-results div {
    padding: 8px;
    cursor: pointer;
}

#user-results div:hover {
    background: #f0f0f0;
}

.poll-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.option-actions button {
    padding: 5px 10px;
    margin-left: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.vote-btn {
    background: #4CAF50;
    color: white;
}

.remove-btn {
    background: #f44336;
    color: white;
}

.log-section h2 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

#log div {
    padding: 5px;
    margin: 5px 0;
    border-radius: 4px;
}

.log-voted { background: #e6ffe6; }
.log-removed { background: #ffe6e6; }


body {
    background: #f0f0f0;
    padding: 20px;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #45a049;
}

p {
    text-align: center;
    margin-top: 15px;
}

p a {
    color: #2196F3;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

#message {
    text-align: center;
}

/* Existing styles for poll and log sections */
.poll-section, .log-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.loggedInUser{
	text-align: right;
	text-decoration: none;
	padding: 10px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.menu {
    background-color: #333;
    padding: 5px;
    display: flex; /* Use flexbox for layout control */
    justify-content: space-between; /* Push span to left, links to right */
    align-items: center; /* Vertically center items */
    margin-bottom: 10px;
}

.menu span {
    color: white;
    margin-left: 10px; /* Add left margin for spacing */
    font-weight: bold; /* Make the span text stand out */
}

.menu a {
    color: white;
    text-decoration: none;
    margin: 0 5px; /* Reduce margin for tighter button spacing */
    padding: 8px 15px; /* Increase padding for button-like appearance */
    border-radius: 5px; /* Rounded corners for button look */
    background-color: #4CAF50; /* Green background for obvious buttons (can change color) */
    border: 1px solid #45a049; /* Subtle border for depth */
    transition: background-color 0.3s, color 0.3s; /* Smooth hover transition */
    font-weight: bold; /* Bold text for emphasis */
    display: inline-block; /* Ensure proper button sizing */
}

.menu a:hover {
    background-color: #45a049; /* Darker green on hover */
    color: #fff; /* Keep text white on hover */
    text-decoration: none; /* Remove underline on hover if any */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add subtle shadow for button effect */
}

/* Optional: Add focus styles for accessibility */
.menu a:focus {
    outline: 2px solid #ffeb3b; /* Yellow outline for focus */
    outline-offset: 2px;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    input, .btn {
        font-size: 14px;
        padding: 8px;
    }

    #message {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .poll-option {
        flex-direction: column;
        align-items: flex-start;
    }
    .option-actions {
        margin-top: 10px;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
