/* Simple, warm, minimal styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: linear-gradient(180deg, #faf9f7 0%, #f5f3ef 100%);
    color: #2d2a26;
    min-height: 100vh;
    line-height: 1.6;
}

.bh {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.7rem;
    color: #b5b0a8;
    font-family: inherit;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 24px 120px;
    text-align: center;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
    color: #1a1815;
}

.question-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question {
    font-size: 1.6rem;
    font-style: italic;
    color: #4a453d;
    margin-bottom: 16px;
    line-height: 1.5;
}

.submitted-by {
    font-size: 0.85rem;
    color: #7a756e;
    margin-bottom: 0;
    font-style: normal;
    letter-spacing: 0.02em;
}

.explainer {
    font-size: 1rem;
    color: #4a453d;
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: left;
}

.explainer-small {
    font-size: 0.9rem;
    color: #7a756e;
    margin-bottom: 16px;
    line-height: 1.6;
    text-align: left;
}

.explainer-note {
    font-size: 0.8rem;
    color: #9b9590;
    margin-bottom: 28px;
    line-height: 1.6;
    text-align: left;
    font-style: italic;
}

@media (max-width: 600px) {
    .explainer {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    .explainer-small {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    .explainer-note {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }
    .container {
        padding: 40px 20px 100px;
    }
    h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

/* Bottom controls */
.bottom-controls {
    margin-top: auto;
    padding-top: 40px;
}

.progress-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Progress bar - subtle */
.progress-container {
    width: 80px;
    height: 3px;
    background: #e0ddd8;
    border-radius: 2px;
    overflow: hidden;
    transition: opacity 0.3s;
}

.progress-bar {
    height: 100%;
    background: #a09080;
    width: 0%;
    transition: width 1s linear;
    border-radius: 2px;
}

.timer {
    font-size: 0.75rem;
    color: #a09890;
    font-variant-numeric: tabular-nums;
    min-width: 24px;
}

button, .btn {
    background: #2d2a26;
    color: #faf9f7;
    border: none;
    padding: 16px 44px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.02em;
}

button:hover, .btn:hover {
    background: #4a453d;
    transform: translateY(-1px);
}

button:disabled {
    background: #b5b0a8;
    cursor: not-allowed;
    transform: none;
}

.footer-link {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-link a {
    color: #8b8580;
    text-decoration: none;
}

.footer-link a:hover {
    color: #4a453d;
    text-decoration: underline;
}

/* Submit page */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}

input[type="text"], textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ddd;
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    margin-top: 4px;
}

.prefix {
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
}

.success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    padding: 20px;
    margin-bottom: 30px;
    color: #2e7d32;
}

.error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    padding: 20px;
    margin-bottom: 30px;
    color: #c62828;
}

/* Admin page */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.admin-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #222;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f5f5f5;
    font-weight: normal;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-right: 4px;
}

.approve-btn {
    background: #4caf50;
}

.reject-btn {
    background: #f44336;
}

.delete-btn {
    background: #f44336;
}

.login-form {
    max-width: 300px;
    margin: 100px auto;
    text-align: center;
}

.login-form input {
    margin-bottom: 16px;
}

.recent-list {
    background: #fff;
    border: 1px solid #ddd;
}

.recent-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-time {
    color: #888;
    font-size: 0.8rem;
}

.chart-placeholder {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    text-align: center;
    color: #888;
}
