body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('capstonebg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #15401e;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.container {
  width: 360px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(0.1px);
  -webkit-backdrop-filter: blur(0.1px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  padding: 42px 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.container.dashboard {
  width: 100%;
  max-width: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(0.1px);
  -webkit-backdrop-filter: blur(0.1px);
  border-radius: 0;
  padding: 32px 40px;
  box-shadow: none;
  text-align: left;
  min-height: 100vh;
}

.logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(47, 132, 71, 0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(43, 113, 46, 0.12);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: 28px;
  color: #1f6f2d;
}

.subtitle {
  margin: 12px auto 28px;
  color: #576d58;
  font-size: 14px;
  line-height: 1.6;
}

input {
  width: 90%;
  max-width: 300px;
  padding: 10px 14px;
  margin: 0 auto 16px;
  border-radius: 28px;
  border: 1px solid rgba(47, 130, 70, 0.18);
  background: #ffffff;
  font-size: 14px;
  color: #22332f;
  box-shadow: 0 12px 20px rgba(42, 119, 54, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input::placeholder {
  color: #7a8c7e;
}

input:focus,
select:focus {
  outline: none;
  border-color: #3d9b4a;
  box-shadow: 0 0 0 5px rgba(62, 148, 74, 0.14);
}

select {
  display: block;
  width: 90%;
  max-width: 300px;
  padding: 10px 40px 10px 14px;
  margin: 0 auto 16px;
  border-radius: 28px;
  border: 1px solid rgba(47, 130, 70, 0.18);
  background: #ffffff;
  color: #22332f;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 20px rgba(42, 119, 54, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #22332f 50%), linear-gradient(135deg, #22332f 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 14px) calc(50% - 4px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

select option {
  color: #22332f;
}

.file-upload {
  width: 90%;
  max-width: 300px;
  margin: 0 auto 16px;
  padding: 18px 16px;
  border: 1px dashed rgba(47, 130, 70, 0.4);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 4px 12px rgba(42, 119, 54, 0.05);
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload label {
  padding: 10px 18px;
  border-radius: 22px;
  border: 1px solid rgba(47, 130, 70, 0.18);
  background: #ffffff;
  color: #22332f;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(42, 119, 54, 0.08);
}

.file-upload-name {
  color: #576d58;
  font-size: 13px;
}

button {
  width: 90%;
  max-width: 300px;
  padding: 10px 14px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(90deg, #2e8f3f, #45bb59);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(42, 119, 54, 0.24);
}

button:hover {
  opacity: 0.98;
}

a {
  display: inline-block;
  margin-top: 10px;
  color: #1e6a24;
  text-decoration: none;
  font-weight: 700;
}

.bottom-text {
  margin-top: 18px;
  font-size: 13px;
  color: #5f7b65;
}

.bottom-text a {
  color: #1e6a24;
  text-decoration: none;
  font-weight: 700;
}

.message {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
}

.error {
  color: #d04141;
}

.success {
  color: #2d7b34;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.dashboard-sidebar {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(0.05px);
  -webkit-backdrop-filter: blur(0.05px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-title {
  margin: 0;
  color: #1f6f2d;
  font-size: 20px;
  font-weight: 700;
}

.sidebar-desc {
  margin: 6px 0 0;
  color: #5f7b65;
  line-height: 1.5;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 18px;
  color: #1f6f2d;
  text-decoration: none;
  font-weight: 700;
  background: rgba(47, 132, 71, 0.06);
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
  background: rgba(47, 132, 71, 0.16);
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.welcome-header,
.top-row,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9f1 100%);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(47, 132, 71, 0.12);
  box-shadow: 0 12px 30px rgba(33, 85, 40, 0.06);
  margin-bottom: 30px;
}

.top-row h1,
.section-header h2,
.welcome-text h1 {
  margin: 0;
  color: #1f6f2d;
  font-size: 26px;
  font-weight: 700;
}

.top-row .subtitle,
.section-header p,
.welcome-text .subtitle {
  margin: 8px 0 0;
  color: #5f7b65;
  font-size: 15px;
  line-height: 1.6;
}

.logout-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #2e8f3f;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(46, 143, 63, 0.2);
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(46, 143, 63, 0.3);
  opacity: 1;
}

.top-row h1 {
  margin: 0 0 8px;
}

.top-row .subtitle {
  margin: 0;
}

.logout {
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  background: #2e8f3f;
  color: white;
  font-weight: 700;
  cursor: pointer;
  width: auto;
  min-width: 120px;
}

.logout:hover {
  opacity: 0.95;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid rgba(47, 132, 71, 0.14);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 14px 30px rgba(33, 85, 40, 0.08);
}

.stat-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #406f33;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card p {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f6f2d;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #f7faf7;
  border: 1px solid rgba(47, 132, 71, 0.22);
  border-radius: 22px;
  padding: 28px 27px;
  box-shadow: 0 14px 30px rgba(33, 85, 40, 0.08);
}

.card-title {
  margin: 0 0 10px;
  color: #1f6f2d;
  font-size: 20px;
  font-weight: 700;
}

.card-desc {
  margin: 0;
  color: #6d7f6e;
  font-size: 15px;
  line-height: 1.7;
}

.card-action {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.info-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2e8f3f, #45bb59);
  opacity: 0.6;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(46, 143, 63, 0.4);
  background: rgba(255, 255, 255, 0.75);
}

.info-card h3 {
  margin: 0 0 16px;
  color: #1f6f2d;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card p,
.info-card ul {
  margin: 0;
  color: #2a3d2c;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
}

.info-card ul {
  padding-left: 0;
  list-style: none;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.info-card ul li {
  background: rgba(46, 143, 63, 0.08);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(46, 143, 63, 0.1);
  font-size: 13px;
  color: #1a4a21;
}

.info-card-wide {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.7);
}

.category-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2e8f3f, #45bb59);
  opacity: 0.6;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(46, 143, 63, 0.4);
  background: rgba(255, 255, 255, 0.75);
}

.category-card h3 {
  margin: 0 0 16px;
  color: #1f6f2d;
  font-size: 22px;
  font-weight: 700;
}

.category-card p {
  color: #2a3d2c;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
  margin: 0 0 20px;
}

.category-card button {
  width: auto;
  padding: 12px 24px;
  border-radius: 20px;
  background: linear-gradient(90deg, #2e8f3f, #45bb59);
  border: none;
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(46, 143, 63, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(46, 143, 63, 0.3);
}

.safety-section {
  display: grid;
  gap: 22px;
  margin-top: 12px;
}

.safety-card {
  display: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(46, 143, 63, 0.2);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.safety-card.active {
  display: block;
}

.safety-card h4 {
  margin: 0 0 12px;
  color: #1f6f2d;
  font-size: 20px;
  font-weight: 700;
}

.safety-card p {
  margin: 0;
  color: #2a3d2c;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.3s ease;
}

.modal-content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 90%;
  max-width: 500px;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active {
  display: flex!important;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  color: #1f6f2d;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  font-weight: bold;
}

.close-modal:hover {
  background: rgba(46, 143, 63, 0.1);
}

.modal-content h3 {
  color: #1f6f2d;
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: 700;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-content ul li {
  color: #2a3d2c;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.modal-content ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #2e8f3f;
  font-weight: bold;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .dashboard-shell,
  .content-grid,
  .cards {
    grid-template-columns: 1fr;
  }
}

.card-action button {
  border: none;
  background: rgba(47, 132, 71, 0.16);
  color: #1f6f2d;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 18px;
}

.card-action button:hover {
  background: rgba(47, 132, 71, 0.24);
}

.details-box {
  background: #ffffff;
  border: 1px solid rgba(47, 132, 71, 0.18);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 16px 36px rgba(33, 85, 40, 0.08);
}

.details-box h2 {
  margin-top: 0;
  font-size: 22px;
  color: #1f6f2d;
}

.details-box p {
  margin: 12px 0 0;
  color: #556a56;
  line-height: 1.75;
}

.details-box ul {
  margin: 14px 0 0 18px;
  color: #556a56;
  line-height: 1.7;
}

/* Admin Dashboard Enhancements */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.admin-form .form-row {
  display: flex;
  gap: 15px;
  width: 100%;
}
.admin-form .form-row input {
  margin: 0;
  flex: 1;
}
@media (max-width: 600px) {
  .admin-form .form-row {
    flex-direction: column;
    gap: 18px;
  }
}
.admin-form input,
.admin-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(47, 130, 70, 0.2);
  background: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  color: #1f6f2d;
  box-shadow: inset 0 2px 10px rgba(42, 119, 54, 0.05);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  font-family: inherit;
}
.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: #3d9b4a;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(62, 148, 74, 0.15), inset 0 2px 10px rgba(42, 119, 54, 0.05);
}
.admin-form textarea {
  min-height: 140px;
  resize: vertical;
}
.admin-form button {
  width: auto;
  align-self: flex-start;
  padding: 12px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2e8f3f, #1e6a24);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(42, 119, 54, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admin-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(42, 119, 54, 0.35);
}

.announcement-list {
  display: grid;
  gap: 20px;
  margin-top: 15px;
}

.announcement-item {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 5px solid #2e8f3f;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 1px solid rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.announcement-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.announcement-item h4 {
  margin: 0 0 8px 0;
  color: #1a4a21;
  font-size: 20px;
  font-weight: 700;
  padding-right: 80px;
}

.announcement-item small {
  display: block;
  color: #5f7b65;
  font-size: 13px;
  margin-bottom: 4px;
}

.announcement-item p {
  margin: 12px 0 0;
  color: #2a3d2c;
  font-size: 15px;
  line-height: 1.6;
}

.announcement-item .delete-btn,
.notification-card .delete-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  width: auto;
  max-width: none;
  margin: 0;
}
.announcement-item .delete-btn:hover,
.notification-card .delete-btn:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(220, 53, 69, 0.2);
}

/* Notification & Priority Badge Styles */
.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.badge-normal {
  background: rgba(46, 143, 63, 0.12);
  color: #1f6f2d;
  border: 1px solid rgba(46, 143, 63, 0.25);
}

.badge-high {
  background: rgba(255, 152, 0, 0.12);
  color: #e65100;
  border: 1px solid rgba(255, 152, 0, 0.25);
}

.badge-urgent {
  background: rgba(244, 67, 54, 0.12);
  color: #d32f2f;
  border: 1px solid rgba(244, 67, 54, 0.25);
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(244, 67, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.badge-type {
  background: rgba(95, 123, 101, 0.15);
  color: #3b503f;
  border: 1px solid rgba(95, 123, 101, 0.3);
}

.notification-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 5px solid #2e8f3f;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border-top: 1px solid rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.notification-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

/* Emergency Alerts Visual Highlights */
.notification-card.emergency-alert {
  border-left: 6px solid #d32f2f;
  background: rgba(255, 235, 235, 0.75);
  border-top: 1px solid rgba(244, 67, 54, 0.2);
  border-right: 1px solid rgba(244, 67, 54, 0.2);
  border-bottom: 1px solid rgba(244, 67, 54, 0.2);
}

.notification-card.emergency-alert:hover {
  background: rgba(255, 225, 225, 0.85);
}

.notification-card h4 {
  margin: 0 0 8px 0;
  color: #1a4a21;
  font-size: 20px;
  font-weight: 700;
}

.notification-card.emergency-alert h4 {
  color: #8b0000;
}

.notification-date-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
  font-size: 12px;
  color: #5f7b65;
  border-top: 1px solid rgba(47, 132, 71, 0.08);
  padding-top: 10px;
}

.notification-date-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Disaster Category Groups & Threat Highlights */
.category-card.security-threat::before {
  background: linear-gradient(90deg, #d32f2f, #f44336);
}
.category-card.security-threat:hover {
  border-color: rgba(244, 67, 54, 0.4);
}

.category-card .card-buttons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  width: 100%;
}

.category-card .card-buttons button {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  width: auto;
  max-width: none;
  box-shadow: none;
}

.category-card .card-buttons .hotline-btn {
  background: linear-gradient(90deg, #5f7b65, #7da585);
  box-shadow: 0 8px 20px rgba(95, 123, 101, 0.15);
}

.category-card .card-buttons .hotline-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(95, 123, 101, 0.25);
}

/* Hotline List inside Modals */
.hotline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.hotline-card {
  background: rgba(46, 143, 63, 0.05);
  border: 1px solid rgba(46, 143, 63, 0.1);
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.security-threat-modal .hotline-card {
  background: rgba(244, 67, 54, 0.05);
  border: 1px solid rgba(244, 67, 54, 0.1);
}

.hotline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.hotline-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #1a4a21;
}

.security-threat-modal .hotline-info {
  color: #8b0000;
}

.hotline-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  color: #2e8f3f;
  background: white;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(46, 143, 63, 0.2);
}

.security-threat-modal .hotline-number {
  color: #d32f2f;
  border-color: rgba(244, 67, 54, 0.2);
}

/* Preparedness Monitoring Checklist */
.checklist-section {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  margin-top: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.checklist-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.checklist-section h3 {
  margin: 0 0 10px 0;
  color: #1f6f2d;
  font-size: 22px;
  font-weight: 700;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.checklist-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(46, 143, 63, 0.15);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.checklist-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  border-color: rgba(46, 143, 63, 0.3);
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #2e8f3f;
  cursor: pointer;
  margin: 0;
  accent-color: #2e8f3f;
}

.checklist-item span {
  font-size: 14px;
  color: #2a3d2c;
  font-weight: 500;
  transition: all 0.3s ease;
}

.checklist-item.checked {
  background: rgba(46, 143, 63, 0.05);
  border-color: rgba(46, 143, 63, 0.25);
}

.checklist-item.checked span {
  text-decoration: line-through;
  color: #7da585;
}

/* ==========================================
   Premium Announcements, Notifications & Archive Layout Upgrades
   ========================================== */

/* Active Announcements - Calm Green/White Theme */
.announcement-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 5px solid #2e8f3f;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}
.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(46, 143, 63, 0.08);
  background: rgba(255, 255, 255, 0.92);
}
.announcement-card h4 {
  margin: 0 0 8px 0;
  color: #1f6f2d;
  font-size: 20px;
  font-weight: 700;
  padding-right: 180px;
}

/* Active Notifications - Alert-style with Priorities */
.notification-card.prio-normal {
  border-left: 5px solid #2e8f3f;
  background: rgba(255, 255, 255, 0.78);
}
.notification-card.prio-high {
  border-left: 5px solid #ff9800;
  background: rgba(255, 248, 230, 0.85);
  border-top: 1px solid rgba(255, 152, 0, 0.15);
  border-right: 1px solid rgba(255, 152, 0, 0.15);
  border-bottom: 1px solid rgba(255, 152, 0, 0.15);
}
.notification-card.prio-urgent {
  border-left: 6px solid #d32f2f;
  background: rgba(255, 235, 235, 0.85);
  border-top: 1px solid rgba(244, 67, 54, 0.2);
  border-right: 1px solid rgba(244, 67, 54, 0.2);
  border-bottom: 1px solid rgba(244, 67, 54, 0.2);
  animation: urgent-glow-premium 2.5s infinite;
}
.notification-card.prio-urgent h4 {
  color: #8b0000 !important;
}

@keyframes urgent-glow-premium {
  0% { box-shadow: 0 10px 25px rgba(211, 47, 47, 0.05); }
  50% { box-shadow: 0 10px 30px rgba(211, 47, 47, 0.15); }
  100% { box-shadow: 0 10px 25px rgba(211, 47, 47, 0.05); }
}

/* Archived Items - Gray/Muted Theme */
.archive-card {
  background: rgba(240, 242, 240, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 5px solid #7da585;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 15px;
  opacity: 0.88;
}
.archive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  opacity: 1;
  background: rgba(245, 247, 245, 0.9);
}
.archive-card h4 {
  margin: 0 0 8px 0;
  color: #4a5c4e;
  font-size: 20px;
  font-weight: 700;
  padding-right: 180px;
}
.badge-archived {
  background: rgba(125, 165, 133, 0.15) !important;
  color: #556a56 !important;
  border: 1px solid rgba(125, 165, 133, 0.35) !important;
}

/* Inline action button container inside cards */
.card-actions-row {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  gap: 8px;
}

.action-badge-btn {
  background: rgba(47, 132, 71, 0.08);
  color: #1f6f2d;
  border: 1px solid rgba(47, 132, 71, 0.18);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  max-width: none;
  margin: 0;
  box-shadow: none;
}
.action-badge-btn:hover {
  background: #2e8f3f;
  color: white;
  transform: translateY(-1px);
}
.action-badge-btn.btn-archive {
  background: rgba(95, 123, 101, 0.1);
  color: #3b503f;
  border-color: rgba(95, 123, 101, 0.2);
}
.action-badge-btn.btn-archive:hover {
  background: #5f7b65;
  color: white;
}
.action-badge-btn.btn-delete {
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.18);
}
.action-badge-btn.btn-delete:hover {
  background: #dc3545;
  color: white;
}




