:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

#app {
    max-width: 600px;
    margin: 2em auto;
    background: #fff;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

h1 {
    text-align: center;
    color: #333;
}

#auth,
#main {
    display: flex;
    flex-direction: column;
}

input,
textarea {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 0.5em 1em;
    margin-right: 0.5em;
    background: var(--primary);
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: var(--primary-dark);
}

#posts {
    margin-top: 1em;
}

.post {
    border-bottom: 1px solid #eee;
    padding: 0.5em 0;
}

.post:last-child {
    border-bottom: none;
}

.hidden {
    display: none;
}
