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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
}

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

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #764ba2;
}

button:active {
    transform: scale(0.98);
}

.messages-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.message-box:hover {
    background: #efefef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-box.voted {
    border-left-color: #ffd700;
    background: #fffbf0;
}

.message-text {
    flex: 1;
}

.upvote-btn {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.upvote-btn:hover {
    background: #764ba2;
    transform: scale(1.05);
}

.upvote-btn:active {
    transform: scale(0.98);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 30px 0;
}

.status {
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.status.sending {
    display: block;
    background: #fffacd;
    color: #664d03;
}

.status.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}
