.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: fadeIn 0.2s ease;
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.update-btn {
  width: 100%;
  padding: 10px;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.update-btn:hover {
  background: #1b5e20;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}
* {
    box-sizing: border-box;
}

.pagination-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.pagination {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination a {
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background-color: #e0e0e0;
  color: #333;
  transition: 0.2s ease;
}

.pagination a:hover {
  background-color: #100034;
  color: #fff;
}

.pagination a.active {
  background-color: #100034;
  color: #fff;
}


@media screen and (max-width: 480px) {
  .pagination a {
    padding: 5px 8px;
    font-size: 11px;
  }

  .pagination-wrapper {
    justify-content: center; 
  }
}
    body {
      font-family: Arial, sans-serif;
      background-color: #f5f5f5;
      margin: 0;
      padding: 0;
    }

    .container {
  width: 90%;
  margin: 20px auto;
  padding: 10px;
  overflow: visible; 
}
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 25px;  
}

    .list_users {
      width: 100%;
      border-collapse: collapse;
      min-width: 900px;
      background-color: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .list_users th, .list_users td {
      padding: 12px 15px;
      text-align: center;
    }

    .list_users th {
      background-color: #100034;
      color: #fff;
      font-weight: 600;
      position: sticky;
      top: 0;
      z-index: 1;
    }

    .list_users tr:nth-child(even) {
      background-color: #f9f9f9;
    }

    .list_users tr:hover {
      background-color: #e6f2ff;
      transition: 0.3s;
    }

    td {
      white-space: nowrap;
    }
	  
	  .Edit, .Delete{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.Edit {
  background-color: #100034;
  color: #fff;
}

.Delete {
  background-color:#B22222;
  color: #fff;
}
	  .Create{
		background-color:#100034;
		  color: #fff;
	  }

.Edit:hover { 
	background-color: #1565c0; 
	  }
.Delete:hover { 
	background-color: #FF0000;
	  }
	  
	  .Add{
		padding-bottom:20px;  
	  }

.Create{
  display: inline-block;
  padding: 10px 34px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}


   

@media screen and (max-width: 1024px) {
  .container {
    width: calc(100% - 50px); 
    margin-left: 50px;
    padding: 10px;
  }

  .list_users {
    font-size: 13px;
    min-width: 750px;  
  }

  .list_users th, .list_users td {
    padding: 10px 12px;
  }

  .monheader {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .Edit, .Delete, .Create {
    padding: 5px 9px;
    font-size: 12px;
  }
}


@media screen and (max-width: 768px) {
  .container {
    width: calc(100% - 50px); 
    margin-left: 50px;
    padding: 8px;
  }

  .list_users {
    font-size: 12px;
    min-width: 700px;
  }

  .list_users th, .list_users td {
    padding: 8px 10px;
  }

  .monheader {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .Edit, .Delete, .Create {
    padding: 4px 8px;
    font-size: 11px;
  }
}


@media screen and (max-width: 480px) {
  .container {
    width: calc(100% - 60px);  
    margin-left: 60px;
    padding: 5px;
  }

  .list_users {
    font-size: 10px;
    min-width: 480px;   
  }

  .list_users th, .list_users td {
    padding: 6px 8px;   
  }

  .monheader {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .Edit, .Delete, .Create {
    padding: 3px 6px;
    font-size: 9px;
  }
}


body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
}

.main-content {
    margin-left: 60px;
    margin-top: 60px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: auto;
    justify-content: center;
    align-items: center;
}


/* DASHBOARD */
.dash-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    margin-left: 60px;
    margin-top: 0px;  
}


.main-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-wrap: nowrap;
}


.welcome {
    font-size: 30px;
    color: #100034;
}

.dashheader {
    align-self: flex-start;
    color: #100034;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.center-box {
    position: relative;
    background-color: #f0f0f0;
    border-radius: 20px;
    flex: 0 0 70%;
    min-width: 300px; 
    max-width: none;
    height: 80vh;
    box-shadow: 3px 0 10px rgba(0,0,0,0.1), 0 6px 12px rgba(0,0,0,0.15), -3px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 20px;
    gap: 12px;
    margin: 0;
}


.header-area {
    position: relative;
    height: 80px;
}

.center-map {
    flex-grow: 1;
    border-radius: 15px;
}




#map {
    width: 100%;
    height: 100%;
	
    border-radius: 15px;
}

@media (max-width: 768px) {
    .center-map {
        width: 100%;
        min-height: 200px;     
        height: auto;          
        border-radius: 15px;
    }

    #map {
        width: 100%;
        height: 100%;          
        min-height: 200px;     
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .center-map,
    #map {
        min-height: 200px;
    }
}


.location {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0px;
    left: 0px;
}

.location-header {
    font-weight: bold;
    margin-bottom: 5px;
    color: #100034;
}

.location-address {
    font-size: 14px;
    color: #555;
}

.statusbox {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #f0f0f0;
    border-radius: 10px;
    width: 120px;
    max-width: 800px;
    height: 60px;
    box-shadow: 3px 0 10px rgba(0,0,0,0.1), 0 6px 12px rgba(0,0,0,0.15), -3px 0 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

.status-header {
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    gap: 10px;
    flex-grow: 1;
}

.status-dot {
    width: 15px;
    height: 15px;
    background-color: green;
    border-radius: 50%;
    display: inline-block;
}

.status-text {
    font-weight: normal;
}

.right-column {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}





    .right-column .rectangle {
        width: 100%;
        max-width: 100%;
        height: 150px;
        background-color: #100034;
        border-radius: 15px;
        box-shadow: 3px 0 10px rgba(0,0,0,0.1), 0 6px 12px rgba(0,0,0,0.15), -3px 0 10px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

.rectangle .rect-header {
    font-weight: bold;
    font-size: 16px;
    text-align: left;
    color: white;
}

.rectangle .rect-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: white;
}


.water-level-box {
    position: relative;
    overflow: hidden;
    background-color: #100034;
}

   
    .water-level-box .rect-header,
    .water-level-box .rect-content {
        position: relative;
        z-index: 2;
    }

.wave-svg {
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 300%; 
    height: 100%;
    pointer-events: none;
    z-index: 1;
}


.wave1 {
    fill: rgba(0, 102, 255, 0.4); 
   
    animation: waveMove 12s linear infinite;
}

.wave2 {
    fill: #010057;
    animation: waveMove 18s linear infinite;
    transform: translateY(4px);
    opacity: 0.7;
}


@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-66.6667%);
    }
   
}





.last-checked-box {
    position: relative;
    overflow: hidden;
}


.fish-school {
    position: absolute;
    bottom: 10px;
    left: -50px; 
    width: 150%; 
    height: 40px;
    pointer-events: none;
    z-index: 1;
}


.fish {
    fill: rgba(1, 0, 87, 0.5); 
    width: 30px;
    height: 15px;
    position: absolute;
}



.fish1 {
    bottom: 5px;
    animation: swim1 10s linear infinite;
}

.fish2 {
    bottom: 15px;
    animation: swim2 12s linear infinite;
    transform: scale(0.8);
}

.fish3 {
    bottom: 25px;
    animation: swim3 14s linear infinite;
    transform: scale(0.9);
}

.fish4 {
    bottom: 10px;
    animation: swim4 11s linear infinite;
    transform: scale(0.7);
}


@keyframes swim1 {
    0% {
        left: -40px;
    }

    100% {
        left: 110%;
    }
}

@keyframes swim2 {
    0% {
        left: -50px;
    }

    100% {
        left: 120%;
    }
}

@keyframes swim3 {
    0% {
        left: -60px;
    }

    100% {
        left: 130%;
    }
}

@keyframes swim4 {
    0% {
        left: -70px;
    }

    100% {
        left: 115%;
    }
}

.sim-btn {
    background: #100034;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}


.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16,0,52,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


.modal-content {
    background: #100034;
    padding: 20px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    color: white;
}


.modal-btn,
.close-btn {
    background: white;
    color: #100034;
    border: none;
    padding: 8px 14px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}







/* MONITORING */

.mon-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-left: 60px;
    box-sizing: border-box;
}

.monheader {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0a1f5e;
    margin-bottom: 1.5rem;
}

.mon-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.mon-left-box {
    background-color: #f9f9f9;
    border-radius: 20px;
    flex: 0 0 70%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mon-box-header {
    font-weight: bold;
    font-size: 1.4rem;
    color: #100034;
    z-index: 5;
}

.mon-location {
    font-size: 14px;
    color: #555;
    margin: 5px 0 10px;
    word-break: break-word;
}

.mon-left-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    color: #0a1f5e;
}

.mon-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
}

.mon-dot.green { background-color: #4caf50; }
.mon-dot.orange { background-color: #ffa500; }
.mon-dot.red { background-color: #ff4c4c; }

.mon-right-column {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mon-right-column .mon-rect,
.controller-box {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 15px;
    background-color: #100034;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.mon-right-column .mon-rect:hover,
.controller-box:hover {
    transform: translateY(-3px);
}

.mon-rect-header {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.mon-rect-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.status-list-box .mon-rect-body {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
}

.current-level-box .mon-rect-body {
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#currentWaterLevel {
    font-size: 2rem;
    font-weight: bold;
}

.current-level-box span.unit {
    margin-left: 5px;
}

.status-description-box .mon-rect-body {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.mon-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.controller-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    background-color: #100034;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.controller-box label {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.controller-box input[type="number"],
.controller-box input[type="time"],
.controller-box select {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    width: 100%;
    margin-bottom: 5px;
}

.controller-box button {
    padding: 10px 0;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    background-color: #08306b;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.controller-box button:hover {
    background-color: #08306b;
}

.controller-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.controller-subsection {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 10px;
    margin-top: 5px;
}

.filter-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background-color: #08306b;
    color: white;
    transition: 0.2s;
}

.filter-btn.active {
    background-color: white;
    color: black;
}

.filter-btn:hover {
    opacity: 0.85;
}


.mon-left-box canvas {
    width: 100% !important;
    height: auto !important;
}


@media (max-width: 1200px) {
    .mon-left-box { flex: 2 1 0; }
    .mon-right-column { flex: 1 1 0; }
}

@media (max-width: 900px) {
    .mon-row {
        flex-direction: column;
        gap: 20px;
    }
    .mon-left-box, .mon-right-column {
        flex: 1 1 100%;
        min-width: 100%;
        height: auto;
    }
    .mon-left-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .status-indicator {
        margin-top: 5px;
        margin-bottom: 0;
        gap: 10px;
    }
    .current-level-box .mon-rect-body,
    .status-description-box .mon-rect-body {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mon-left-box, .mon-right-column {
        padding: 15px;
    }
    .controller-box input,
    .controller-box select,
    .controller-box button {
        font-size: 14px;
    }
}

@media (max-width: 500px) {
    .monheader { font-size: 1.5rem; }
    .mon-box-header { font-size: 1.2rem; }
    .controller-box label { font-size: 13px; }
    .filter-btn { font-size: 12px; padding: 6px; }
}




/* NAVIGATION */
.sidebar {
    width: 60px;
    min-height: 100vh;
    max-height: 1000vh;
    height: 100%;
    background-color: #100034;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;

}

    .sidebar .logo {
        width: 40px;
        height: 40px;
        margin-bottom: 30px;
        object-fit: contain;
    }

    .sidebar a {
        width: 40px;
        height: 40px;
        margin: 15px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        text-decoration: none;
        transition: background 0.3s, transform 0.2s;
        border-radius: 8px;
    }

        .sidebar a:hover {
            background-color: #1a2b5c;
            transform: scale(1.1);
        }

        .sidebar a svg {
            width: 24px;
            height: 24px;
            fill: white;
        }

    .sidebar .logout {
        margin-top: auto;
    }




/* HEADER */


.header {
    position: fixed;
    top: 10px;
    right: 20px;
    background: transparent;
    color: #0d1b3d;
    display: flex;
    font-weight: 500;
    z-index: 1001;
}

    .header .user {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .header .user svg {
            width: 24px;
            height: 24px;
            fill: #0d1b3d;
        }

        .header .user span {
            line-height: 1;
            vertical-align: middle;
        }





/* FOOTER */


.footer {
    width: 100%;
    padding: 15px 50px;
    text-align: center;
    font-size: 12px;
    color: #100034;
    background: transparent;
}






/* MEDIA QUERY */




@media (max-width: 768px) {

    .sidebar {
        width: 50px;
    }

    .dash-content,
    .main-content {
        margin-left: 50px;
        padding: 12px;
    }

    .dashheader {
        margin-left: 0;
        margin-bottom: 1.5rem;
    }

    .main-row {
        flex-direction: column;
    }

    .center-box {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 200px;
        height: auto;
    }

    .header-area {
        position: relative;
        height: auto;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }


    .right-column {
        flex: 1 1 100%;
        min-width: 0;
        gap: 20px;
    }

        .right-column .rectangle {
            width: 100%;
            max-width: none;
			min-width: 200px;
            height: auto;
        }

    .location,
    .statusbox {
        position: relative; 
        top: auto;
        left: auto;
        right: auto;
        flex: 1 1 200px;
    }

    .center-box {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .location-status-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
         flex-shrink: 0; 
}

    .location {
        flex: 1 1 200px;
    }

    .statusbox {
        flex: 0 0 auto;
        min-width: 140px;
    }

    .location-address {
        word-break: break-word;
    }

    .center-image {
        max-height: 400px;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 0;
        width: 100%;
        margin: 0;
    }

    .footer {
        margin-left: 50px;
        width: calc(100% - 50px);
        box-sizing: border-box; 
    }
}

/* ALERTS PAGE */
.alerts-container {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.main-content:has(.alerts-container) {
    justify-content: flex-start !important;
    align-items: stretch !important;
    width: 100%;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.alerts-header h1 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #0066ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.alerts-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f0e6f6;
    border-radius: 8px;
    padding: 8px 12px;
    flex: 1;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 4px;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #999;
}

.search-box input:focus {
    outline: none;
}

.search-icon {
    color: #999;
    cursor: pointer;
}

.filter-btn {
    background-color: #f0e6f6;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
}

.alerts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.alerts-table thead {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.alerts-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #666;
    font-size: 13px;
}

.alerts-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.alerts-table tbody tr:hover {
    background-color: #fafafa;
}

.alerts-table td {
    padding: 12px;
    font-size: 13px;
    color: #333;
}

.alerts-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0066ff;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

.level-0 {
    background-color: #e5f0ff;
    color: #0066ff;
}

.level-1 {
    background-color: #e5ffe5;
    color: #30c130;
}

.level-2 {
    background-color: #fff5e5;
    color: #c17030;
}

.level-3 {
    background-color: #ffe5e5;
    color: #c13030;
}

.status-safe {
    color: #0066ff;
    font-weight: 600;
}

.status-normal {
    color: #30c130;
    font-weight: 600;
}

.status-danger {
    color: #ffaa00;
    font-weight: 600;
}

.status-critical {
    color: #ff4444;
    font-weight: 600;
}
/* RESPONSIVE ALERTS */
@media (max-width: 900px) {
    .alerts-container {
        padding: 15px;
    }

    .alerts-table th,
    .alerts-table td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .search-box input {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 60px;
        margin-top: 60px;
        padding: 10px;
        justify-content: flex-start;
    }

    .alerts-container {
        padding: 12px;
    }

    .alerts-controls {
        flex-direction: column;
        gap: 8px;
    }

    .search-box {
        width: 100%;
    }

    .filter-btn {
        width: 100%;
    }

    .alerts-table {
        font-size: 12px;
    }

    .alerts-table th,
    .alerts-table td {
        padding: 8px 6px;
        font-size: 11px;
    }

    .alerts-table th:nth-child(3),
    .alerts-table td:nth-child(3) {
        display: none;
    }

    .level-badge {
        padding: 3px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-left: 60px;
        padding: 8px;
    }

    .alerts-container {
        padding: 10px;
        border-radius: 8px;
    }

    .alerts-table {
        font-size: 10px;
    }

    .alerts-table th,
    .alerts-table td {
        padding: 6px 4px;
        font-size: 10px;
    }

    .alerts-table th:nth-child(2),
    .alerts-table td:nth-child(2),
    .alerts-table th:nth-child(3),
    .alerts-table td:nth-child(3) {
        display: none;
    }

    .search-box {
        padding: 6px 8px;
    }

    .search-box input {
        padding: 3px;
        font-size: 12px;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 14px;
    }

    .level-badge {
        padding: 2px 6px;
        font-size: 10px;
    }

    .status-critical {
        font-size: 10px;
    }

    .status-normal {
        font-size: 10px;
    }

    .status-danger {
        font-size: 10px;
    }

    .status-safe {
        font-size: 10px;
    }
}

/* INDEX */
body:has(.login-container) {
    background: linear-gradient(135deg, #0f0029 0%, #1a003d 100%);
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
}

.login-left {
    flex: 1;
    background: white;
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  flex-direction: column;
 
  
}
.logo-text {
  margin-top: 10px;
  font-size: 25px;
  color: #555;
  text-align: center;
	font-weight:700;
	font-family: 'Roboto', sans-serif;
	
}

.logo-placeholder {
    width: 40px;
    height: 40px;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-image {
    width: 350px;
    height: 350px;
    object-fit: contain;
}

.login-right {
    flex: 1;
    padding: 60px 40px;
    background: white;
}

.login-right h2 {
    text-align: center;
    color: #0f0029;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #0f0029;
    box-shadow: 0 0 0 3px rgba(15, 0, 41, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #0f0029;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background-color: #1a003d;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.signup-link a {
    color: #0f0029;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #1a003d;
}


@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 100%;
    }

    .login-left {
        padding: 40px;
        display: none; 
    }

    .login-right {
        padding: 40px;
    }

    .logo-image {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }
}


@media (max-width: 480px) {
    .login-container {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
        border-radius: 16px;
    }

    .login-right {
        padding: 20px;
    }

    .login-right h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 10px 12px;
        font-size: 13px;
    }

    .login-btn {
        padding: 10px;
        font-size: 13px;
    }

    .signup-link {
        font-size: 12px;
        margin-top: 15px;
    }

    .signup-link a {
        font-size: 13px;
    }
}


/* DEMOGRAPHICSSSSSSS */
.demo-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 60px;
    margin-top: 0;
}

.demo-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #100034;
    margin-left: 0;
    margin-bottom: 1.5rem;
}


.demo-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.demo-stat-box {
    background-color: #100034;
    color: #fff;
    border-radius: 20px;
    flex: 1 1 calc(25% - 15px);
    min-width: 150px;
    padding: 20px;
    box-shadow: 3px 0 10px rgba(0,0,0,0.1), 0 6px 12px rgba(0,0,0,0.15), -3px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.demo-stat-header {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.demo-stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.demo-graph-box {
    background-color: #f0f0f0;
    border-radius: 20px;
    box-shadow: 3px 0 10px rgba(0,0,0,0.1), 0 6px 12px rgba(0,0,0,0.15), -3px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

.demo-graph-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.demo-graph-pie {
    flex: 1 1 35%;
    min-width: 200px;
   
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-graph-bar {
    flex: 1 1 60%;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-summary-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.demo-summary-box {
    flex: 1 1 70%;
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 3px 0 10px rgba(0,0,0,0.1), 0 6px 12px rgba(0,0,0,0.15), -3px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.demo-summary-header {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #100034;
}

.demo-summary-content {
    font-size: 14px;
    color: #333;
}


.demo-buttons {
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .demo-buttons button {
        padding: 10px;
        border: none;
        border-radius: 10px;
        background-color: #100034;
        color: #fff;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .demo-buttons button:hover {
            background-color: #0a0a2a;
        }

.demo-graph-box img {
    width: 100%;
    height: 100%;         
    max-width: 100%;
    max-height: 100%;    
    object-fit: contain;  
    border-radius: 15px;
    display: block;
}

@media (max-width: 900px) {
    .demo-row, .demo-graph-row, .demo-summary-row {
        flex-direction: column;
    }

    .demo-stat-box {
        flex: 1 1 100%;
    }

    .demo-graph-pie, .demo-graph-bar, .demo-summary-box, .demo-buttons {
        flex: 1 1 100%;
    }
}
