/* Header Menus Custom Styles */

/* Order Collection Status Button Styles */
.ss-btn {
  width: 100%;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
  font-size: 12px;
}

.ss-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status button colors */
.ss-btn-collect {
  background: #000;
  color: white;
  cursor: pointer;
}

.ss-btn-collect:hover:not(:disabled) {
  background: #333;
}

.ss-btn-wait {
  background: #6b7280;
  color: white;
  cursor: not-allowed;
  opacity: 0.7;
}

.ss-btn-request {
  background: #f1ca4b;
  color: white;
  cursor: not-allowed;
  opacity: 0.8;
}

.ss-btn-pending {
  background: #5177b2;
  color: white;
  cursor: not-allowed;
  opacity: 0.8;
}

.ss-btn-complete {
  background: #49a66a;
  color: white;
  cursor: pointer;
}

.ss-btn-complete:hover:not(:disabled) {
  background: #3d8b5a;
}

/* Status indicators for channel cards */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-indicator.collect {
  background: #000;
}

.status-indicator.wait {
  background: #6b7280;
}

.status-indicator.request {
  background: #f1ca4b;
}

.status-indicator.pending {
  background: #5177b2;
}

.status-indicator.complete {
  background: #49a66a;
}

/* Language Menu Styles */
.language-menu-container {
  position: relative;
}

.language-btn {
  border: none !important;
  background: none !important;
  padding: 8px !important;
  border-radius: 50% !important;
  transition: background-color 0.2s ease;
}

.language-btn:hover {
  background-color: #e5edfb !important;
}

.language-dropdown {
  position: absolute !important;
  left: unset !important;
  right: 0 !important;
  top: 100% !important;
  z-index: 200 !important;
  min-width: 150px !important;
  background: white !important;
  border: 1px solid #E5EAF2 !important;
  border-radius: 5px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
}

.language-dropdown.hidden {
  display: none;
}

.language-dropdown .dropdown-arrow {
  position: absolute;
  top: -8px;
  right: 11px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.language-content {
  background: white;
  border-radius: 5px;
  overflow: hidden;
  padding: 8px;
}

.language-content .language-item {
  width: 100%;
  padding: 8px;
  border: 1px solid #E5EAF2;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.language-content .language-item:last-child {
  margin-bottom: 0;
}

.language-content .language-item:hover {
  border-color: #5177B2;
  background-color: #f8f9fa;
}

.language-content .language-item.active {
  border-color: #5177B2;
  background-color: #e5edfb;
  font-weight: 500;
}

/* Profile Menu Styles */
.profile-menu-container {
  position: relative;
}

.profile-btn {
  border: none !important;
  background: none !important;
  padding: 8px !important;
  border-radius: 50% !important;
  transition: background-color 0.2s ease;
}

.profile-btn:hover {
  background-color: #e5edfb !important;
}

.profile-dropdown {
  position: absolute !important;
  left: unset !important;
  right: 0 !important;
  top: 100% !important;
  /* margin-top: 5px !important; */
  z-index: 200 !important;
  min-width: 200px !important;
  background: white !important;
  border: 1px solid #E5EAF2 !important;
  border-radius: 5px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
}

.profile-dropdown.hidden {
  display: none;
}
.profile-dropdown .dropdown-arrow {
  position: absolute;
  top: -8px;
  right: 11px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}
/* 
.profile-dropdown .dropdown-arrow::before {
  content: '';
  position: absolute;
  top: 1px;
  right: 11px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #E5EAF2;
} */

.profile-content {
  background: white;
  border-radius: 5px;
  overflow: hidden;
}

.profile-header {
  padding: 11px !important;
  text-align: center;
}

.profile-header .text-sm {
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-header .text-muted {
  color: #6c757d;
}

.logout-btn {
  width: 100% !important;
  text-align: center !important;
  padding: 8px 11px !important;
  border: none !important;
  background: none !important;
  color: #000 !important;
  font-size: 14px !important;
  transition: background-color 0.2s ease;
}

.logout-btn:hover {
  background-color: #f8f9fa !important;
  color: #000 !important;
}

/* Notification Menu Styles - Matching React Component Design */
.notification-menu-container {
  position: relative;
}

.notification-icon-container {
  position: relative;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.notification-icon-container:hover {
  background-color: #e5edfb;
}

.notification-icon-container.has-unread {
  /* Add any special styling for unread state if needed */
  position: relative;
}

.notification-badge-count {
  position: absolute;
  top: 5px;
  right: 4px;
  background: #E85953;
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.notification-dropdown {
  position: absolute !important;
  right: 2px !important;
  top: 41px !important;
  z-index: 2020 !important;
  min-width: 350px !important;
  max-height: fit-content !important;
  /* overflow: hidden; */
  background: white !important;
  border: 1px solid #E5EAF2 !important;
  border-radius: 5px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
}

.notification-dropdown.hidden {
  display: none;
}

.notification-dropdown:not(.hidden) {
  display: block;
}

.more-button.hidden {
  display: none;
}

.notification-dropdown .dropdown-arrow {
  position: absolute;
  top: -8px;
  right: 9px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;

}

.notification-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 11px !important;
  border-bottom: 1px solid #E5EAF2 !important;
  background: white;
  border-radius: 5px 5px 0 0;
}

.notification-header .header-title {
  font-size: 14px;
  color: #000;
}

.notification-header .mark-all-read-btn {
  font-size: 14px;
  color: #9A9A9A !important;
  text-decoration: underline;
  cursor: pointer;
}

.notification-header .mark-all-read-btn:hover {
  color: #6c757d !important;
}

.notification-list {
  max-height: 400px;
  min-height: 50px;
  height: fit-content;
  overflow-y: auto;
  padding: 11px !important;
  margin: 0 !important;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px !important;
}

.notification-item {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid #E5EAF2;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: flex-start;
  height: fit-content;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background-color: #D6E1F596;
  border-radius: 4px;
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  padding:8px;
}

.notification-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.notification-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.notification-status {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #000;
}

.notification-status.success {
  color: #28a745;
}

.notification-status.error {
  color: #dc3545;
}

.notification-message {
  font-size: 14px;
  font-weight: normal;
  color: #000;
  margin-bottom: 4px;
  word-wrap: break-word;
  line-height: 1.4;
}

.notification-time {
  font-size: 12px;
  color: #6c757d;
}

.notification-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #E8595326;
  color: #E85953;
  padding: 2px 8px;
  border-radius: 8.5px;
  font-size: 14px;
  font-weight: 500;
  height: fit-content;
}

/* More button styles (matching React design) */
.more-button {
  background: #F2F3F7;
  text-align: center;
  color: #6c757d;
  padding: 8px 0;
  height: 35px;
  border-top: 1px solid #C7C9CA;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 4px 4px;
}

.more-button:hover {
  background: #e9ecef;
}

.more-text {
  color: #000;
  font-size: 14px;
  font-weight: 600;
}


/* Dark theme compatibility */
.theme-dark .profile-dropdown,
.theme-dark .notification-dropdown {
  background: #2c2c2c !important;
  border-color: #444 !important;
  color: #fff !important;
}

.theme-dark .profile-dropdown .dropdown-arrow {
  border-bottom-color: #2c2c2c;
}

.theme-dark .notification-dropdown .dropdown-arrow {
  border-bottom-color: #2c2c2c;
}

.theme-dark .profile-content,
.theme-dark .notification-header {
  background: #2c2c2c !important;
}

.theme-dark .logout-btn:hover,
.theme-dark .notification-item:hover {
  background-color: #444 !important;
}

.theme-dark .notification-item.unread {
  background-color: #3a3a3a !important;
}



.divider {
  margin: 0 !important;
}

.jconfirm > * {
  max-height: 100vh !important;
  overflow: hidden !important;
}

.jconfirm {
  position: fixed !important;
  height: 100vh !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}


.jconfirm .jconfirm-box{ 
  top: 40% !important;
  height: fit-content !important;
}
.jconfirm .jconfirm-box.jconfirm-type-blue{
  border-top: none !important;
}

 

.jconfirm .jconfirm-box .jconfirm-buttons button:hover{
 overflow: hidden !important;
 max-height: 100vh !important;
}

 
.jconfirm-buttons .btn-cancel {
    font-size: 11px !important;
    width: 60px !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    padding: 4px 2px !important;
    background-color: #ffffff !important;
    border-radius: 1px !important;
}
.jconfirm-buttons .btn-green {
    font-size: 11px !important;
    width: 60px !important;
    border: 1px solid #000 !important;
    color: #ffffff !important;
    padding: 4px 2px !important;
    background-color: #000000 !important;
    border-radius: 1px !important;
}

.jconfirm-content{
  font-size: 13px;
  line-height: 1.6;
  color: #000;
  margin: 8 8 5px;
  word-break: keep-all;      /* 단어 중간(조사) 분리 방지 */
  overflow-wrap: break-word; /* 너무 긴 단어만 줄바꿈 허용 */
  white-space: pre-line;
  overflow-y: auto; 
  max-width: 400px;
  padding : 20px 15px 10px 15px;
  border-top: 20px solid #000000;
  /* \n 은 줄바꿈 처리 */
}