/* Main content styles */
.main-content {
    flex: 1;
    padding: 0px;
    /* background-color: #f7f7f7; */
    overflow-y: auto;
    width: 100%;
    height: 100%;
}

#properties-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.property-list {
    width: 100%;
    margin: 20px auto;
    /* max-width: 85vw; */
    max-width: 100%;
    overflow-x: auto; /* Enable horizontal scrolling if the table overflows */
    margin: 20px 0;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    text-align: center;
}

.styled-table th {
    background-color: #3f0097;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 15px;
}

.styled-table td {
    color: #555;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
}

.property-logo {
    width: 50px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.styled-table a {
    color: #007BFF;
    text-decoration: none;
}

.styled-table a:hover {
    text-decoration: underline;
}

.styled-table button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hide-btn {
    background-color: #dc3545;
    color: white;
}

.hide-btn:hover {
    background-color: #c82333;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .styled-table th, .styled-table td {
        padding: 8px 10px;
        font-size: 14px;
    }

    .property-logo {
        width: 40px;
    }

    .styled-table button {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* Adjust table layout for small screens */
    .styled-table thead {
        display: none;
    }

    .styled-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }

    .styled-table tbody tr td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        text-align: left;
    }

    .styled-table tbody tr td::before {
        content: attr(data-label);
        flex-basis: 50%;
        font-weight: bold;
        color: #316698;
    }

    .property-list {
        padding: 10px;
    }
}

/* pagination */
.pagination {
    /* display: inline-block; */
    float: right;
    padding: 3px;
  }
  
  .pagination a {
    color: black;
    float: left;
    padding: 4px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
  }
  
  .pagination a.active {
    background-color: #4c61af;
    color: white;
    border: 1px solid #4c61af;
  }
  
  .pagination a:hover:not(.active) {background-color: #ddd;}
  
  .pagination a:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
  }
  
  .pagination a:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  /* entries pagination  */
  /* Container for the dropdown */
.entries-container {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
}

/* Label and entries text */
.entries-container label, 
.entries-container span {
    font-size: 14px;
    color: #333;
}

/* Dropdown styling */
.entries-dropdown {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    appearance: none; /* Hide the default arrow on the dropdown */
    background: white;
    cursor: pointer;
    /* position: relative; */
}

/* Custom arrow on the dropdown */
.entries-dropdown::after {
    content: '\25BC'; /* Unicode character for down arrow */
    font-size: 12px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .entries-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .entries-dropdown {
        width: 100%;
    }
}



/* heading section  */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;

  }

  .update-section {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .button {
    padding: 8px 16px;
    background-color: #3f0097;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .button:hover {
    background-color: #2a3d6b;
  }

  .last-update {
    font-size: 0.9em;
    color: #000;
    white-space: nowrap;
  }

  @media (max-width: 600px) {
    .container {
      flex-direction: column;
      align-items: flex-start;
    }

    .update-section {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  .button-section{
    display: flex;
  gap: 5px;
  padding: 3px;
  }





  /* css for logout and change password modal */




/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content button {
    padding: 10px;
    background-color: #344e86;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #2a3d6b;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
}

.modal-actions button {
    width: 48%;
}

/* Responsive Design */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
    }

    
    h4 {
        font-size: 1em;
    }
}


/* for dropdown */

/* Styling for dropdown */
.dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.dropdown ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown ul li {
    padding: 12px 16px;
    color: #333;
    font-size: 1rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
}

/* Hover effect on dropdown items */
.dropdown ul li:hover {
    background-color: #f0f0f0;
}






/* Styling for heading */
.heading {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    color: #3f0097;
    cursor: pointer;
   
}

/* Dropdown container */
.dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Ensures dropdown stays on top of relevant content */
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.dropdown ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown ul li {
    padding: 12px 16px;
    color: #333;
    font-size: 1rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
}

/* Hover effect on dropdown items */
.dropdown ul li:hover {
    background-color: #f0f0f0;
}

/* Show the dropdown on hover or focus */
.heading:hover .dropdown, 
.heading:focus .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Adjustments for mobile to prevent heading dropdown from covering sidebar */
@media (max-width: 768px) {
    .heading {
        z-index: auto; /
    }
    
    .dropdown {
        z-index: 5; 
    }
    
    .navcontainer {
        z-index: 10; 
    }
}

