/* 전체적인 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 50%, #e8eaed 100%);
    min-height: 100vh;
    color: #333;
    padding: 10px;
}


/* 컨트롤 영역 */
div[style*="display: flex"] {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

/* AG Grid 스타일 */
.ag-theme-alpine .ag-cell {
		    font-size: 12px;
		    font-family: '맑은 고딕', Verdana, Geneva, Tahoma, sans-serif;
		    padding-left: 4px;
		}
		
.ag-theme-alpine .ag-header-cell-label,
.ag-theme-alpine .ag-header-cell {
		    display: flex;
		    justify-content: center;
		    font-size: 12px;
		    padding-left: 2px;
		    padding-right: 2px;
		}
		
.ag-theme-alpine .ag-header-group-cell-label,
.ag-theme-alpine .ag-header-group-text {
		    display: flex;
		    justify-content: center;
		    align-items: center;
		    width: 100%;
		    height: 100%;
		    text-align: center;
		    font-size: 12px;
		}

#myGrid {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px !important;
    padding: 8px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

#filter-text-box {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

#filter-text-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937; /* 어두운 그레이 (Tailwind 기준 text-gray-800) */
  border-left: 4px solid #fa493d; /* 블루 포인트 */
  padding-left: 12px;
  margin-bottom: 1rem;
  font-family: 'Segoe UI', 'Pretendard', sans-serif;
  background: linear-gradient(to right, #f0f4ff, transparent);
  padding-top: 4px;
  padding-bottom: 4px;
  border-radius: 4px;
}

/* 버튼 스타일 */
.button {
    padding: 6px 10px;
    color: white;
    background-color: #007bff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 10px;
}

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


/* 공통 버튼 스타일 */
.btn {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 10px;
}

/* 기본 버튼 색상 */
.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* 삭제 버튼 색상 */
.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #b21f2d;
}

/* Flash 메시지 스타일 */
.flashes {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0f8ff;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1000;
    font-size: 14px;
}

.flashes .success {
    color: green;
}

.flashes .danger {
    color: red;
}

/* 입력 섹션 스타일 */
.client-info,
.survey-form {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
}

.client-info-row {
    display: flex; /* 가로 정렬 */
    gap: 5px; /* 항목 간 간격 */
    align-items: center; /* 텍스트 정렬 */
    flex-wrap: wrap; /* 화면 크기에 따라 줄바꿈 */
}

.client-info-row p {
    margin: 0; /* 기본 여백 제거 */
    padding: 5px 8px; /* 항목 간 간격 */
    border: 1px solid #ccc; /* 각 항목에 테두리 추가 (선택 사항) */
    border-radius: 5px; /* 테두리 둥글게 */
}

/* 질문 섹션 스타일 */
.survey-section.section-1000 {
    display: grid;
    max-width: 90%;
    margin: 0 auto; 
    grid-template-columns: repeat(3, 1fr); /* 3열로 배치 */
    gap: 5px 40px; /* 행과 열 간격 */
    margin-bottom: 15px;
    align-items: start; /* 각 셀이 상단 정렬 */
}

.survey-section.section-2000 {
    display: flex;
    max-width: 90%;
    margin: 0 auto; 
    flex-direction: column; /* 1열로 배치 */
    gap: 20px; /* 각 질문 간격 */
}

.survey-question {
    display: flex;
    flex-direction: column;
}

.survey-question label {
    margin-bottom: 3px;
    font-weight: bold;
}

.survey-question input,
.survey-form select {
    padding: 6px;
    font-size: 14px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 95%;
    margin-bottom: 10px;
}


/* 버튼 컨테이너 */
.button-container {
    display: flex; /* 버튼을 나란히 배치 */
    justify-content: center; /* 왼쪽 정렬 */
    gap: 10px; /* 버튼 간격 */
    margin-top: 20px;
}

/* 제목과 구분선 */
.section-title {
    color: red; /* 텍스트 색상을 빨간색으로 설정 */
    margin-bottom: 10px; /* 제목 아래 여백 */
    text-align: center;
}

.section-divider {
    border: 0;
    height: 1px; /* 라인의 두께 */
    background-color: #FF9090; /* 라인의 색상 */
    margin-bottom: 20px; /* 라인 아래 여백 */
}




