body{
  margin:0px !important; 
  font-family: 'Inter', sans-serif;
  width:100%;
}

.bottom-btn-container{
  display:flex; 
  justify-content:flex-end; 
  width:100%; 
  margin-top:50px;
}

.regular-body-style{
  display:flex; 
  flex-direction:column; 
  align-items:flex-start; 
  justify-content:flex-start; 
  padding: 50px 5vw 50px 5vw;
  min-height:90vh !important;
  overflow-x: hidden;
}

h1{
  margin:0;
}

h5 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: rgb(79, 87, 94) !important;
  margin-bottom: 10px !important;
}

.regular-btn{
  padding: 10px 20px;
  background-color: #38A1EE;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight:600;
  font-size:15px;
  border-width:0px;
  min-width:200px;
  text-align: center;
}

.regular-btn:hover{
  background-color: #1f97ed;
  cursor: pointer;
}

.reject-btn{
  padding: 10px 20px;
  background-color: #C44760;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight:600;
  font-size:15px;
  border-width:0px;
  white-space:pre;
  margin-right: 10%;
  min-width: 150px;
}

.reject-btn:hover{
  background-color: #bc2543;
  cursor: pointer;
}

.title{
  margin-bottom:50px;
}

.top-btn-container{
  display:flex; 
  justify-content:flex-end;
  width:100%;
  margin-bottom:40px;
}

.top-filter-container{
  display:flex;
  justify-content: flex-end;
  width:100%;
  margin-bottom:40px;
  background-color: #eeeeee;
  padding:20px;
  border-radius:7px;
  color: #747474;
  box-sizing: border-box;
  gap:30px;
}



.display-filter-row{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
}

.search-wrapper{
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  align-items: center;
  gap:5px;
  flex-wrap: wrap;
}

.search-container {
  display: flex;
  align-items: center;
  border: 1px solid #dadada;
  border-radius: 7px;
  overflow: hidden;
}

.search-container input {
  border: none;
  outline: none;
  padding: 10px 15px; 
  flex-grow: 1; 
  min-width: 0;
  background-color: #fff; 
}

.search-container .search-button {
    background-color: #6162a0; 
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-container .search-button:hover {
    background-color: #51528b; 
}

.search-container .search-button img {
    height: 20px;
    width: 20px;
    filter: brightness(0) invert(1); 
}

th:last-child {
  width: 100px;
}


label{
  font-size:14px;
}

.dropdown-container{
  position:relative;
}

.dropdown-container::after{
  content: '▼';
  position: absolute;
  top: 50%;
  right: 15px;
  color: #747474;
  font-size: 10px;
  pointer-events: none;
  transform: translateY(-50%);
}

.dropdown-container select:focus + ::after{
  color: #38A1EE;
}

select{
  -webkit-appearance: none;
  -moz-appearance: none;  
  width: 100%;
  border: 1px solid #d5d5d5;
  padding:10px 12px;
  border-radius:4px;
  appearance: none;
  cursor: pointer;
  outline: none;
  font-size: 15px;
  padding-right: 40px;
}

.display-filter-row select{
  background-color: #eeeeee;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 10px;
}

.select2-selection__placeholder{
  color:#797979 !important;
}

.select2-container--default .select2-selection--single {
  height: auto !important;
  border:1px solid #d5d5d5 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
    padding: 5px 12px !important;
}

/* Mengatur ukuran huruf untuk teks yang ditampilkan dalam kotak Select2 setelah dipilih */
.select2-container .select2-selection__rendered {
    font-size: 14px !important; 
    color: #252525 !important;
}

/* Mengatur ukuran huruf untuk teks di dalam daftar dropdown (hasil pencarian) */
.select2-results__option {
    font-size: 14px !important;
}

input{
  font-weight:400;
  color:#252525;
  font-size: 15px;
}

.input-width-100-percent{
  width: 100% !important;
}

.input-max-width-50px{
  max-width: 50px;
}

.input-max-width-80px{
  max-width: 80px;
}

.input-text-align-center{
  text-align: center;
}

.input-date{
  background-color: #eeeeee;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border:none;
  padding:10px 20px 10px 10px;
  border-radius:7px;
}

.input-time{
  background-color: #eeeeee;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border:none;
  padding:10px 20px 10px 10px;
  border-radius:7px;
}

.unfilled-input{
  background-color: #eeeeee;
}

option{
  color:#252525;
}

select{
  color:#252525;
}

table {
  width: 100% !important;
  border:none;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-outline{
  border-radius: 7px;
  border: 1px solid #d9d9d9;
}

th, td {
  text-align: center;
  padding-top: 25px;
  padding-bottom: 25px;
  font-size: 14px;
  padding-left: 25px;
  padding-right: 15px;
  border-bottom: 1px solid #d9d9d9;
}

th{
  background-color: #eaf0ff;
}

tr:last-child td{
  border-bottom:none;
}

.row-display{
  display: flex;
  flex-direction: row;
  margin-bottom: 40px;
  gap:15px;
  width: 100%;
}

.row-label{
  width:30%;
}

.row-value{
  width: 65%;
}

.row-value input {
  padding: 10px;
  border: 1px solid #adadad;
  border-radius: 5px;
  box-sizing: border-box;
  width:30%;
}

.row-value .select2Container {
  width:30%;
}

.column-display {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.column-display label {
  font-weight: 600;
  margin-bottom: 8px;
}

.column-display input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.login-form{
  box-shadow: 0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;
  border-radius:5px;
}

input[readonly] {
  outline: none;
  box-shadow: none;
  color: #000; 
}

.content{
  display:flex; 
  flex-direction:column; 
  width:100%;
  margin-bottom:40px;
  font-size: 15px;
}



.setujui-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.tolak-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999 !important;
  padding: 20px;
}

.popup-container{
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.popup-container-max-width-small{
  max-width: 500px !important;
}

.popup-header {
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position:sticky;
  top:0;
  z-index:500;
  background-color:white;
}

.popup-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 5px;
}

.popup-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
  width:100%;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.three-dot-container{
  position:relative;
}

.three-dot-icon{
  width: 25px; 
  height: 25px; 
  cursor: pointer;
}

.three-dot-menu{
  display: none; 
  position: absolute; 
  top: 50%;
  left:60%;
  background-color: white; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 500; 
  white-space: nowrap;
}

.three-dot-menu a{
  text-decoration: none;
  padding: 10px 20px 10px 20px; 
  display:block; 
  color:black; 
  white-space: nowrap; 
  text-align: left;
}

.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.popup-content textarea {
  width: 100%;
  box-sizing: border-box; /* Memastikan padding tidak menambah lebar */
  max-width: 100%; /* Memastikan tidak melebihi parent */
  resize: vertical; /* Hanya mengizinkan resize vertikal */
  min-height: 100px; /* Tinggi minimum */
  margin-bottom:30px;
}

.popup-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
}

.popup-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top:10px;
}

.popup-btn {
  padding: 10px 20px;
  margin-left: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight:600;
}

.popup-btn-cancel {
  background-color: #f0f0f0;
}

.popup-btn-save {
  background-color: #38A1EE;
  color: white;
}

.error-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f87171; /* merah */
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 90%;
  animation: slideFadeIn 0.5s ease-out;
  display:none;
  justify-content:space-between;
}

.success-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #82d675; /* merah */
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 90%;
  animation: slideFadeIn 0.5s ease-out;
  display:none;
  justify-content:space-between;
}

.popup-close {
  background: none;
  border: none;
  font-size: 20px;
  color: white;
  margin-left: 20px;
  cursor: pointer;
}

.table-row-max-width-20-percent{
  max-width: 20%;
  white-space: normal;
  word-wrap: break-word;
}

@keyframes slideFadeIn {
  from {
      opacity: 0;
      transform: translate(-50%, -20px);
  }
  to {
      opacity: 1;
      transform: translate(-50%, 0);
  }
}
    
.popup-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.regular-btn-popup{
  padding: 10px 30px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #4a90e2;
  color: white;
  border: none;
  font-size: 14px !important;
}

.regular-btn-popup:hover {
  background-color: #3a7bc8;
}

.reject-btn-popup {
  padding: 10px 30px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #f0f0f0;
  color: #666;
  border: 1px solid #ddd;
  font-size: 14px !important;
}

.reject-btn-popup:hover {
  background-color: #e0e0e0;
}

.waiting-for-approval-style{
    background-color: #ed8e3c;
}

.waiting-for-pickup-style{
    background-color: #3458da;
}

.on-borrowing-style{
    background-color: #1f0e75;
}

.complete-style{
    background-color: #3bb31d;
}

.reject-style{
    background-color: #fd392e;
}

.waiting-for-approval-style,
.waiting-for-pickup-style,
.on-borrowing-style,
.complete-style,
.reject-style{
    padding: 10px 20px;
    color: white;
    display:flex;
    justify-content:center;
    text-align:center;
    border-radius: 10px;
    width: 70px;
    font-size: 13px;
    font-weight: 600;
}

.borrowing-status-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-input-container{
  cursor: pointer;
  margin-top:20px;
  margin-left:10px;
}

.image-100px{
  width: 100px;
}

.empty-message-container{
  width: 100%; 
  min-height: 60vh; 
  display: flex;
  justify-content: center; 
  align-items: center;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background-color: #747474;
  padding: 60px 50px;
  min-height: 30vh;
  flex-wrap: wrap;
  gap: 30px;
  color: white;
}

.footer-left {
  display: flex;
  flex-direction: row;
  width: 40%;
  align-items: flex-start;
}

.footer-logo {
  width: clamp(50px, 25%, 125px);
  margin-right: 20px;
}

.footer-info {
  font-size: 25px;
}

.footer-left-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 15px;
  margin-top: 20px;
}

.footer-left-item img {
  width: 30px;
  height: 30px;
  margin-right: 20px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 20%;
  font-size: 15px;
}

.footer-right-item {
  display: flex;
  align-items: center;
  color: white;
  margin-top: 20px;
}

.footer-right-item img {
  width: 30px;
  height: 30px;
  margin-right: 20px;
}

.footer-link {
  color: white;
  text-decoration: none;
}

.card-container{
  display:none;
}

.textarea-activity-description-container{
    width:30%;
}

textarea{
  width: 100%;
  height: 100px; 
  font-size: 15px; 
  padding: 10px; 
  text-align: left; 
  vertical-align: top; 
  resize: none; 
  font-family: 'Inter', sans-serif;
  overflow: auto;
  box-sizing: border-box;
  border:1px solid #adadad;
  border-radius: 5px;
}

/* .w-5{
  width: 15px;
} */

.nav-pagination{
  justify-content: flex-end;
  box-shadow: none;
  padding:0px;
  z-index: 0;
}
 
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination li {
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: white;
}

.pagination li a:hover {
    background-color: #f0f0f0;
    border-color: #4299e1;
    color: #4299e1;
}

/* Active page */
.pagination li.active span {
    background-color: #4299e1;
    border-color: #4299e1;
    color: white;
    font-weight: 600;
}

/* Disabled states */
.pagination li.disabled span {
    color: #aaa;
    background-color: #f8f8f8;
    border-color: #eee;
    cursor: not-allowed;
}

/* Previous/Next arrows */
.pagination li:first-child a,
.pagination li:first-child span,
.pagination li:last-child a,
.pagination li:last-child span {
    font-size: 16px;
    font-weight: bold;
}

/* Dots separator */
.pagination li.disabled span {
    border: none;
    background: transparent;
    cursor: default;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* Responsive for mobile */
@media screen and (max-width: 768px) {

  h1{
    font-size:23px;
  }

  p{
    font-size:15px;
  }

  .content{
    font-size: 14px;
  }

  .regular-btn {
    width: auto !important;
    max-width: 250px;
    text-align: center;
    font-size:14px;
  }

  .row-value .select2Container {
    width:100%;
  }
  
  .row-value input {
    width:100%;
  }

  label{
    font-size: 13px;
  }

  .top-filter-container{
    flex-direction: column;
    gap:15px;
  }

  .top-filter-container .display-filter-row {
    display: grid; /* Menggunakan Grid */
    grid-template-columns: 30% 70%; /* Langsung bagi 2 kolom */
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Pastikan semua elemen di kolom kedua (anak kedua) memenuhi ruang 70% */
  .top-filter-container .display-filter-row > *:nth-child(2) {
      width: 100%;
  }

  .top-filter-container .display-filter-row select, 
  .top-filter-container .display-filter-row input {
      width: 100%;
      box-sizing: border-box;
  }

  /* Membuat container input (kiri dan kanan) mengambil sisa ruang yang ada */
  .display-filter-row .search-wrapper .search-container {
      flex: 1; /* Membagi ruang secara adil (50-50) */
      display: flex;
  }

  /* Memastikan input di dalam container tersebut selebar 100% */
  .display-filter-row .search-wrapper .search-container input {
      width: 100% !important;
      max-width: none !important; /* Menghapus batasan 50px yang ada sebelumnya */
  }

  .top-filter-container:has(> *:only-child) {
    justify-content: flex-end;
  }

  .display-filter-row{
    justify-content:space-between;
  }

  .popup-container {
    width: 95% !important;
    max-height: 80vh !important;
  }

  .popup-body {
    padding: 15px !important;
  }

  .popup-header, .popup-body, .popup-footer {
    padding: 15px;
  }

  .three-dot-menu{
    top:100%;
    left:0;
  }

  table{
    display:none;
  }

  .textarea-activity-description-container{
      width: 65%;
  }

  .textarea-activity-description{
      font-size: 14px;
  }

  .table-outline{
    display:none;
  }
  
  .card-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    font-size: 13px;
  }
    
  .card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 10px;    
    border-bottom: 1px solid #666;
  }

  .card-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    padding: 3px 0px;
    box-sizing: border-box;
    gap: 10px;
  }
  
  .card-label {
    width:40%;
  }
  
  .card-value {
    text-align: right;
    font-weight:600;
  }
  
  .card-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 15px;
  }

  .card-header .card-value{
    font-weight:bold;
    font-size:15px;
  }
  
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-left {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .footer-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .footer-info {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .footer-left-item {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }

  .footer-right {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    margin-top: 20px;
  }

  .footer-right-item {
    width: 100%;
  }
}