/**
 * 알림 시스템 스타일
 */

/* 알림 벨 버튼 */
.notification-bell {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.notification-bell:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.notification-bell-icon {
  font-size: 24px;
  color: #333;
}

/* 읽지 않은 알림 배지 */
.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: #f44336;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* 알림 드롭다운 */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 380px;
  max-height: 500px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.notification-dropdown.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 알림 헤더 */
.notification-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.notification-mark-all-read {
  font-size: 14px;
  color: #1976d2;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.notification-mark-all-read:hover {
  background-color: rgba(25, 118, 210, 0.1);
}

/* 알림 목록 */
.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

/* 개별 알림 아이템 */
.notification-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}

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

.notification-item.unread {
  background-color: #e3f2fd;
}

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

.notification-item-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  margin-right: 12px;
  vertical-align: top;
}

.notification-item-icon.new-job {
  background-color: #e8f5e9;
  color: #4caf50;
}

.notification-item-icon.application {
  background-color: #e3f2fd;
  color: #2196f3;
}

.notification-item-icon.message {
  background-color: #fff3e0;
  color: #ff9800;
}

.notification-item-icon.system {
  background-color: #f3e5f5;
  color: #9c27b0;
}

.notification-item-content {
  display: inline-block;
  width: calc(100% - 60px);
  vertical-align: top;
}

.notification-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.notification-item-message {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.4;
}

.notification-item-time {
  font-size: 12px;
  color: #999;
}

.notification-item-dot {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background-color: #1976d2;
  border-radius: 50%;
}

/* 빈 알림 상태 */
.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.notification-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.notification-empty-text {
  font-size: 14px;
}

/* 알림 푸터 */
.notification-footer {
  padding: 12px 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.notification-view-all {
  color: #1976d2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.notification-view-all:hover {
  text-decoration: underline;
}

/* 로딩 상태 */
.notification-loading {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.notification-loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1976d2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

/* 반응형 */
@media (max-width: 768px) {
  .notification-bell {
    padding: 5px;
  }
  
  .notification-bell-icon {
    font-size: 20px;
  }
  
  .notification-dropdown {
    position: fixed;
    top: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 70vh;
  }
  
  .notification-header {
    padding: 12px 16px;
  }
  
  .notification-header h3 {
    font-size: 16px;
  }
  
  .notification-item {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .notification-dropdown {
    top: 55px;
    right: 5px;
    left: 5px;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .notification-dropdown {
    background-color: #2c2c2c;
    color: #e0e0e0;
  }
  
  .notification-header h3,
  .notification-item-title {
    color: #e0e0e0;
  }
  
  .notification-item {
    border-bottom-color: #444;
  }
  
  .notification-item:hover {
    background-color: #383838;
  }
  
  .notification-item.unread {
    background-color: #1a3a52;
  }
}

