/* style.css */

/* Coastal Ocean Colors */
:root {
  --bg-light: #CAF0F8;
  --accent: #00B4D8;
  --accent-dark: #0096C7;
  --text-dark: #023E8A;
  --title: #0077B6;
  --white: #ffffff;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: var(--bg-light);
  padding: 20px;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 500px;
  margin: auto;
  padding: 0 12px;
}

/* Profile Section */
.profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.username {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--title);
}

.role {
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* Form Card */
.form-card {
  background-color: var(--white);
  padding: 8px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form input,
.form select {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  width: 100%;
}

.form button {
  background-color: var(--accent);
  color: white;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form button:hover {
  background-color: var(--accent-dark);
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    width: 98%;
    padding: 0 8px;
  }

  .username {
    font-size: 1.1rem;
  }

  .role {
    font-size: 0.85rem;
  }

  .form input,
  .form select,
  .form button {
    font-size: 0.95rem;
    padding: 8px;
  }
}

/* Login page styles */
.login-body {
  margin: 0;
  background-color: #0077B6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

.login-container {
  background-color: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 94%;
  max-width: 400px;
}

.login-title {
  text-align: center;
  color: #0077B6;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  #barChart {
    height: 400px !important; /* Adjust the height value as needed */
  }
}

#facilityReportTable {
    width: 100%;
    border-collapse: collapse;
  }

  #facilityReportTable th, #facilityReportTable td {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: none;
    border-right: none;
    padding: 8px;
    text-align: left;
  }

  #facilityReportTable thead tr {
    border-bottom: 2px solid var(--accent);
  }
  
  #grandTotalTable {
    width: 100%;
    border-collapse: collapse;
  }

  #grandTotalTable th, #grandTotalTable td {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: none;
    border-right: none;
    padding: 8px;
    text-align: left;
  }
  #indFacilityTable {
    width: 100%;
    border-collapse: collapse;
  }

  #indFacilityTable th, #indFacilityTable td {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: none;
    border-right: none;
    padding: 8px;
    text-align: left;
  }

  #indFacilityTable thead tr {
    border-bottom: 2px solid var(--accent);
  }