/* 전역 스타일 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;

    /* 세로 전체 중앙 정렬 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    /* 반응형을 위한 기본 너비 설정 */
    max-width: 600px;
    width: 100%;
}

h1 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

/* 로그아웃 버튼 스타일 */
.logout-button {
    display: inline-block;
    margin-bottom: 20px;
    background-color: #dc3545; /* 붉은색 계열 */
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.logout-button:hover {
    background-color: #c82333;
}

/* 폼 레이아웃 */
.form-layout {
    width: 100%;
    margin-top: 20px;
}

/* 폼 그룹(라벨 + 입력/셀렉트 한 줄) */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* 라벨 */
.form-group > label {
    min-width: 140px;  /* 라벨 영역 너비 */
    margin-right: 10px;
}

/* 셀렉트, 인풋 공통 스타일 */
select,
input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 제출 버튼 */
.submit-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #4CAF50; /* 초록색 */
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.button:hover {
    background-color: #45a049; /* Hover 시 더 어두운 초록색 */
}

.submit-button:hover {
    background-color: #0056b3;
}

/* 오디오 플레이어 영역 여백 */
#audio-player {
    margin-top: 20px;
}

/* ================ 반응형 미디어 쿼리 ================ */

/* 화면이 480px 이하(작은 스마트폰)일 때 */
@media (max-width: 480px) {
    /* 전체 폰트 크기 조금 줄이기 */
    body {
        font-size: 14px;
    }

    /* 폼 그룹: 라벨과 셀렉트를 세로 배치 */
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group > label {
        min-width: auto;  /* 고정된 라벨 폭 해제 */
        margin-right: 0;
        margin-bottom: 5px; /* 라벨 아래쪽 공간 확보 */
    }
}

/* 네비게이션 영역 */
.navigation {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-button, .logout-button {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-button {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.nav-button:hover {
    background-color: #0056b3;
}

.logout-button {
    background-color: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
}

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

/* 네비게이션 버튼들 */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* 로그인 타입 버튼 스타일 */
.login-type-buttons {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.professor-login-btn {
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.professor-login-btn:hover {
    background-color: #357abd;
}

/* 로그인 섹션 스타일 */
#web-login-section {
    margin-top: 20px;
}

.login-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}

/* 헤더 스타일 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* 로그아웃 버튼 스타일 */
.logout-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* 환자 데이터 조회 페이지 스타일 */
.patient-list {
    margin: 20px 0;
}

.patient-data {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.survey-data {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.date-filter {
    margin: 20px 0;
}
