/* 
 * 착신 모달 스타일 (Incoming Call Modal Styles)
 * 파일: css/incoming-call-modal.css
 * 생성일: 2025-09-26
 * 설명: CTI 시스템 착신 팝업 모달 전용 스타일시트
 */

/* 버튼 스타일 커스터마이징 */
.btn-danger {
  color: #dc3545;
  background-color: #fff;
  border-color: #dc3545;
  box-shadow: none;
}

.bg-light {
  background-color: #dee2e6;
}

.btn-xs {
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.2;
  border-radius: 3px;
}

.btn-olive {
  color: #fff;
  background-color: #3d9970;
  border-color: #3d9970;
  box-shadow: none;
}

/* 모달 크기 설정 */
.modal-xl {
  max-width: 1200px;
}

/* 카드 컴포넌트 스타일 */
.card {
  /* border: 1px solid #e0e6ed; */
  border-radius: 6px;
}

.card-header {
  border-bottom: 1px solid #e0e6ed;
  padding: 8px 12px;
}

.card-body {
  padding: 12px;
}

/* 테이블 스타일 */
.table-sm td, .table-sm th {
  padding: 4px 6px;
  font-size: 11px;
}

/* 뱃지 스타일 */
.badge {
  font-size: 10px;
}

.badge-sm {
  font-size: 9px;
  padding: 2px 6px;
}

/* 착신 모달 전용 스타일 */
#incomingCallModal .modal-content {
  border-radius: 6px;
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.3); */
}

#incomingCallModal .modal-header {
  border-radius: 6px 6px 0 0;
  border-bottom: none;
  padding: 12px 20px;
}

#incomingCallModal .modal-footer {
  border-radius: 0 0 6px 6px;
  border-top: 1px solid #e0e6ed;
  padding: 12px 20px;
}

/* 스크롤바 스타일 */
#incomingCallModal ::-webkit-scrollbar {
  width: 6px;
}

#incomingCallModal ::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#incomingCallModal ::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

#incomingCallModal ::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 히스토리 아이템 스타일 */
.history-item {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #e0e6ed;
  font-size: 11px;
}

.history-item.inquiry {
  border-left-color: #007bff;
}

.history-item.complaint {
  border-left-color: #dc3545;
}

.history-item.order {
  border-left-color: #28a745;
}

.history-item.refund {
  border-left-color: #ffc107;
}

.history-date {
  font-size: 10px;
  color: #6c757d;
  margin-bottom: 2px;
}

/* SMS 버블 스타일 (2025-09-26) */
.sms-bubble-sent {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border-radius: 12px 12px 4px 12px !important;
}

.sms-bubble-received {
  background: #f8f9fa;
  color: #212529;
  border: 1px solid #e9ecef;
  border-radius: 12px 12px 12px 4px !important;
}

.sms-item {
  animation: fadeInUp 0.3s ease-out;
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 선택된 주문 행 스타일 (2025-09-27) */
.order-selected {
  background-color: #e3f2fd !important;
  border-left: 3px solid #2196f3 !important;
}

.order-selected:hover {
  background-color: #e3f2fd !important;
} 

.form-control-sm {
  height: calc(1.5rem + 2px);
  padding: .15rem .5rem;
  font-size: .7rem;
  line-height: 1.2;
  border-radius: .2rem;
}

/* 모달 푸터 높이 고정 (2025-09-28) */
#incomingCallModal .modal-footer {
  min-height: 60px;
  max-height: 60px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

/* 통화 중 상태 UI 컴팩트화 */
#incomingCallModal .modal-footer .input-group-sm {
  width: 100px !important;
}

#incomingCallModal .modal-footer .input-group-sm .form-control {
  height: 28px;
  padding: 2px 6px;
  font-size: 11px;
}

#incomingCallModal .modal-footer .btn-sm {
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.2;
}

#deliveryTrackingModal .modal-content {
  border: 1px solid gainsboro;
  border-radius: 6px;
  top: 88px;
}