/* analysis/static/styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes full height */
}

.container {
    display: flex;
    flex-direction: column;
    flex: 1; /* Allows content to grow and fill available space */
    overflow: hidden; /* Prevent overflow */
}

.content {
    margin-left: 270px; /* Margin to account for the fixed sidebar */
    padding: 30px 0px 0 40px;
    width: calc(100% - 270px); /* Width calculation to ensure it fits next to the sidebar */
    box-sizing: border-box; /* Include padding and border in the element's total width */
    min-height: 100vh; /* Ensure content area takes full viewport height */
    background-color: #f9f9f9; /* Optional: add background color for better contrast */
    align-items: center;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px; /* Adjust as necessary */
    background-color: #007bff; /* Button background color */
    color: white; /* Button text color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

a {
    text-decoration-line: none; /* 링크의 밑줄 제거 */
}

.upload-section {
    margin: 20px 0;
    padding: 20px;
    background: #e9e9e9;
    border-radius: 5px;
}

.drag-drop-area {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s, background-color 0.3s;
}
.drag-drop-area.active {
    border-color: #007bff; /* Change border color when active */
    background-color: #f0f8ff; /* Change background color when active */
}

.drag-drop-area p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.sidebar {
    display: flex;
    flex-direction: column; /* Arrange children vertically */
    width: 300px; /* Increased width for better layout */
    background-color: #f4f4f4;
    padding: 30px; /* Increased padding */
    height: 100vh; /* Full viewport height */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    overflow-y: auto; /* Add scroll if content overflows */
    box-sizing: border-box; /* Ensure padding is included in width */
}

.sidebar-header {
    display: flex;
    align-items: center; /* Center items vertically */
    margin-bottom: 30px; /* Space below header */
}

.sidebar-header .app-icon {
    font-size: 40px; /* Increase icon size */
    color: #007bff; /* Icon color */
    margin-right: 15px; /* Space between icon and text */
}

.sidebar-header h2 {
    font-size: 24px; /* Increase font size for heading */
    margin: 0; /* Remove margin for better alignment */
    color: #333; /* Text color */
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex: 1; /* Allow ul to take available space */
}

.sidebar ul li {
    margin-bottom: 15px; /* Space between items */
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: normal; /* Default font weight */
    font-size: 18px; /* Font size for links */
    display: flex; /* Use flexbox for icon and text alignment */
    align-items: center; /* Align items vertically */
    padding: 10px 15px; /* Padding for clickable area */
    border-radius: 10px; /* Rounded corners */
    transition: background-color 0.3s, color 0.3s, transform 0.3s, font-weight 0.3s; /* Smooth transitions */
}

.sidebar ul li a .menu-icon {
    font-size: 24px; /* Icon size */
    color: #1D192B; /* Icon color */
    margin-right: 10px; /* Space between icon and text */
}

.sidebar ul li a:hover {
    color: #1D192B; /* Change text color on hover */
    background-color: #E8DEF8; /* Background color on hover */
    transform: scale(1.05); /* Slightly increase font size on hover */
    font-weight: bold; /* Make font weight bold on hover */
}


.logout-button {
    display: block;
    width: 100%; /* Full width button */
    padding: 15px; /* Padding for button */
    background-color: #e74c3c;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px; /* Font size for button */
    margin-top: auto; /* Push button to the bottom */
    border: none; /* Remove border */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition */
}

.logout-button:hover {
    background-color: #c0392b; /* Darker shade on hover */
}


.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
    background-color: #f9f9f9;
}

.login-container h2 {
    margin-bottom: 20px;
    text-align: center; /* Center-align heading */
}

.login-container form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px; /* Restrict width for larger screens */
    box-sizing: border-box;
}

.login-container form div {
    margin-bottom: 15px;
    width: 100%;
}

.login-container form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.login-container form input,
.login-container form button {
    width: 100%; /* Ensure both input and button take full width of form */
    padding: 10px; /* Consistent padding for both inputs and button */
    border: 1px solid #ccc; /* Border for inputs; remove for button */
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding and border are included in width */
}

.login-container form input {
    border: 1px solid #ccc; /* Border for input fields */
}

.login-container form button {
    border: none; /* Remove border for button */
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.login-container form button:hover {
    background-color: #0056b3;
}

.login-container p {
    margin-top: 20px;
    font-size: 14px;
    text-align: center; /* Center-align paragraph text */
}


form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.table-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1; /* Allow the container to grow */
    overflow: hidden; /* Prevent overflow */
    display: flex;
    flex-direction: column;
}


table {
    width: 100%;
    border-collapse: collapse;
    text-align: center; /* 셀의 텍스트를 가로로 가운데 정렬 */
}

th, td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center; /* 가로 가운데 정렬 */
    vertical-align: middle; /* 세로 가운데 정렬 */
}

th {
    font-size: 1.3rem;
    background-color: #f4f4f4;
}

.table-container {
    max-height: calc(100vh - 200px); /* 뷰포트에 맞게 테이블의 최대 높이 조정 */
    overflow-y: auto; /* 세로 스크롤 적용 */
}

tbody {
    display: block;
    max-height: calc(100vh - 200px); /* 뷰포트에 맞게 테이블 본문의 최대 높이 설정 */
    overflow-y: auto; /* 세로 스크롤 적용 */
    width: 100%;
}

thead, tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed; /* 열 너비 고정 */
}

.custom-file-upload {
    cursor: pointer;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

a.btn-link {
    display: inline-block;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

a.btn-link button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px; /* Adjust as necessary */
    background-color: #007bff; /* Button background color */
    color: white; /* Button text color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

a.btn-link button i {
    margin-right: 5px; /* Space between icon and text */
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 5px;
}

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

.info-section {
    display: none; /* Hidden by default */
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    align-items: center;
    justify-content: space-between;
}

.info-section div {
    display: flex;
    align-items: center;
}

.info-section .icon {
    margin-right: 20px;
}

.info-section .file-name {
    font-size: 18px;
}

.info-section .message {
    font-size: 18px;
}

#templateSectionStaff {
    border-left: 5px solid #1c3d6e; /* 교직원용 색상 */
}

#templateSectionGeneral {
    border-left: 5px solid #20744a; /* 일반 기관용 색상 */
}

.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.btn-link {
    text-decoration: none;
}

.confirm-button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    animation: pulse 1.5s infinite; /* Add pulse animation */
}

.confirm-button:hover {
    background-color: #218838;
}

.report-card {
    position: relative;
    width: 850px;
    margin: 20px auto;
    background: linear-gradient(90deg, #62CAE4 0%, #9ECA94 49.67%, #FFCF00 100%);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    filter: drop-shadow(1px 9px 22.7px rgba(0, 0, 0, 0.15));
    box-sizing: border-box;
    padding: 16px;
    display: flex;
    align-items: center; /* Align items vertically centered */
    justify-content: space-between; /* Space out content horizontally */
}

.report-card .left-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically within the left section */
    max-width: calc(100% - 240px); /* Adjust width to leave space for the icon */
}

.report-card .title,
.report-card .description-label,
.report-card .description-value,
.report-card .result-value {
    text-align: left; /* Align text to the left */
    color: #FFF8F8;
    text-shadow: 0px 2px 5.3px rgba(0, 0, 0, 0.25);
}

.report-card .title {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 500;
    font-size: 90px;
    line-height: 203%;
    /* identical to box height, or 183px */
    display: flex;
    align-items: center;
}

.report-card .result-value {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 700;
    font-size: 50px;
    line-height: 203%;
    /* identical to box height, or 130px */
    display: flex;
    align-items: center;
}

.report-card .description-label {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 400;
    font-size: 30px;
    line-height: 203%;
    display: flex;
    align-items: center;
    text-align: center;
}

.report-card .description-value {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 32px;
}

.report-card img {
    width: 220px;
    height: 220px;
    left: 665px;
    top: 326px;
}

.main-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 64px;
    line-height: 203%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.3em;
    background: linear-gradient(90deg, #62CAE4 0%, #FFCF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sub-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 203%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.3em;
    background: linear-gradient(0deg, #606060, #606060), linear-gradient(90deg, #62CAE4 0%, #FFCF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.subsub-title {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 203%;
    /* or 30px */
    display: flex;
    align-items: center;
    text-align: center;
    letter-spacing: 0.3em;
    background: linear-gradient(0deg, #606060, #606060), linear-gradient(90deg, #62CAE4 0%, #FFCF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.divider {
    height: 4px;
    background-color: #e2e8f0;
    margin: 40px 0;
    border-radius: 2px;
}

.image-container {
    display: flex;
    justify-content: space-between;  /* 이미지를 좌우로 배치 */
    align-items: center;             /* 텍스트와 이미지를 중앙에 정렬 */
    margin: 20px;
}

.image-block {
    text-align: center;
    width: 45%;  /* 각 이미지 블록의 너비를 설정 */
    margin: 10px;
}

.image-block img {
    max-width: 100%;  /* 이미지가 블록 너비를 넘지 않도록 설정 */
    height: auto;
    border-radius: 8px;  /* 이미지에 둥근 모서리 추가 */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);  /* 이미지에 그림자 추가 */
}

.image-title {
    font-size: 1.5em;   /* 텍스트 크기 */
    color: #333;        /* 텍스트 색상 */
    font-size: 30px;
    font-weight: bold;  /* 텍스트 굵기 */
    margin-bottom: 10px;  /* 텍스트와 이미지 사이 여백 */
    text-transform: uppercase;  /* 텍스트 대문자로 변환 */
    letter-spacing: 1px;  /* 글자 간격 조정 */
}

.image-container p {
    margin: 0;  /* 텍스트 상단과 하단 여백 제거 */
    padding: 5px;
}

.image-block p {
    background-color: #f5f5f5;   /* 텍스트 배경 색상 */
    padding: 5px 10px;           /* 텍스트 패딩 */
    border-radius: 5px;          /* 텍스트 배경에 둥근 모서리 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* 텍스트 박스에 그림자 */
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    display: block;
}

.overlay-left, .overlay-right {
    position: absolute;
    bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 5px;
}

.overlay-left {
    left: 10px;
}

.overlay-right {
    right: 10px;
}


.caution-text {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 500;
    font-size: x-small;
    line-height: 29px;
    color: #EA5942;
}

.summary-sub-title {
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
}

/* 'i' 아이콘 스타일 */
.summary-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 0.8em;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    margin-left: 5px;
    position: relative;
}

/* Tooltip */
.summary-info-icon:hover::after {
    content: attr(title);
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 10px;
    font-size: 0.8em;
    border-radius: 5px;
    top: 20px;
    left: 20px;
    width: 500px;
    z-index: 100;
    white-space: normal;
}

.summary-evaluation-container {
    width: 100%;
    margin-top: 10px;
}

.summary-evaluation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.summary-title {
    font-weight: bold;
    width: 30%;
    font-size: 1.2rem;
    text-align: left;
}

.summary-description {
    width: 65%;
    text-align: right;
}

.summary-divider-line {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 5px 0;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        background-color: #28a745; /* Original color */
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        background-color: #34c759; /* Lighter green for effect */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        background-color: #28a745; /* Return to original color */
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    }
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed; /* Ensures it stays in view */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999; /* Make sure it's on top of other elements */
}

/* Spinner Styling */
.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1); /* Light gray border */
    border-left-color: #3498db; /* Blue color for the spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Animation for Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text Styling */
.spinner-container p {
    margin-top: 10px;
    color: white; /* White text color */
    font-size: 1.2rem; /* Slightly larger text */
    font-weight: bold; /* Bold text for better visibility */
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    color: #fff; /* White text color */
    transition: background-color 0.3s ease;
}

.icon-button.success {
    background-color: #28a745; /* Green for success */
}

.icon-button.success:hover {
    background-color: #218838; /* Darker green on hover */
}

.icon-button.error {
    background-color: #dc3545; /* Red for error */
}

.icon-button.error:hover {
    background-color: #c82333; /* Darker red on hover */
}

.icon-button i {
    margin: 0;
}


.search-section {
    margin-bottom: 30px; /* 검색 섹션과 정보 섹션 간격 */
    padding: 20px; /* 여백 추가 */
    background-color: #ffffff; /* 배경색 */
    border-radius: 8px; /* 모서리 둥글게 */
    border: 1px solid #ddd; /* 테두리 색상 */
    width: 100%; /* 기본적으로 100% 폭 사용, 최대 너비 초과하지 않도록 */
    box-sizing: border-box; /* 패딩과 테두리를 포함하여 너비 계산 */
}

label {
    font-size: 18px;
    font-weight: bold;
    color: #1c3d6e; /* 레이블 색상 */
    display: block;
    margin-bottom: 10px; /* 레이블과 입력란 간격 */
}

#orgSearchInput {
    width: calc(100% - 40px); /* 패딩을 고려한 너비 설정 */
    padding: 12px 20px; /* 패딩 조정 */
    border: 1px solid #1c3d6e; /* 테두리 색상 */
    border-radius: 4px; /* 모서리 둥글게 */
    font-size: 16px; /* 폰트 크기 */
    color: #333; /* 텍스트 색상 */
    outline: none; /* 아웃라인 제거 */
    transition: border-color 0.3s; /* 테두리 색상 변화에 애니메이션 효과 추가 */
}


#orgSearchInput:focus {
    border-color: #20744a; /* 포커스 시 테두리 색상 변경 */
}

#orgResultsDropdown {
    border: 1px solid #ddd; /* 드롭다운 테두리 색상 */
    border-radius: 4px; /* 드롭다운 모서리 둥글게 */
    max-height: 200px; /* 최대 높이 설정 */
    overflow-y: auto; /* 스크롤 가능하게 설정 */
    position: absolute; /* 위치를 절대적으로 설정 */
    background-color: #fff; /* 드롭다운 배경색 */
    z-index: 1000; /* 다른 요소 위에 표시 */
    width: 100%; /* 입력란과 같은 너비 */
    margin-top: 5px; /* 입력란과 드롭다운 사이의 간격 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 드롭다운 그림자 */
}

.results-dropdown {
    border: 1px solid #ccc;
    background: white;
    position: absolute; /* 드롭다운을 입력 필드 아래에 표시 */
    z-index: 1000;
    max-height: 200px; /* 최대 높이 설정 */
    overflow-y: auto; /* 내용이 넘칠 경우 스크롤 가능 */
    width: 100%; /* 입력 필드와 동일한 너비 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 그림자 효과 추가 */
}

.result-item {
    padding: 10px; /* 항목 간격 */
    cursor: pointer; /* 마우스 포인터 변경 */
    border-bottom: 1px solid #f0f0f0; /* 항목 간 경계선 추가 */
}

.result-item:last-child {
    border-bottom: none; /* 마지막 항목 경계선 제거 */
}

.org-info {
    font-size: 0.9em; /* 작은 텍스트 크기 */
    color: #777; /* 연한 색상 */
}

.result-item:hover {
    background-color: #f0f0f0; /* 호버 효과 */
}

.search-info-section {
    margin-top: 20px; /* 기관 정보 섹션 위 간격 */
    padding: 15px; /* 패딩 추가 */
    border: 1px solid #ccc; /* 테두리 색상 */
    border-radius: 8px; /* 모서리 둥글게 */
    background-color: #ffffff; /* 배경색 */
    display: none; /* 기본적으로 숨김 */
}

.search-info-section h4 {
    margin: 0 0 10px; /* 제목 아래 여백 */
    color: #1c3d6e; /* 제목 색상 */
    font-size: 20px; /* 제목 폰트 크기 */
}

.search-info-section p {
    margin: 5px 0; /* 문단 간격 설정 */
    color: #555; /* 문단 색상 */
    font-size: 16px; /* 문단 폰트 크기 */
}

/* Add this to your styles.css */

.progress-container {
    margin-bottom: 20px;
    text-align: center; /* Center text */
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0; /* Background color for the progress bar */
    border-radius: 5px; /* Rounded corners */
    overflow: hidden; /* Prevent overflow of the inner div */
}

.progress {
    height: 20px; /* Height of the progress indicator */
    background-color: #4caf50; /* Green color for progress */
    transition: width 0.5s ease; /* Smooth transition */
}

.alert-success {
    color: #155724;              /* 텍스트 색상 */
    background-color: #d4edda;   /* 배경 색상 */
    border-color: #c3e6cb;       /* 테두리 색상 */
    padding: 10px 20px;          /* 패딩 */
    border: 1px solid transparent;
    border-radius: 4px;          /* 둥근 모서리 */
    font-size: 16px;             /* 글자 크기 */
    font-weight: bold;           /* 글자 굵기 */
    display: flex;               /* Flexbox로 요소 정렬 */
    align-items: center;
}

.alert-success strong {
    margin-right: 5px;           /* 'Success!' 앞뒤에 여백 */
}

.alert-success .icon {
    margin-right: 10px;          /* 아이콘과 텍스트 사이의 여백 */
}

.alert-error {
    color: #721c24;              /* 텍스트 색상 (어두운 빨간색) */
    background-color: #f8d7da;   /* 배경 색상 (연한 빨간색) */
    border-color: #f5c6cb;       /* 테두리 색상 (연한 빨간색) */
    padding: 10px 20px;          /* 패딩 */
    border: 1px solid transparent;
    border-radius: 4px;          /* 둥근 모서리 */
    font-size: 16px;             /* 글자 크기 */
    font-weight: bold;           /* 글자 굵기 */
    display: flex;               /* Flexbox로 요소 정렬 */
    align-items: center;
}

.alert-error strong {
    margin-right: 5px;           /* 'Error!' 앞뒤에 여백 */
}

.alert-error .icon {
    margin-right: 10px;          /* 아이콘과 텍스트 사이의 여백 */
}

.gauge-container {
    width: 200px;
    margin: 0 auto;
    text-align: center;
}

#svg {
    width: 100%;
    height: auto;
}

.gauge-label {
    font-size: 18px;
    margin-top: 10px;
    font-weight: bold;
}


.analysis-status-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.status-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.status-card:hover {
    transform: translateY(-3px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.card-icon i {
    font-size: 24px;
    color: #2196f3;
}

.card-content h4 {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.card-content p {
    margin: 5px 0 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.progress-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #2196f3, #64b5f6);
    border-radius: 4px;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: glow 1.5s infinite;
}

@keyframes glow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}






.user-type h1 {
    color: #333;
    font-size: xx-large;
    margin-bottom: 20px;
}

.dates-icon i {
    font-size: xx-large; font-style: normal;
    color: #333;
    text-decoration: normal;
}

.date-score-container {
    margin-bottom: 20px;
    width: 100%;
    overflow-x: auto;
}

.date-list {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.date-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.date-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.date-item input[type="radio"] {
    display: none;
}

.date-item.selected {
    border-color: #4CAF50;
    background: #f0fff4;
}

.date-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.date-text {
    font-size: 0.9rem;
    color: #4a5568;
}

.score-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.emoji {
    font-size: 1.2rem;
}

.score {
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* 점수에 따른 스타일 */
.score-high {
    background-color: #c6f6d5;
    color: #2f855a;
}

.score-medium {
    background-color: #fefcbf;
    color: #975a16;
}

.score-low {
    background-color: #fed7d7;
    color: #c53030;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }

    .container {
        flex-direction: column;
    }


    /* 검사결과조회 페이지 */
    .analysis-status-cards {
        display: block;
        margin-bottom: 25px;
    }

    .analysis-status-cards > .status-card {
        margin-bottom: 10px;
    }

    table > thead > tr > th {
        font-size: 0.8rem;
    }



}


    /* 검색창 스타일 */
    .search-container {
        display: flex;
        justify-content: center;
        margin: 20px 0;
    }

    #userSearch {
        width: 300px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        transition: border-color 0.3s;
    }

    #userSearch:focus {
        border-color: #4a90e2; /* 포커스 시 테두리 색상 변경 */
        outline: none; /* 기본 아웃라인 제거 */
    }

    #searchButton {
        padding: 10px 15px;
        margin-left: 10px;
        background-color: #4a90e2;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
    }

    #searchButton:hover {
        background-color: #357abd; /* 호버 시 배경색 변경 */
    }

    #searchModal {
        overflow: hidden;
    }


    /* 검색 결과 스타일 */
    #searchResults {
        margin-top: 20px;
        height: 40vh;
        overflow-y: auto;
    }

    #searchResults div {
        border-bottom: 1px solid #e0e0e0;
    }

    #searchResults div:last-child {
        border-bottom: none; /* 마지막 항목의 경계선 제거 */
    }

    #searchResults p {
        margin: 0;
        font-size: 16px;
        color: #333;
    }

    /* 모달 스타일 */
    .modal {
        display: none; /* 기본적으로 숨김 */
        position: fixed;
        z-index: 1000; /* 모달이 다른 요소 위에 표시되도록 설정 */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7); /* 반투명 배경 */
        animation: fadeIn 0.3s; /* 모달 등장 애니메이션 */
    }

    .modal-content {
        background-color: #fefefe;
        margin: 10% auto; /* 화면 중앙에 위치 */
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 600px; /* 최대 너비 설정 */
        border-radius: 10px; /* 모서리 둥글게 */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 그림자 효과 */
        animation: slideIn 0.3s; /* 모달 내용 등장 애니메이션 */
    }

    .close-button {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

    .close-button:hover,
    .close-button:focus {
        color: black;
        text-decoration: none;
    }

    /* 애니메이션 효과 */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideIn {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }



