@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";
body {
    background-color: #e6f2ff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
}

.container-wrapper {
  margin-left: 250px; /* Keeps space from the sidebar */
  display: flex;
  justify-content: center;
  /* padding-left: 20px; */
  width: 100%;

}

.container {
  max-width: 900px;
  width: 100%;
  padding: 40px;
  margin-top: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto; 
}

@media (max-width: 768px) {

  .container-wrapper {
    margin-left: 0;
    justify-content: center;

  }

  
  .container {
    margin-top: 70px !important;
    width: 100%;
      padding: 15px;
      /* margin: 20px; */
      margin-left: 0 !important;
  }

  #sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  table {
    min-width: 1000px; /* adjust as needed to prevent squeezing */
    font-size: 12px;
    table-layout: fixed;
    word-wrap: break-word;
  }

  th, td {
    padding: 6px;
    white-space: normal;
  }
}

  h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #001f4d;
  }

  label {
    display: block;
    margin-top: 10px;
    color: #34495e;
  }

  input, select, button {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

  button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 20px;
  }
  button:hover {
    background-color: #0056b3;
  }

  table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
  }
  th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
  }
  th {
    background-color: #E1F1FF;
  
  }

  .hotel-details {
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 10px;
  }
  .hotel-details input {
    width: calc(100% - 12px);
    display: inline-block;
  }
  .hotel-details button {
    width: auto;
    display: inline-block;
    background-color: #87BDF1;
    
  }
  .hotel-details button:hover {
    background-color:  #0f0e46;
  }
  .error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
  }

  p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
  min-width: 250px;
  max-width: 250px;
  background: #0F0E46;
  color: #fff;
  transition: all 0.3s;
  height: 100vh;
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

#sidebar.active {
    width: 0;
    overflow: hidden;
    height: 100vh;

}

#sidebar .sidebar-header {
    padding: 20px;
    background: #0F0E46;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #0F0E46;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #0F0E46;
    background: #fff;
}

/* Default: Hide sidebar button on large screens */
#sidebarCollapse {
  display: none !important;
}

/* Show sidebar button on smaller screens */
@media screen and (max-width: 768px) {
  #sidebarCollapse {
      display: block !important;
      font-size: 18px; /* Reduce icon size */
      color: rgb(0, 0, 0);
      border: none;

  }
}

.menu-container {
  display: flex;
  align-items: center; /* Aligns button with text */
  gap: 10px; /* Adjust spacing between menu button and text */
}

.menu-btn {
  all: unset; /* Removes default button styles */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px; /* Adjust icon size */
  width: 30px; /* Set width */
  height: 30px; /* Set height */
  cursor: pointer;
  outline: none; /* Removes default outline */
    border: none; /* Ensures no border appears */
    background: none !important; /* Removes any background highlight */
}

.menu-btn:focus,
.menu-btn:active {
    outline: none !important;
    box-shadow: none !important;
}


#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #0F0E46;
    
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

#content {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    height: calc(100vh - 50px); /* Ensures full screen height */
    text-align: center; /* Align text properly */
    transition: margin-left 0.3s ease-in-out;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
        height: 100%;
    }
    #sidebar.active {
        margin-left: 0;
        height: 100%;
    }
    #sidebarCollapse span {
        display: none;
        margin-top: -10px !important;
    }
}

/* When the sidebar is active (collapsed), push content accordingly */
#sidebar.active + #content {
    margin-left: 0; /* Adjust if necessary */
}

.collapse {
    display: none;
}

.arrow {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
    margin-left: 5px;
}

.rotated {
    transform: rotate(180deg);
}

/* ---------------------------------------------------
                     Login 
----------------------------------------------------- */
.login-container {
  max-width: 900px;
  width: 100%;
  padding: 40px 20px;
  margin: 40px auto 0 auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.login-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Login box header */
.login-box h3 {
    background-color: #0F0E46;
    color: white;
    padding: 10px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
}

/* Input fields */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input {
    width: 95%;
    padding: 10px;
    /* padding-right: 35px; */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-right: 20px;
}

/* Input icons */
.input-group .icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

/* Login button */
.sign-in-btn {
    /* width: 100%; */
    padding: 10px;
    background-color: #87BDF1;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    /* margin-right: -330px; */
}

.register-link {
    margin-top: 10px;
    text-align: center;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ✅ Mobile responsiveness */
@media (max-width: 480px) {
  .login-container {
    padding: 20px 10px;
    
  }

  .login-box {
    width: 100%;
margin-left: -20px;
  }

  .input-group input {
    width: 100%;
  }

  .input-group .icon {
    right: 15px;
  }

  .sign-in-btn {
    width: 100%;
  }

  .login-container {
    padding: 20px;
  }
}


.report-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: auto;
  }
  
  .report-title {
    text-align: center;
    color: #333;
  }
  
  .report-form {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .form-label {
    font-weight: bold;
    margin-right: 5px;
  }
  
  .form-select, .form-button {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .form-button {
    background: #87BDF1;
    color: white;
    cursor: pointer;
  }
  
  .form-button:hover {
    background: #0056b3;
  }
  
  .print-button {
    background: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 10px auto;
  }
  
  .print-button:hover {
    background: #218838;
  }
  
  .section-title {
    text-align: center;
    color: #444;
    margin-top: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
  }
  
  .inspection-details p {
    font-size: 14px;
    padding: 5px;
    border-bottom: 1px solid #ddd;
  }
  
  .report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
  }
  
  .report-table, .report-table th, .report-table td {
    border: 1px solid #ddd;
  }
  
  .report-table th, .report-table td {
    padding: 10px;
    text-align: left;
  }
  
  .report-table th {
    background: #007bff;
    color: white;
  }
  
  @media print {
    .print-button, .form-button {
        display: none;
    }
    .report-container {
        box-shadow: none;
    }
  }

  .admin-header {
    width: 100%;
    background-color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    font-size: 16px;
    font-weight: bold;
    color: #0a002b;
}

.admin-dropdown {
    position: relative;
}

.admin-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    gap: 5px;
    margin-right: 50px;
}

.admin-info i {
    font-size: 16px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    list-style: none;
    padding: 5px 0;
    margin: 5px 0 0;
    min-width: 120px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li {
    padding: 8px 12px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.dropdown-menu li:hover {
    background: #f5f5f5;
}

.show {
    display: block;
}

/* Ensure content is pushed below the header */
main {
    margin-top: 80px; /* Adjust this value to match the header height */
    text-align: center;
}


/* ----------------calender--------------- */

body.custom-body {
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
  font-family: 'Segoe UI', sans-serif;
  /* display: flex; */
  /* justify-content: center; */
}

/* Container */
.calendar-container {
  width: calc(100% - 250px); /* Take up full width minus sidebar */
  margin-left: 250px;
  background-color: #fff;
  margin-top: 40px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Form */
.month-form {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 25px;
}

.month-label {
  font-weight: bold;
  font-size: 16px;
}

.month-input {
  padding: 8px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.month-button {
  padding: 8px 14px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.month-button:hover {
  background-color: #0056b3;
}

/* Calendar */
.calendar-wrapper {
  padding: 15px;
}

.calendar-title {
  text-align: center;
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
}

.calendar-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
}


.calendar-header th {
  /* background-color: #17a2b8; */
  /* color: white; */
  padding: 12px 0;
  font-size: 16px;

}

.calendar-day, .calendar-empty {
  border: 1px solid #dddddd;
  height: 100px;
  vertical-align: top;
  padding: 10px;
  font-size: 16px;
  background-color: #fdfbfa9d;
  transition: background-color 0.2s;
  position: relative;
}

.calendar-day:hover {
  background-color: #dddfdd;
  cursor: pointer;
}

.calendar-empty {
  background-color: #f9f9f9;
}

/* Inspection days */
.has-inspection {
  background-color: #e0ffe0 !important;
  border: 2px solid #28a745;
}

/* Inspection list */
/* .inspection-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
} */

.inspection-list {
  list-style: disc !important;
  padding-left: 20px; /* <<< add this */
  margin: 5px 0 0;
  max-height: 100px;
  overflow-y: auto;
  scrollbar-width: thin;
  text-align: left;
}

/* Optional: make scrollbar look nicer */
.inspection-list::-webkit-scrollbar {
  width: 5px;
}
.inspection-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 5px;
}

.inspection-item {
  font-size: 13px;
  margin-bottom: 4px;
  padding: 4px 6px;
  border-radius: 4px;
}


@media (max-width: 768px) {
  .calendar-container {
    margin-top: 100px !important;
    width: 100%;
      padding: 15px;
      margin: 20px;
      margin-left: 0 !important;
      
  }

  .month-form {
      flex-direction: column;
      align-items: flex-start;
  }

  .calendar-title {
      font-size: 22px;
  }

  .calendar-table {
      font-size: 16px;
      
  }

  .calendar-day, .calendar-empty {
      height: 80px;
      padding: 5px;
      font-size: 12px;
  }

  .inspection-item {
      font-size: 14px;
      padding: 2px 4px;
  }
}

        .has-inspection {
            background-color: #ffe0e0;
        }

        .inspection-cards {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .inspection-card {
            flex: 1;
            min-width: 200px;
            background-color: #f5f5f5;
            border-left: 6px solid #888;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .inspection-card.total {
            border-color: #3498db;
        }
        .inspection-card.pending {
            border-color: #f39c12;
        }
        .inspection-card.completed {
            border-color: #2ecc71;
        }

        .inspection-card h3 {
            margin: 0 0 10px;
            font-size: 18px;
        }

        .inspection-card p {
            font-size: 24px;
            font-weight: bold;
            margin: 0;
        }

        
        .alert {
          padding: 15px 25px;
          border-radius: 8px;
          color: #fff;
          background-color: #28a745; /* Bootstrap green */
          font-weight: bold;
          position: fixed;
          top: 20px;
          right: 20px;
          z-index: 9999;
          box-shadow: 0 4px 12px rgba(0,0,0,0.2);
          transition: opacity 0.5s ease-out;
      }

      .form-button {
        background: #87BDF1;
        color: white;
        cursor: pointer;
    }

    .inspector-list {
      padding-left: 15px;
      margin-top: 5px;
      font-size: 12px;
      color: #000000;
  }


  .tab-dashboard {
    margin: 20px;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background-color: #f0f0f0;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  margin-right: 5px;
  border-radius: 5px 5px 0 0;
  color: #333;
  font-weight: bold;
  width: 250px;
}

.tab-button:hover {
  background-color: #ddd;
}

.tab-button.active {
  background-color: #007BFF;
  color: white;
  border-bottom: 3px solid #0056b3;
}

.tabs {
  margin-top: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}
  
@media (max-width: 600px) {
  .tab-button {
    font-size: 14px;
    padding: 8px 12px;
    width: 170px;
  }
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a {
  color: #007bff;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
  font-size: 14px;
}

.pagination a:hover {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  font-weight: bold;
}

.pagination .current-page {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    border-radius: 5px;
}


.message {
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.message.error {
  color: red;
}

.message.success {
  color: green;
}