@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

:root{
	--main-color:#1d4ed8;
	--black:#222;
	--white:#fff;
	--light-black:#777;
	--light-white:#fff9;
	--dark-bg: rgba(0,0,0,.7);
	--border: .1rem solid var(--black);
	--box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
	--text-shadow:0 1.5rem 3rem rgba(0,0,0,.3);
	--light: #F9F9F9;
	--blue: #3C91E6;
  --dark-blue: #1D4181;
	--light-blue: #CFE8FF;
	--grey: #eee;
	--dark-grey: #AAAAAA;
	--dark: #342E37;
	--red: #DB504A;
	--yellow: #FFCE26;
	--light-yellow: #FFF2C6;
	--orange: #FD7238;
	--light-orange: #FFE0D3;
  --green: #28a745;
  --light-green: #d4edda;
  --text-dark: #111827;
  --text-light: #6b7280;
  --accent-color: #3b82f6;
  --bg-color: #f9fafb;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-strong: rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: 0.3s ease;
  --font-family: 'Inter', sans-serif;
  --yp-bg-color: #eee;
  --yp-accent-color: #FFCE26;
  --yp-card-bg: #1D4181;
  --yp-text-color: #f5f5f5;
  --yp-muted-text: #bbbbbb;
  --yp-highlight: #03dac6;
}

*{
	font-family: var(--font-family);
	margin:0; padding:0;
	box-sizing: border-box;
	outline: none; border: none;
	text-decoration: none;
}

html,body{
	overflow-x: hidden;
	background-color: var(--grey);
    font-size: 16px;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    min-height: 100vh;
}

html::-webkit-scrollbar{
	width: 1rem;
}

html::-webkit-scrollbar-track{
	background-color: var(--white);
}

html::-webkit-scrollbar-thumb{
	background-color: var(--main-color);
}

li{
	list-style: none;
}

.active{
    font-weight: bold;
}


a {
  color: var(--main-color);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 5px 5px var(--shadow-light);
  border-bottom: .2px solid #c4c4c4;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-con{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.title-logo{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.title{
    font-size: 24px;
    font-weight: 700;
    color: var(--main-color);
}

.logo {
  font-weight: 600;
  font-size: 20px;
  color: var(--red);
  cursor: pointer;
}

.sublogo{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lifeline{
  width: 100px;
  height: 40px;
}

.limaylogo-con{
  width: 60px;
  height: 60px;
}

.limaylogo{
  width: 60px;
  height: 60px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 600;
  font-size: 18px;
  color: var(--black);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background-color var(--transition), color var(--transition);
}

.nav-links li a.active,
.nav-links li a:hover {
  color: var(--white);
  background-color: var(--main-color);
  box-shadow: 0 4px 12px var(--shadow-strong);
}

.menu-btn {
  display: none;
}

/* Main content for index.html */
.main-content {
  display: flex;
  height: calc(100vh - 72px);
  justify-content: center;
  align-items: center;
  background: var(--white);
  color: var(--white);
  text-align: center;
  padding: 0 1rem;
}

.card {
  background: var(--main-color);
  padding: 3rem 4rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 480px;
  width: 100%;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-10px);
}

.card h2 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.underline {
  width: 5rem;
  height: 4px;
  background-color: var(--white);
  margin: 0.5rem auto 1.5rem;
  border-radius: 6px;
  opacity: 0.75;
}

.card h1 {
  font-weight: 700;
  font-size: 2.75rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: var(--white);
  color: var(--main-color);
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color var(--transition), color var(--transition);
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #e0e7ff;
  color: var(--accent-color);
  box-shadow: 0 6px 24px rgba(224, 231, 255, 0.8);
}

/* Header ends */


/* Count starts */

.main {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100%;
	font-family: "Inter", sans-serif;
	max-height: calc(100vh - 56px);
	overflow-y: auto;
	transition: .3s ease;
}

.main .box-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 2fr));
	grid-gap: 24px;
	margin-top: 40px;
	margin-left: 140px;
	transition: .3s ease;
}

.main .box-info li {
	width: 70%;
	padding: 14px;
	background: var(--white);
	border-radius: 20px;
	display: flex;
	align-items: center;
	grid-gap: 24px;
	justify-content: flex-start;
    border: .3px solid #c4c4c4;
}

.main .box-info li.active {
    background: var(--light-blue);
    border: 3px solid var(--blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main .box-info li .bx {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	font-size: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.main .box-info li:nth-child(1) .bx {
	background: var(--light-blue);
	color: var(--main-color);
}

.main .box-info li:nth-child(2) .bx {
	background: var(--light-blue);
	color: var(--main-color);
}

.main .box-info li:nth-child(3) .bx {
	background: var(--light-blue);
	color: var(--main-color);
}

.main .box-info li:nth-child(4) .bx {
	background: var(--light-blue);
	color: var(--main-color);
}

.main .box-info li:nth-child(5) .bx {
	background: var(--light-blue);
	color: var(--main-color);
}

.main .box-info li .text h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--dark);
}

.main .box-info li .text p {
	color: var(--dark);
	font-size: 18px;
}

  /* Legend */

  .legend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  }

  .legend-heading {
    font-weight: bold;
    margin-right: 60px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .legend-items {
    flex-grow: 1;
    display: flex;
    justify-content: center;
  }

  .legend-con.horizontal {
    display: flex;
    gap: 60px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
  }

  .legend-con.horizontal li {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .legend-color{
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid var(--black);
  }

  .light-blue{
    background-color: lightblue;
  }

  .pink{
    background-color: pink;
  }

  .light-green{
    background-color: lightgreen;
  }

  .light-yellow{
    background-color: lightyellow;
  }

  /* Legend*/

    /* Add active state for counters */
.counter.active {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.incoming.active {
    border-color: var(--blue);
    background: var(--light-blue);
}

.pending.active {
    border-color: var(--blue);
    background: var(--light-blue);
}

.ongoing.active {
    border-color: var(--blue);
    background: var(--light-blue);
}

.completed.active {
    border-color: var(--blue);
    background: var(--light-blue);
}
.cancelled.active {
    border-color: var(--blue);
    background: var(--light-blue);
}


/* Count ends */

/* Table styling */

.tbl{
    margin-top: 3rem;
}

.tbl h2 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-align: center;
}

.container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 24px var(--shadow-strong);
  background-color: var(--grey);
  padding: .5rem;
  border: .3px solid #c4c4c4;
}

.table {
  margin: 20px;
  align-items: center;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
  width: 97%;
  min-width: 900px;
  color: var(--text-dark);
}

.table thead th {
  font-size: 18px;
  font-weight: 400;
  padding: 0.55rem 1rem;
  background-color: var(--main-color);
  color: var(--white);
  text-align: center;
  border-radius: var(--border-radius);
  letter-spacing: 0.03em;
  user-select: none;
}

.table tbody tr {
  background-color: var(--white);
  box-shadow: 0 4px 10px var(--shadow-light);
  border-radius: var(--border-radius);
  transition: transform var(--transition);
}

.table tbody tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px var(--shadow-strong);
}

.table tbody td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  color: var(--text-dark);
}

.hover{
    cursor: pointer;
    margin-left: 10px;
}
.hover:hover{
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.reactivate-btn {
    background-color: #4CAF50 !important;
    color: white !important;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.reactivate-btn:hover {
    background-color: #45a049;
}

.cancel-req {
    background-color: #dc3545 !important;
    color: white !important;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.cancel-req:hover {
    background-color: #bd2130;
}


.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
    background-color: initial; 
    color: initial;
}

.btn:hover {
    opacity: 0.8;
}

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

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

.send-btn[disabled] {
    background-color: #28a745 !important; /* Green for sent/completed */
    color: white !important;
    opacity: 1 !important; /* Keep full opacity for disabled state */
}

.send-btn:not([disabled]) {
    background-color: var(--main-color); /* Blue for pending */
    color: white;
}

.archive-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.archive-btn:hover {
    background-color: #5a6268;
}

.map-link { 
  color: #000000; 
  text-decoration: underline; 
  font-weight: 500; 
  transition: all 0.3s ease; 
} 

.map-link:hover { 
  text-decoration: underline; 
  color: #1976D2; 
}

.table tbody tr[data-type] {
    position: relative;
    border-left: 6px solid;
    transition: all 0.3s ease;
}

.table tbody tr[data-type="Security"] {
    border-left-color: var(--blue);
    background-color: var(--light-blue);
}

.table tbody tr[data-type="Fire"] {
    border-left-color: var(--red);
    background-color: #fee2e2;
}

.table tbody tr[data-type="Medical"] {
    border-left-color: var(--green);
    background-color: var(--light-green);
}

.table tbody tr[data-type="Others"] {
    border-left-color: var(--yellow);
    background-color: var(--light-yellow);
}

/* Remove conflicting box-shadow rules */
tr[data-type],
tr[data-type="Security"],
tr[data-type="Fire"],
tr[data-type="Medical"],
tr[data-type="Others"] {
    box-shadow: none !important;
}

/* Table controls */
.table-controls {
    display: flex;
    justify-content: right;
    margin-right: 25px;
    margin-bottom: 15px;
    display: none; /* Hide by default */
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions .btn {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.table-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.table-actions .select-btn {
    background-color: #4CAF50;
    color: white;
}

.table-actions .archive-selected-btn {
    background-color: #2196F3;
    color: white;
    display: none;
}

.table-actions .show-archived-btn {
    background-color: #9C27B0;
    color: white;
}

.table-actions .cancel-selection-btn {
    background-color: #f44336;
    color: white;
    display: none;
}

.action-btn.hidden {
    display: none;
}

 /* Add pagination styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background-color: #e0e0e0;
}

.pagination-btn.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Checkbox styling */
.request-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Archived requests modal */
.archived-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.archived-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.archived-table th, .archived-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.archived-table th {
    background-color: #f2f2f2;
}

/* Phone icon styles */
.contact-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phone-icon {
    color: #1a73e8;
    text-decoration: none;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.phone-icon:hover {
    color: #0d5ab1;
    background-color: rgba(13, 90, 177, 0.1);
}

.phone-icon i {
    pointer-events: none;
}
        
/* Table ends */

/* Yellow Page*/

/* Content */
.content-wrapper {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.popup-card {
  background-color: var(--main-color);
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 0.3px solid #c4c4c4;
  max-width: 1400px;
  width: 70%;
  text-align: left;
}

.popup-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.subtitle {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Table */
/* Updated Directory Table Style */
.directory-table {
  overflow-x: auto;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.directory-table table {
  width: 90%;
  border-collapse: collapse;
  background-color: #f0e5e5;
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table header */
.directory-table thead th {
  background-color: #d1c5c5;
  color: #000;
  text-align: left;
  padding: 0.8rem 1rem;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Table rows */
.directory-table tbody tr {
  transition: background-color 0.2s ease;
}

.directory-table tbody tr:hover {
  background-color: #cfc4c4;
}

.directory-table td {
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  line-height: 1.5;
  vertical-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keep custom styles */
.directory-table .dept {
  color: #000000;
  font-weight: bold;
}

.directory-table .contact-num {
  color: red;
  font-weight: bold;
}

/* Responsive text wrapping for multiple numbers */
.directory-table td.contact-num {
  white-space: normal;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted-text);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .directory-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* Menu Button */
.menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
  }

  .menu-btn div,
  .menu-btn::before,
  .menu-btn::after {
    content: "";
    background-color: var(--accent-color);
    height: 3px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
  }

  .menu-btn div {
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-btn::before {
    top: 0;
  }

  .menu-btn::after {
    bottom: 0;
  }

  .menu-btn.open div {
    background-color: transparent;
  }

  .menu-btn.open::before {
    transform: rotate(45deg);
    top: 50%;
  }

  .menu-btn.open::after {
    transform: rotate(-45deg);
    bottom: 50%;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    height: calc(100vh - 72px);
    width: 240px;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .nav-links.nav-active {
    transform: translateX(0);
  }
}

/* Yellow Page Ends */

/* Modal Emergency Type Start */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.emergency-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.emergency-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.emergency-option:hover {
    background: #f5f5f5;
}

.emergency-option input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
}

input:checked + .checkmark {
    background: #007bff;
}

input:checked + .checkmark::after {
    content: "✓";
    color: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.emergency-label {
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cancel-btn {
    background-color: #dc3545 !important;
    color: white !important;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.confirm-btn {
    background: #28a745;
}
/* Modal Emergency Type End */

/* New styles for Minor Emergency option */
.emergency-option.minor-emergency {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px 0;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.emergency-option.minor-emergency:hover {
    background-color: #e9f7fe;
    border-color: #3498db;
}

.emergency-option.minor-emergency .emergency-label {
    font-weight: 600;
    color: #3498db;
}

.emergency-option.minor-emergency i {
    margin-right: 10px;
    font-size: 1.2em;
    color: #3498db;
}
/* Update tanod modal styles */
.tanod-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh; /* Set maximum height */
    display: flex;
    flex-direction: column;
}

.tanod-list {
    overflow-y: auto; /* Make content scrollable */
    max-height: 60vh; /* Set scrollable area height */
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.tanod-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Keep existing column styles */
.tanod-table th,
.tanod-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Column width definitions - keep these */
.tanod-table th:nth-child(1),
.tanod-table td:nth-child(1) {
    width: 10%;
    text-align: center;
}

.tanod-table th:nth-child(2),
.tanod-table td:nth-child(2) {
    width: 10%;
    text-align: center;
}

.tanod-table th:nth-child(3),
.tanod-table td:nth-child(3) {
    width: 40%;
    text-align: left;
}

.tanod-table th:nth-child(4),
.tanod-table td:nth-child(4) {
    width: 40%;
    text-align: left;
}

/* Add scrollbar styling */
.tanod-list::-webkit-scrollbar {
    width: 8px;
}

.tanod-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tanod-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tanod-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal actions at bottom */
.modal-actions {
    margin-top: auto; /* Push to bottom */
    padding-top: 15px;
}

/* Contact cell styling */
.tanod-table .contact-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 150px; /* Ensure minimum width */
}

.contact-cell .phone-container {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.phone-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-left: 8px;
    display: inline-flex; /* Ensure icon stays visible */
}

/* Ensure radio buttons are centered */
.tanod-radio {
    width: 18px;
    height: 18px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.tanod-id {
    text-decoration: underline;
    cursor: help;
    position: relative;
}

.tanod-id:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 100;
    font-size: 14px;
}

.minor-actions {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
}

.minor-actions .complete-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 5px; /* Space between Complete and Cancel */
    width: 100%; /* Full width */
}

.minor-actions .cancel-req {
    margin-top: 0; /* Reset margin */
    margin-bottom: 0;
    width: 100%; /* Full width */
}
/* New styles for Minor Emergency option */

/* Modal Dispatcher List Start */
.dispatcher-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
}

.dispatcher-table {
    width: 100%;
    border-collapse: collapse;
}

.dispatcher-table th,
.dispatcher-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.dispatcher-table th {
    background-color: #f8f9fa;
}

.dispatcher-table tr:hover {
    background-color: #f5f5f5;
}
/* Modal Dispatcher List End */

/* Notification Alert */
.new-request-alert {
  position: fixed;
  bottom: -100px;
  right: 20px;
  background: #ff4444;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: bottom 0.3s ease-in-out;
  z-index: 1000;
  max-width: 400px;
}

.new-request-alert.show {
  bottom: 20px;
}

.close-alert-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.alert-message {
  font-size: 1.1em;
  flex-grow: 1;
}

.alert-message::before {
  content: "🚨 ";
}