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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 */
header {
    background: #4a90e2;
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

header h1 a {
    color: white;
    text-decoration: none;
}

nav {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav a, nav span {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

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

/* 카드 스타일 */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.test-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.english-sentence {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 18px;
    border-left: 4px solid #4a90e2;
}

textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

button, .btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    margin-top: 10px;
}

button:hover, .btn:hover {
    background: #357abd;
}

.btn-secondary {
    background: #6c757d;
}

.score {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
}

.passed {
    color: #28a745;
}

.failed {
    color: #dc3545;
}

/* 테이블 */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #4a90e2;
    color: white;
}

/* 반응형 */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    th, td {
        padding: 8px;
        font-size: 14px;
    }
    
    .english-sentence {
        font-size: 16px;
    }
    
    nav {
        gap: 10px;
    }
}

/* 로그인 폼 */
.login-form {
    max-width: 400px;
    margin: 50px auto;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* 진행률 */
.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-fill {
    background: #4a90e2;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}