body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    font-weight: 600;
}

#resultSection .alert {
    margin-bottom: 1rem;
}

.error-item {
    border-left: 3px solid #dc3545;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.improvement-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.improvement-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.improvement-item.border-start {
    border-color: #6c757d !important;
}

.correction-line {
    font-size: 1.1rem;
    line-height: 1.8;
}

.original-text {
    text-decoration: line-through;
    color: #dc3545;
    background-color: #fee;
    padding: 2px 6px;
    border-radius: 3px;
}

.corrected-text {
    color: #28a745;
    font-weight: 500;
    background-color: #efe;
    padding: 2px 6px;
    border-radius: 3px;
}

.explanation {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.diagnosis-chart {
    margin-top: 2rem;
}

.weakness-item {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.weakness-high {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.weakness-medium {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
}

.weakness-low {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    /* 네비게이션 */
    .navbar-nav {
        text-align: center;
    }
    
    /* 카드 여백 조정 */
    .card {
        margin-bottom: 1rem;
    }
    
    /* 폼 요소 */
    .form-label {
        font-size: 0.9rem;
    }
    
    textarea {
        font-size: 16px; /* iOS 줌 방지 */
    }
    
    /* 버튼 크기 조정 */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* 테이블 반응형 */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    /* 테이블 날짜 컬럼 폭 조정 */
    #historyTable th:first-child,
    #historyTable td:first-child {
        width: 25%;
    }
    
    /* 액션 버튼 컬럼 폭 조정 */
    #historyTable th:last-child,
    #historyTable td:last-child {
        width: 30%;
    }
    
    /* 모달 조정 */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        font-size: 0.9rem;
    }
    
    /* 결과 섹션 */
    .improvement-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .correction-line {
        font-size: 1rem;
    }
    
    /* 진단 결과 */
    .weakness-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* 알림 메시지 */
    .alert {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* 페이지네이션 */
    .pagination {
        font-size: 0.85rem;
    }
    
    .page-link {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    /* 초소형 기기 */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* 버튼 그룹 */
    .btn-group-vertical {
        width: 100%;
    }
    
    .btn-group-vertical .btn {
        text-align: left;
    }
}