/* Notifications Page Specific Styles */

.notif-page-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(30, 60, 114, 0.08);
  min-height: 400px;
}

.new-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-badge.new {
  background: #ff7675;
  color: white;
}

.new-badge.update {
  background: #74b9ff;
  color: white;
}

.new-badge.active {
  background: #55efc4;
  color: #0b513b;
}

.new-badge.result {
  background: #a29bfe;
  color: white;
}

.notif-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notif-page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #1e3c72, #e94560);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.back-btn {
  padding: 10px 24px;
  background: #f0f4f8;
  border-radius: 50px;
  text-decoration: none;
  color: #1e3c72;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-btn:hover {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(30, 60, 114, 0.2);
}

#full-notif-list {
  display: grid;
  gap: 0.75rem !important;
}

.notif-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.notif-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(30, 60, 114, 0.08);
  border-color: rgba(30, 60, 114, 0.15);
}

.notif-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.notif-card-rating {
  color: #ffc107;
  font-size: 1.2rem;
}

.notif-card-time {
  font-size: 0.85rem;
  color: #adb5bd;
}

.notif-card-name {
  font-weight: 700;
  color: #1e3c72;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
}

.notif-card-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #eee;
}

.notif-label {
  font-weight: 600;
  color: #495057;
  margin-right: 5px;
}

.notif-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-end;
}

.delete-notif-btn,
.edit-notif-btn {
  padding: 6px 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.delete-notif-btn {
  background: #dc3545;
  color: white;
}

.delete-notif-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}

.edit-notif-btn {
  background: #ffc107;
  color: #000;
}

.edit-notif-btn:hover {
  background: #e0a800;
  transform: scale(1.05);
}

.admin-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-group label {
  font-weight: 600;
}

.filter-select,
.search-input {
  padding: 8px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.filter-select:focus,
.search-input:focus {
  outline: none;
  border-color: #0077b6;
}

.admin-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.export-btn {
  background: #28a745;
  color: white;
}

.export-btn:hover {
  background: #218838;
  transform: translateY(-2px);
}

.clear-all-btn {
  background: #dc3545;
  color: white;
}

.clear-all-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.stats-dashboard {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stats-dashboard.active {
  display: grid;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #28a745;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  animation: slideInRight 0.4s ease-out;
}

.toast.error {
  background: #dc3545;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.no-notif-msg {
  text-align: center;
  padding: 2rem;
  color: #adb5bd;
  font-style: italic;
}

/* Premium Government Job Alert Card Styling */
/* Vibrant Color Variants for Notifications List Page */
.notif-card.pink-notification {
  background: linear-gradient(135deg, #f857a6, #c2185b) !important;
  color: #ffffff !important;
}
.notif-card.blue-notification {
  background: linear-gradient(135deg, #0096c7, #023e8a) !important;
  color: #ffffff !important;
}
.notif-card.green-notification {
  background: linear-gradient(135deg, #00b894, #006644) !important;
  color: #ffffff !important;
}
.notif-card.orange-notification {
  background: linear-gradient(135deg, #fd7e14, #d84315) !important;
  color: #ffffff !important;
}
.notif-card.purple-notification {
  background: linear-gradient(135deg, #9b59b6, #4a148c) !important;
  color: #ffffff !important;
}
.notif-card.red-notification {
  background: linear-gradient(135deg, #e74c3c, #7b0000) !important;
  color: #ffffff !important;
}
.notif-card.teal-notification {
  background: linear-gradient(135deg, #00cec9, #006994) !important;
  color: #ffffff !important;
}
.notif-card.gold-notification {
  background: linear-gradient(135deg, #f9ca24, #f0932b) !important;
  color: #1a1a1a !important;
}
.notif-card.default {
  background: linear-gradient(135deg, #1e3c72, #2a5298) !important;
  color: #ffffff !important;
}

.notif-card-title,
.notif-card-time,
.notif-label {
  color: inherit !important;
}

.notif-card-time {
  opacity: 0.85;
}

.notif-card-title {
  font-size: 1.0rem !important;
  color: #2c3e50;
  margin: 6px 0 !important;
  font-weight: 700;
  line-height: 1.4;
}

.apply-notif-btn {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.apply-notif-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.35);
  background: linear-gradient(135deg, #2a5298, #1e3c72);
  color: white !important;
}

/* Premium Layout Container Adjustments */
.notif-page-container {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modal Styles */
.notif-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notif-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.notif-modal-content {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: white;
}

.notif-modal-overlay.active .notif-modal-content {
  transform: translateY(0) scale(1);
}

.notif-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #ff4d4d;
  cursor: pointer;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  line-height: 1;
}

.notif-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  text-shadow: 0 0 10px #ff4d4d;
}

.notif-modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.notif-modal-time {
  font-size: 0.9rem;
  color: #cbd5e1;
}

#modal-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.notif-modal-body {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  max-height: 40vh;
  overflow-y: auto;
}

/* Custom Scrollbar for Modal Body */
.notif-modal-body::-webkit-scrollbar {
  width: 8px;
}
.notif-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.notif-modal-body::-webkit-scrollbar-thumb {
  background: #00d2ff;
  border-radius: 10px;
}

/* Improve Card Visuals */
.notif-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06) !important;
  border-radius: 12px !important;
  padding: 0.7rem 1.1rem !important;
}
.notif-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.apply-notif-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
}
.apply-notif-btn:hover {
  background: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* Contrast adjustment for Gold Card Buttons */
.gold-notification .apply-notif-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #1a1a1a !important;
}
.gold-notification .apply-notif-btn:hover {
  background: rgba(0, 0, 0, 0.12) !important;
  color: #1a1a1a !important;
}