/* for custom */
.invalid-feedback {color: #fff; text-align: left}

#login .ip_name dd:before,
#login .ip_phone dd:before {
    background-position: center 15px !important;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 전체 선택 상자 래퍼 */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 150px; /* 선택 상자의 넓이를 조정할 수 있습니다 */
    font-family: 'Noto Sans', sans-serif;
    margin-bottom: 5px; /* 상단에 약간의 간격 추가 */
    margin-top: 5px; /* 상단에 약간의 간격 추가 */
    margin-left: 15px;
}

/* 기본 select 요소 스타일링 */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: var(--main-color); /* 파란색 테두리 */
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.3;
    width: 100%;
    cursor: pointer;
    border-radius: 10px; /* 둥근 모서리 */
    transition: border-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3); /* 파란색 그림자 */
    color: var(--main-color); /* 파란색 글씨 */
}

/* 선택 상자 포커스 시 스타일링 */
.custom-select:focus {
    border-color: var(--sub-01); /* 포커스 시 분홍색 테두리 */
    outline: none;
    box-shadow: 0 0 5px rgba(255, 64, 129, 0.5); /* 포커스 시 분홍색 그림자 */
}

/* 선택 상자에 화살표 추가 */
.custom-select-wrapper::after {
    content: '\25BC'; /* ▼ 화살표 */
    font-size: 14px;
    color: var(--main-color);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* 클릭 이벤트를 막아줌 */
}

/* 선택 상자 호버 시 배경색 변경 */
.custom-select:hover {
    background-color: #f0f8ff; /* 연한 파란색 배경 */
}

/* 옵션 목록 스타일링 */
.custom-select option {
    padding: 10px;
    background-color: #ffffff;
    color: #333;
}