
html, body {
  margin: 0;
  padding: 0;
}

.Background {
  height: 100vh;
  width: auto;
  overflow: hidden;
}
.Background img {
  position: fixed;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;     
  object-position: center;
}

.navbar {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 2%;
}
.navbar .logo img {
  margin-top: 2vh;
  height: 10vh;
  width: auto;
}
/* START OF HOMEPAGE AND SIGN IN */
.ContentHomepage { 
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.ContentHomepage h1 {
  font-family: monospace;
  font-size: 10vh;
  color: white;
  margin-left: 5%;
}
.ContentHomepage a.btn {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  color: white;
  border: 0.15em solid white;
  padding: 0.8em 2em;
  border-radius: 5em;
  margin-left: 5%;
}
.Homepage-Container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


.Homepage-Container .Background {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.Homepage-Container .Background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.Homepage-Container .brand-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left: 4%;
}

.Homepage-Container .brand-section h1 {
    font-size: 6vw;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: white;
    font-weight: 800;
}

.Homepage-Container .brand-section .btn {
    width: fit-content;
    padding: 12px 35px;
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-family: sans-serif;
}


.Homepage-Container .icon-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20%;
    width: 40px;
    height: 40px;
}

.Homepage-Container .icon-btn img {
    position: static !important;
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
}

/* SOCIAL BUTTONS BACKGROUND COLORS */
.Homepage-Container .guest  { background-color: #ffffff; }
.Homepage-Container .facebook { background-color: #4267B2; }
.Homepage-Container .x-corp   { background-color: #201919; }
.Homepage-Container .google  { background-color: #ffffff; }
.Homepage-Container .apple   { background-color: #555555; }


.Homepage-Container .form-footer a {
    color: #4da6ff;
}
.Homepage-Container .terms-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    text-align: left;
}

.Homepage-Container .terms-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 3px;
}

.Homepage-Container .terms-container label {
    color: white;
    font-size: 0.8rem;
    font-family: sans-serif;
    line-height: 1.4;
    cursor: pointer;
}

.Homepage-Container .terms-container a {
    color: #4da6ff;
    text-decoration: underline;
}

.Homepage-Container #signup-btn.disabled-btn {
    opacity: 0.6;
    cursor: not-allowed;
}
.return-home {
    margin-top: 15px;
    text-align: center;
}

.return-home a {
    color: rgba(255, 255, 255, 0.6); /* Slightly faded white */
    text-decoration: none;
    font-family: 'Baloo 2', cursive;
    font-size: 0.9rem;
    transition: 0.3s;
}
.Login {
  height: 100vh;
    width: 35%; 
    display: flex;
    justify-content: flex-end; 
    position: relative;
    z-index: 2;
	padding-right:20px;
}
.login-panel {
 display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: rgba(20, 22, 24, 0.75); 
    padding: 10% 13%; 
    box-sizing: border-box;
}
.welcome-sub {
    border-bottom: 0.1em solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1%;
    margin-bottom: 8%;
    display: inline-block;
    width: fit-content;
}
.login-panel h2, 
.login-panel p, 
.login-panel span, 
.login-panel a {
    color: #ffffff;
}
.login-panel input {
    background: #b1b6bb;
    border: none;
    padding: 5%;
    margin-bottom: 5%;
    border-radius: 0.5em;
    width: 100%;
    box-sizing: border-box;
}
.login-panel button {
    width: 100%;
    padding: 4%;
    background: #fff;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
}
.social-login {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: auto; 
    padding-bottom: 20px;
}
.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
}
.social-item span {
    color: white !important;
    font-size: 0.65rem;
    margin-top: 5px;
}
.icon-btn {
    width: 3.5vw; 
    height: 3.5vw;
    min-width: 35px; 
    min-height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20%;
    margin-bottom: 8%;
    display: flex; 
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.icon-btn img {
    width: 80%; 
    height: 80%; 
    object-fit: contain;
}
/* END OF HOMEPAGE AND SIGN UP */



.TopBar {
  position: fixed;
  z-index: 10; 
  width: 100%;
  height: 50px;
}
.TopBar .bar { 
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;      
}
.TopBar .Logo {
  position: absolute;
  top: 8px;          
  left: 20px;        
  width: 120px;      
  height: auto;
  z-index: 1;         
}
.nav {
  display: flex;
  flex-direction: column;
  align-items: start;
  height: 100vh;
  position: fixed;
}
.SideBar {
  display: flex;
  flex-direction: column;
  margin-top: -4px;
  width:120px;
}
.sbButtons {
  display: inline-block;
  display: block;
  padding: 0;
  margin: 0;
  align-self: flex-start;
}
.sbButtons img {
  display: block;
  width: 120px;
  height: auto;
}
.sbExtra img {
  display: block;
  width: 120px;
  height: auto;
}
.content {
  padding-left: 230px;
  padding-top: 64.7708px;
  width: 140vh;
}
.LoadBar {
  position: fixed;
  z-index: -1; 
  display: flex;
  flex-direction: column;
  align-items: center;   
  width: 350px;
  height: 100vh;
  overflow-y: auto; 
  margin-top: 35px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1); /* subtle shadow */
  margin-left:120px;
}

.LoadBar .container {
  background-color: #115BA4;
  width: 90%; /* slightly larger */
  padding: 15px 20px; /* spacing inside container */
  margin: 10px 0;     
  border-radius: 10px; 
  display: flex;
  flex-direction: column; /* stack text vertically */
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* subtle shadow */
}

.LoadBar .container p {
  color: white;
  margin: 3px 0; 
  font-size: 14px;
}

.LoadBar .LoadScore {
  margin-bottom: 20px;
  Position:absolute;
  top: 20px;               
}

.battery-container {
  width: 200px;
  height: 50px;
  border: 2px solid #333;
  border-radius: 5px;
  overflow: hidden;
  background-color: #ccc;
  position: relative;
  margin-left:20px;
  margin-top:40px;
}
 
.battery-bar {
  height: 100%;
  transition: width 0.5s, background-color 0.5s;
}
.green { background-color: #4caf50; }
.yellow { background-color: #ffeb3b; }
.red { background-color: #f44336; }
.battery-tip {
  width: 10px;
  background-color: #333;
  position: absolute;
  right: -12px;
  top: 0;
  bottom: 0;
  border-radius: 2px;
}
.battery-text {
  font-family: 'Baloo 2', cursive;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  text-align: center;
  margin-top: 10px;
}
.battery-text .percentage {
  font-size: 24px;
  font-weight: bold;
}
.battery-text .label {
  font-size: 14px;
  color: #555;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.dashboardContent {
  width: 88vw;
  height: 100%;
  padding-top:10vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  gap: 30px;
}
.incidentPanel {
  background-color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 55%;
  max-width: 1200px;
}
.incidentPanel h2 {
  margin: 0;
  padding: 20px 0px 20px 3% ;
  color: white;
  background-color: #115BA4;
  width: 97%;
}
.incidentPanel div {
  margin: 0;
  width: 100%;
}
.incidentPanel .Grid{
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    border-bottom: 1px solid #595959;
}
.incidentPanel .Grid div {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-right: 1px solid #595959;
}
.incidentPanel .Grid > div:last-child {
    border-right: none;
}
.incidentPanel .Grid div:nth-child(2) {
    flex: 0.5;   /* smaller */
}
.MapContainer {
  width: 100vw;
  display: flex;
  justify-content: end;
}
#map {
  height: calc(100vh - 55px);
  width: calc(100vw - 120px);
  z-index: 0; 
  position: absolute; 
  top: 55px;  
  left: 120px; 
}
.incident-panel {
    background: white;
    padding: 10px;
    width: 250px;
    max-height: 350px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 13px;
}

.incident-header {
    font-weight: bold;
    margin-bottom: 5px;
    cursor: pointer;
}

#incidentSearch {
    width: 100%;
    padding: 5px;
    margin-bottom: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.incident-list {
    max-height: 230px;
    overflow-y: auto;
}

.incident-item {
    padding: 6px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.incident-item:hover {
    background: #f5f5f5;
}


.popup-box {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  width: 350px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.2s ease-in-out;
}

.popup-box h3 {
  margin-bottom: 10px;
}

.popup-box button {
  margin-top: 20px;
  padding: 8px 20px;
  border: none;
  background: #000;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* =========================================
   INCIDENT MANAGEMENT - FLUID SYSTEM (VH/VW)
   ========================================= */

.incidentContent {
    margin-left: 12vw; 
    width: 88vw;
    padding: 2vh 1.5vw;   
    padding-top: 8.5vh;
    box-sizing: border-box;
}

.incident-layout-grid {
    display: flex;
	padding: 10vh;
    padding-left: 20vh;
    padding-top: 5vw;
    gap: 2vw; /* Fluid 20px equivalent */
    width: 100%;
    align-items: flex-start;
}

.incident-sidebar-panel {
	display: flex;
  	flex-direction: column;
    flex: 1; 
    background: #ffffff;
    border: 0.1vh solid #cbd5e0;
    padding: 2.5vh 1.5vw;
    border-radius: 0.2rem;
    box-sizing: border-box;
}

.incident-section-wrapper {
    padding: 40px 60px 40px 170px;
	padding-top: 70px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.incident-feed-panel {
    flex: 1; 
    box-sizing: border-box;
}

.incident-side-label {
    display: block;
    font-size: 1.3vh;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1.5vh;
    text-transform: uppercase;
}

.incident-field {
    width: 50%;
    margin-bottom: 1.2vh;
    padding: 1.1vh;
    border: 0.1vh solid #e2e8f0;
    font-size: 1.3vh;
    background: #f8fafc;
}

/* Redefined Incident Buttons */
.incidentBtn {
    border: none;
    border-radius: 0.3rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.4vh;
    padding: 0.8vh 1.2vw;
    transition: background 0.3s, opacity 0.2s;
    text-transform: uppercase;
}

.incident-btn-apply {
    width: 40%;
    background: #004a99;
    color: white;
    padding: 1.3vh;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.3vh;
}
.incident-filter-bar .apply-btn {
    width: auto;
    padding: 8px 20px;
    flex-shrink: 0;
}

.incident-new { background-color: #ffffff; color: #004a99; border: 0.1vh solid #004a99; }
.incident-edit { background-color: #718096; color: #ffffff; }
.incident-done { background-color: #38a169; color: #ffffff; }
.incident-delete { background-color: #c0392b; color: #ffffff; }

.incident-summary-container {
    margin-top: 4vh;
    padding-top: 2vh;
    border-top: 0.1vh solid #edf2f7;
    font-size: 1.3vh;
}

.stats-bar {
    display: flex;
    gap: 1.5%;
    margin-bottom: 2vh;
}

.stat-card {
    background: #ffffff;
    border: 0.1vh solid #cbd5e0;
    padding: 1.5vh 2%;
    border-radius: 0.4rem;
    font-size: 1.4vh;
    font-weight: bold;
    flex: 1;
}

.stat-card span {
    display: block;
    font-size: 2.2vh;
    color: #004a99;
}

.stat-card.critical span {
    color: #e53e3e;
}

.incident-management-box {
    border: none; 
    background: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.feed-header {
    background: #004a99;
    padding: 1.2vh 1.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.8vh;
    letter-spacing: 0.05rem;
}

.table-scroll {
    overflow-y: auto;
    max-height: 65vh;
    margin-top: -0.1vh; 
}

#incidentTable { 
    width: 100%; 
    border-collapse: collapse; 
}

#incidentTable th {
    background: #f8fafc;
    color: #1a202c;
    font-size: 1.3vh;
    padding: 1.8vh 1%;
    border-bottom: 0.2vh solid #e2e8f0;
    position: sticky;
    top: 0;
    vertical-align: middle;
}

#incidentTable td {
    padding: 1.5vh 1%;
    font-size: 1.4vh;
    border-bottom: 0.1vh solid #edf2f7;
    color: #2d3748;
}

.critical-text { color: #e53e3e; font-weight: bold; }
.hidden { display: none; }

/* ===== INCIDENT MODALS ===== */
.m-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.m-box {
    background: white;
    width: 600px;
    max-width: 90vw;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.m-header {
    background: #1f5f9b;
    color: white;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.m-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.m-full {
    grid-column: span 2;
}

.m-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.m-field label {
    font-size: 11px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

.m-field input,
.m-field select,
.m-field textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    font-size: 13px;
    border-radius: 4px;
    background: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
}

.m-field textarea {
    resize: vertical;
}

.m-footer {
    padding: 14px 20px;
    background: #f4f4f4;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #ddd;
}

.m-btn {
    padding: 9px 24px;
    font-weight: bold;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.m-cancel {
    background: #ccc;
    color: #333;
}

.m-submit {
    background: #1f5f9b;
    color: white;
}

/* Selected row highlight */
.unit-row.row-active {
    background-color: #cce0f5 !important;
    outline: 2px solid #1f5f9b;
}
/* END OF INCIDENTS */


/* ADDED BY JURO FOR UNITS */
.top-bar {
    display: flex;
    background-color: #135ba4;
    padding-top: 50px;
}

.top-bar button {
    flex: 1;
    padding: 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.top-bar button.active {
    background-color: #2f80c8;
}

/* Header */
.header {
    background-color: #023366;
    color: white;
    padding: 65px 170px;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-buttons button {
    margin-left: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.new-btn {
    background-color: #d9e6f5;
}

.edit-btn {
    background-color: #d9e6f5;
}

/* Layout */
.container {
    display: flex;
    padding: 30px;
    padding-left: 150px;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: #cfcfcf;
    padding: 15px;
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar input{
    width: 292px;
}
.sidebar select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.apply-btn {
    width: 100%;
    padding: 8px;
    background-color: #2f80c8;
    color: white;
    border: none;
    cursor: pointer;
}

/* Summary Box */
.summary {
    background-color: white;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
}

/* Units Section */
.units {
    flex: 1;
    background-color: #d9d9d9;
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
}

.unit-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    background-color: #bfbfbf;
    padding: 15px;
    margin-bottom: 15px;
    font-weight: bold;
}

.unit-header {
    background-color: transparent;
    font-weight: bold;
}


/* ADDED BY JURO FOR ACTIVE UNITS */

.top-tabs {
    display: flex;
    background-color: #1f5f9b;
}

.top-tabs button {
    flex: 1;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.top-tabs button.active {
    background-color: #2f80c8;
}

.top-tabs button:hover {
    background-color: #2b75b7;
}

/* ===== SECTION WRAPPER ===== */

.section-wrapper {
    padding: 40px 60px;
}

/* ===== HEADER BAR ===== */

.section-header {
    background-color: #245f9e;
    color: white;
    padding: 18px 25px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fake filter icon */
.filter-icon {
    width: 22px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.filter-icon span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    left: 0;
}

.filter-icon span:nth-child(1) { top: 0; }
.filter-icon span:nth-child(2) { top: 7px; width: 70%; }
.filter-icon span:nth-child(3) { bottom: 0; width: 50%; }

/* ===== TABLE CONTAINER ===== */

.table-container {
    background-color: #d9d9d9;
    padding: 25px;
    max-height: 450px;
    overflow-y: auto;
}

/* ===== TABLE ROWS ===== */

.unit-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr 1fr 1.2fr;
    padding: 16px;
    margin-bottom: 15px;
    background-color: #bfbfbf;
    font-weight: bold;
}

.unit-header {
    background: transparent;
    font-weight: bold;
}

.unit-row:not(.unit-header):hover {
    background-color: #a9a9a9;
    cursor: pointer;
}

/*ADDED BY JURO FOR DRONES PAGE */

.top-bar {
    display: flex;
}

.top-bar a {
    flex: 1;
    padding: 18px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.active-tab {
    background: #1f5f9b;
}

.inactive-tab {
    background: #9e9e9e;
}

/* ===== BIG ACTIVE VIEW ===== */

.main-container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.map-section {
    flex: 2;
    background: #1f5f9b;
    padding: 15px;
    border-radius: 8px;
}

.map-section img {
    width: 100%;
    border-radius: 8px;
}

.info-section {
    flex: 1;
    background: #1f3f6b;
    color: white;
    padding: 20px;
    border-radius: 8px;
}

/* ===== GRID VIEW ===== */

.grid-container {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.card-top {
    text-align: center;
    padding: 20px;
    font-size: 40px;
}

.card-bottom {
    background: #1f3f6b;
    color: white;
    padding: 15px;
    font-size: 14px;
}
