/**
 * Notification System Styles
 *
 * @package CustomAdminPanel
 */

/* Notification Bell */
.cap-notification-bell {
  position: relative;
  display: inline-block;
  margin-right: 15px;
}

.cap-notification-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  position: relative;
  transition: background-color 0.3s ease;
}

.cap-notification-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cap-notification-toggle .dashicons {
  font-size: 20px;
  color: #666;
}

.cap-notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Notification Dropdown */
.cap-notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
}

.cap-notification-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.cap-notification-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}
.cap-notification-header button {
  font-size: 12px;
}

.cap-notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.cap-notification-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: background-color 0.2s ease;
}

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

.cap-notification-item.cap-notification-unread {
  background-color: #f0f8ff;
  border-left: 3px solid #007cba;
}

.cap-notification-content {
  flex: 1;
}

.cap-notification-content h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.cap-notification-content p {
  margin: 0 0 5px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.cap-notification-content small {
  font-size: 11px;
  color: #999;
}

.cap-mark-read {
  background: #007cba;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cap-mark-read:hover {
  background: #005a87;
}

.cap-no-notifications {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
}

.cap-notification-loading {
  padding: 20px;
  text-align: center;
  color: #999;
}

.cap-notification-footer {
  padding: 10px 15px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
  text-align: center;
}
.cap-notification-footer a {
  text-decoration: none;
  font-size: 12px;
  margin: 0 auto;
}

/* Notification Types */
.cap-notification-type {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cap-type-task_assigned {
  background: #e3f2fd;
  color: #1976d2;
}

.cap-type-task_completed {
  background: #e8f5e8;
  color: #2e7d32;
}

.cap-type-task_updated {
  background: #fff3e0;
  color: #f57c00;
}

.cap-type-task_deleted {
  background: #ffebee;
  color: #d32f2f;
}

.cap-type-application_created {
  background: #f3e5f5;
  color: #7b1fa2;
}

.cap-type-course_application_created {
  background: #e0f2f1;
  color: #00695c;
}

.cap-type-application_comment {
  background: #e1f5fe;
  color: #0277bd;
}

.cap-type-user_registration {
  background: #fce4ec;
  color: #c2185b;
}

.cap-type-user_approved {
  background: #e8f5e8;
  color: #388e3c;
}

.cap-type-employee_registration {
  background: #fff8e1;
  color: #f9a825;
}

.cap-type-visa_step_updated {
  background: #e8f5e8;
  color: #2e7d32;
}

.cap-type-visa_step_completed {
  background: #e8f5e8;
  color: #1b5e20;
}

.cap-type-course_step_updated {
  background: #e3f2fd;
  color: #1565c0;
}

.cap-type-course_step_completed {
  background: #e8f5e8;
  color: #2e7d32;
}

/* Admin Notification Styles */
.cap-notification-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.cap-stat-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1;
}

.cap-stat-box h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #666;
  font-weight: normal;
}

.cap-stat-number {
  font-size: 32px;
  font-weight: bold;
  color: #007cba;
}

.cap-notification-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.cap-notification-filters select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.cap-notifications-list table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cap-notifications-list th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.cap-notifications-list td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

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

.cap-status-read {
  color: #666;
  font-style: italic;
}

.cap-status-unread {
  color: #007cba;
  font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cap-notification-dropdown {
    width: 300px;
    right: -50px;
  }

  .cap-notification-stats {
    flex-direction: column;
  }

  .cap-notification-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .cap-notification-filters select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cap-notification-dropdown {
    width: 280px;
    right: -80px;
  }

  .cap-notification-item {
    padding: 10px;
  }

  .cap-notification-content h4 {
    font-size: 13px;
  }

  .cap-notification-content p {
    font-size: 12px;
  }
}
