@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

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

body {
    font-family: 'VT323', monospace;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
    font-size: 18px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #1e1e1e;
    min-height: 100vh;
}

/* Typography */
h1 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 2.2em;
}

h2 {
    color: #f1f1f1;
    margin-bottom: 15px;
    font-size: 1.6em;
}

h3 {
    color: #f1f1f1;
    margin-bottom: 10px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

header p {
    color: #b0b0b0;
    font-size: 1.1em;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.consent-text {
    font-size: 0.8em;
    color: #999;
    margin-top: 8px;
    line-height: 1.4;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #e0e0e0;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #444;
    border-radius: 6px;
    font-size: 1em;
    background-color: #2c2c2c;
    color: #e0e0e0;
    transition: border-color 0.3s ease;
    font-family: 'VT323', monospace;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #5fa8d3;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
button, .button {
    background-color: #5fa8d3;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-family: 'VT323', monospace;
}

button:hover, .button:hover {
    background-color: #4a8db7;
}

button.secondary {
    background-color: #6c757d;
}

button.secondary:hover {
    background-color: #5a6268;
}

button.danger {
    background-color: #d9534f;
}

button.danger:hover {
    background-color: #c9302c;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-methods .form-group {
    margin-bottom: 0;
}

.contact-methods label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-methods input[type="radio"] {
    width: auto;
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.message.success {
    background-color: #2a4b34;
    color: #d4edda;
    border: 1px solid #3c6e47;
}

.message.error {
    background-color: #5a2d31;
    color: #f8d7da;
    border: 1px solid #843534;
}

/* Features List */
.features {
    margin-top: 40px;
    padding: 30px;
    background-color: #2c2c2c;
    border-radius: 8px;
}

.features ul {
    list-style-type: none;
    padding-left: 0;
}

.features li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5fa8d3;
    font-weight: bold;
}

/* Admin Styles */
.admin-nav {
    margin-bottom: 30px;
}

.admin-nav a {
    color: #5fa8d3;
    text-decoration: none;
    font-weight: 500;
}

.admin-nav a:hover {
    text-decoration: underline;
}

.admin-sections {
    display: grid;
    gap: 30px;
}

.admin-section {
    padding: 25px;
    background-color: #2c2c2c;
    border-radius: 8px;
    border-left: 4px solid #5fa8d3;
}

.admin-section p {
    color: #b0b0b0;
    margin-bottom: 15px;
}

/* Question Management */
.question-item {
    background: #1e1e1e;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #444;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #b0b0b0;
}

.difficulty {
    font-weight: bold;
}

.question-content, .question-answer, .question-hint {
    margin-bottom: 10px;
}

.question-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.question-actions button {
    padding: 8px 16px;
    font-size: 14px;
}

/* Status Indicators */
.status-indicators {
    display: grid;
    gap: 10px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.status-value {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.status-ok {
    background-color: #2a4b34;
    color: #d4edda;
}

.status-pending {
    background-color: #5a4b0c;
    color: #fff3cd;
}

.status-error {
    background-color: #5a2d31;
    color: #f8d7da;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-actions button {
    flex: 1;
    min-width: 120px;
}

/* Dashboard Styles */
.stats {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.stats p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.current-question {
    background-color: #2c3e50;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #5fa8d3;
}

.question-text {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.response-form textarea {
    margin-bottom: 15px;
}

.buttons {
    display: flex;
    gap: 10px;
}

.no-question {
    text-align: center;
    padding: 40px;
    color: #b0b0b0;
    background-color: #2c2c2c;
    border-radius: 8px;
    margin-bottom: 30px;
}

.user-info {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.admin-link a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9em;
}

.admin-link a:hover {
    color: #5fa8d3;
}

/* Loading States */
.loading {
    text-align: center;
    color: #b0b0b0;
    font-style: italic;
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #2c2c2c;
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.admin-nav a,
.admin-nav button {
    text-decoration: none;
    color: #5fa8d3;
    font-size: 0.9em;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
}

.admin-nav a:hover,
.admin-nav button:hover {
    background-color: #333;
    text-decoration: none;
}

/* User Management */
.management-container {
    margin-top: 20px;
}

.user-management-header {
    margin-bottom: 20px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.user-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #333;
    border-bottom: 2px solid #444;
}

.user-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #444;
}

.user-table tr:hover {
    background-color: #2a2a2a;
}

.button.small {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* Stats Display */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    padding: 20px;
    border: 1px solid #444;
    border-radius: 8px;
    text-align: center;
    background: #2c2c2c;
}

.stat-item h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.stat-item p {
    font-size: 1.5em;
    font-weight: bold;
    color: #5fa8d3;
}

.user-details {
    margin-top: 30px;
}

.user-list {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.user-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2c2c2c;
    align-items: center;
}

.user-item strong {
    color: #e0e0e0;
}

.user-item span {
    font-size: 0.9em;
    color: #b0b0b0;
}

.error {
    text-align: center;
    padding: 30px;
    color: #d9534f;
    font-weight: bold;
}

/* Preview Question Styles */
.preview-question {
    background: #2c2c2c;
    border: 2px solid #444;
    color: #e0e0e0;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.preview-question:hover {
    border-color: #5fa8d3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.preview-question h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.question-teaser {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #f1f1f1;
}

.expand-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95em;
    color: #b0b0b0;
    font-weight: 500;
}

.chevron {
    font-size: 1.2em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.preview-question:hover .chevron {
    transform: translateY(2px);
}


/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 10px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .question-actions {
        flex-direction: column;
    }
}