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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card h1 {
    color: #333;
    margin-bottom: 10px;
}

.card h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.info {
    color: #777;
    font-size: 0.9rem;
    margin: 20px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    background: #667eea;
    color: white;
}

.btn-logout {
    background: #dc3545;
    color: white;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1rem;
}

.question {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.question h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.question-text {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.file-label {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.success-card {
    text-align: center;
}

.checkmark {
    font-size: 5rem;
    margin-bottom: 20px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.default-credentials {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.default-credentials code {
    background: #ddd;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Dashboard styles */
.dashboard .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard .header h1 {
    color: white;
}

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

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #777;
    font-size: 0.95rem;
    margin-top: 5px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.data-table tr:hover {
    background: #f8f9fa;
}

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

.answer-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.answer-card h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.answer-text {
    margin-bottom: 15px;
}

.answer-text p {
    margin-top: 8px;
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
}

.answer-file {
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.answer-file.no-file {
    color: #999;
}

.meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    .dashboard .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
}
