* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f0eb;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
}
h1 { color: #5c3d2e; margin-bottom: 8px; font-size: 1.6em; }
h2 { color: #5c3d2e; margin-bottom: 12px; font-size: 1.3em; }
.subtitle { color: #8b6f47; margin-bottom: 24px; font-size: 0.95em; }
.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.counts {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.count-box {
    flex: 1;
    text-align: center;
    padding: 20px 12px;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
}
.count-box .number { font-size: 2.4em; display: block; }
.count-box .label { font-size: 0.85em; opacity: 0.9; }
.count-yes { background: #4a8c5c; }
.count-no { background: #c0392b; }
.count-pending { background: #7f8c8d; }
.comments-section { margin-top: 16px; }
.comment-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}
.comment-item:last-child { border-bottom: none; }
.comment-name { font-weight: 600; color: #5c3d2e; }
.comment-text { color: #555; margin-top: 2px; }

/* Response page */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-yes { background: #4a8c5c; }
.btn-no { background: #c0392b; }
.btn-submit { background: #5c3d2e; margin-top: 12px; }
.btn-change { background: #7f8c8d; font-size: 0.9em; padding: 10px 24px; margin-top: 12px; }
.button-group { display: flex; gap: 16px; justify-content: center; margin: 20px 0; }
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}
.response-confirmed {
    text-align: center;
    padding: 20px 0;
}
.response-confirmed .check { font-size: 3em; margin-bottom: 8px; }
.msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.msg-success { background: #d4edda; color: #155724; }
.msg-error { background: #f8d7da; color: #721c24; }

/* Admin */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; color: #5c3d2e; }
.form-group input, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
th { color: #5c3d2e; font-size: 0.85em; text-transform: uppercase; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}
.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: #f8d7da; color: #721c24; }
.action-link { color: #5c3d2e; text-decoration: none; font-size: 0.9em; }
.action-link:hover { text-decoration: underline; }
.nav { margin-bottom: 20px; display: flex; gap: 16px; align-items: center; }
.nav a { color: #5c3d2e; text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
footer { text-align: center; color: #999; font-size: 0.8em; padding: 20px 0; }
