body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffcc00;
  width: 100vw;
  height: 100vh; 
  background-image: url(../img/backgroundv2.jpg);
  background-size: cover;
}

.login-container {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 300px;
  text-align: center;
  margin: auto;
  margin-top: 15%;
}

.logo {
  font-size: 2em;
  color: #ffcc00;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-group label {
  font-size: 0.9em;
  color: #555;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.login-button {
  background-color: #ffcc00;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  width: 100%;
}

.login-button:hover {
  background-color: #6c6c6b;
}

.footer-text {
  margin-top: 20px;
  font-size: 0.8em;
  color: #555;
}


.dashboard-container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: #ffcc00;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar .logo {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 20px;
  text-align: left;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.sidebar nav ul li {
  margin: 10px 0;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: #003366;
  font-size: 1em;
  display: block;
  padding: 10px;
  border-radius: 5px;
}

.sidebar nav ul li a:hover {
  background-color: #ffe680;
}

.sidebar nav ul li a.active {
  font-weight: bold;
  background-color: #ffd633;
}

.main-content {
  flex: 1;
  background-color: #f9f9f9;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.main-content header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logout-button {
  background-color: #ff4d4d;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
}

.logout-button:hover {
  background-color: #e60000;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: start;
}

.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin: 0;
  color: #003366;
  font-size: 1.2em;
}

.card p {
  color: #555;
  font-size: 0.9em;
  margin: 10px 0;
}

.card .button {
  display: inline-block;
  background-color: #003366;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  margin-top: 10px;
}

.card .button:hover {
  background-color: #002244;
}


.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 400px;
}

.modal-content h2 {
  margin: 0;
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 15px;
}

.modal-content form label {
  display: block;
  margin-top: 10px;
  font-size: 0.9em;
  color: #555;
}

.modal-content form input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.modal-actions button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-actions button[type="submit"] {
  background-color: #003366;
  color: white;
}

.modal-actions button[type="button"] {
  background-color: #ccc;
}

.modal-actions button:hover[type="submit"] {
  background-color: #002244;
}

.modal-actions button:hover[type="button"] {
  background-color: #bbb;
}



.add-button {
  background-color: #003366;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.add-button:hover {
  background-color: #002244;
}

.add-button:focus {
  outline: 2px solid #002244;
  outline-offset: 2px;
}


.residencias-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.9em;
}

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

.residencias-table th {
  background-color: #ffcc00; 
  color: #003366; 
  font-weight: bold;
}

.residencias-table tbody tr:nth-child(even) {
  background-color: #f9f9f9; 
}

.residencias-table tbody tr:hover {
  background-color: #f1f1f1; 
}


.residencias-table button {
  background-color: #003366; 
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8em;
  transition: background-color 0.3s ease;
}

.residencias-table button:hover {
  background-color: #002244; 
}

.residencias-table button.edit {
  background-color: #007bff; 
}

.residencias-table button.edit:hover {
  background-color: #0056b3; 
}

.residencias-table button.delete {
  background-color: #dc3545; 
}

.residencias-table button.delete:hover {
  background-color: #a71d2a; 
}

.icon {
  width: 50px;
  height: auto;
}

select {
  width: 33%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  background-color: #fff;
  color: #555;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-button {
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #003366;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-button:hover {
    background-color: #003366;
    color: white;
}

.pagination-button.active {
    background-color: #003366;
    color: white;
    pointer-events: none;
}

#searchResidential {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  margin: 10px 0 20px; 
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#searchResidential:focus {
  border-color: #003366; 
  box-shadow: 0 0 5px rgba(0, 51, 102, 0.5); 
  outline: none;
}

#searchResidential::placeholder {
  color: #aaa; 
  font-style: italic;
}

.search-container {
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  margin-bottom: 20px;
}

.search-container label {
  margin-right: 10px;
  font-size: 1em;
  color: #003366;
  font-weight: bold;
}

#searchUser {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 10px 0 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#searchUser:focus {
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.5);
    outline: none;
}

#searchUser::placeholder {
    color: #aaa;
    font-style: italic;
}

#searchSecurity {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 10px 0 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#searchSecurity:focus {
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.5);
    outline: none;
}

#searchSecurity::placeholder {
    color: #aaa;
    font-style: italic;
}

.search-container #searchHouse {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-container #searchHouse:focus {
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.5);
    outline: none;
}

.search-container #searchHouse::placeholder {
    color: #aaa;
    font-style: italic;
}

.action-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 20px;
}


.filter-container {
    margin-bottom: 20px;
}

.filter-container label {
    color: #003366;
    font-weight: bold;
    margin-right: 10px;
}

.filter-container select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #fff;
    color: #555;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-container select:focus {
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.5);
    outline: none;
}

.filter-container select:hover {
    border-color: #003366;
}

.residential-name {
  font-size: 30px;
  color: #000000;
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
}

.residential-label {
  font-weight: normal;
  color: #555;
  margin-right: 5px;
}
