/* 기본 모달 스타일 (밝은 테마) */
.company-modal .modal-content {
    border: 1px solid rgba(0, 54, 152, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.company-modal .modal-header {
    background: rgba(0, 54, 152, 0.05);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.company-modal .modal-title {
    color: #003698;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.company-modal .modal-header .material-icons {
    color: #003698;
}

.company-modal .modal-header .close {
    color: #495057;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.company-modal .modal-header .close:hover {
    opacity: 1;
}

.company-modal .modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

/* 폼 요소 스타일 */
.company-modal .form-control {
    background: #ffffff;
    color: #495057;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.company-modal .form-control:focus {
    border-color: #003698;
    box-shadow: 0 0 0 0.2rem rgba(0, 54, 152, 0.15);
}

.company-modal .input-group-text {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.2);
    color: #495057;
}

.company-modal label {
    color: #495057;
    font-weight: 500;
}

.company-modal .required {
    color: #003698;
}

.company-modal .text-muted {
    color: #6c757d !important;
}

/* 모달 푸터 버튼 레이아웃 */
.company-modal .modal-footer {
    background: rgba(0, 54, 152, 0.02);
    border-top: 1px solid rgba(0, 54, 152, 0.1);
    padding: 1.25rem;
    border-radius: 0 0 12px 12px;
    display: flex;
}

/* 푸터 내의 버튼들 동일 너비 설정 */
.company-modal .modal-footer .company-btn {
    flex: 1;  /* 버튼이 동일한 비율로 공간 차지 */
    width: auto;  /* 기존 고정 너비 해제 */
}

/* 푸터 버튼 내부 정렬 수정 */
.company-modal .modal-footer .btn-content {
    justify-content: center;  /* 버튼 내용 중앙 정렬 */
}

.company-modal .modal-footer .btn-label {
    flex-grow: 0;  /* 라벨이 자신의 컨텐츠 크기만 가지도록 설정 */
}
/* Select 요소 커스텀 스타일 */
.company-modal select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23495057'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

/* 다크 테마 스타일 */
.company-modal.modal-dark .modal-content {
    background: rgba(0, 20, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 54, 152, 0.3);
    color: white;
}

.company-modal.modal-dark .modal-header {
    background: rgba(0, 54, 152, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-modal.modal-dark .modal-title,
.company-modal.modal-dark .modal-header .material-icons {
    color: white;
}

.company-modal.modal-dark .modal-body {
    background: rgba(255, 255, 255, 0.05);
}

.company-modal.modal-dark .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.company-modal.modal-dark .form-control:focus {
    border-color: rgba(0, 54, 152, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(0, 54, 152, 0.25);
}

.company-modal.modal-dark .input-group-text {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.company-modal.modal-dark label {
    color: rgba(255, 255, 255, 0.9);
}

.company-modal.modal-dark select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

.modal .modal-dialog .modal-content .modal-footer button.company-btn.btn-footer-start {
    border-radius: 0 0 0 8px;
}

.modal .modal-dialog .modal-content .modal-footer button.company-btn.btn-footer-end {
    border-radius: 0 0 8px 0;
}

.modal .modal-dialog .modal-content .modal-footer button.company-btn {
    border-radius: 0;
}

.modal .required{
    color: red;
}