/* assets/admin/css/admin.css */

:root{

  --admin-bg: #fff;

  --admin-card: #111a2e;

  --admin-border: rgba(255,255,255,.08);

  --card-bg:var(--color-bg-primary);

}

.form-control:focus{box-shadow: none;}

.border-primary{border-color: var(--color-text-primary) !important;}

body.admin-body{

  font-family: var(--font-body);

  background: var(--admin-bg);

}



.admin-shell{

  min-height: 100vh;

  display: flex;

}



.admin-sidebar{

  width: 280px;

  background: var(--color-bg-primary);

  border-right: 1px solid var(--admin-border);

  position: sticky;

  top: 0;

  height: 100vh;

  /* padding: 18px; */

}

.admin-sidebar .admin-site{

    padding: 18px;

}

.admin-brand{

  display:flex;

  align-items:center;

  gap:10px;

  padding: 10px 8px 18px;

  border-bottom: 1px solid var(--admin-border);

  margin-bottom: 14px;

}



.admin-brand img{ height: 34px; }



.admin-nav a{

  display:flex;

  align-items:center;

  gap:10px;

  padding: 10px 12px;

  border-radius: 10px;

  color: var(--color-text-primary);

  text-decoration:none;

  margin-bottom: 6px;

}



.admin-nav a:hover{ background: rgba(255,255,255,.06); }

.admin-nav a.active{ background: var(--color-text-primary); color:#fff; }



.admin-content{

  flex:1;

  /* padding: 22px; */

}



.admin-topbar{

  display:flex;

  align-items:center;

  justify-content:space-between;

  background: var(--color-bg-footer);

  border: 1px solid var(--admin-border);

  /* border-radius: 16px; */

  padding: 14px 16px;

  /* margin-bottom: 18px; */

}



.admin-card{

  /* background: var(--card-bg); */

  border: 1px solid var(--admin-border);

  border-radius: 18px;

   padding: 16px;

}



.admin-wrap{

    padding: 16px;

}

.admin-card .card-title{color: var(--color-text-primary);}

.admin-kpi{

  display:flex;

  align-items:center;

  justify-content:space-between;

}



.admin-muted{ color: var(--color-text-muted); }



@media (max-width: 992px){

  .admin-sidebar{ position: fixed; left: -290px; transition: left .2s ease; z-index: 1030; }

  .admin-sidebar.open{ left: 0; }

  .admin-backdrop{

    display:none; position: fixed; inset:0; background: rgba(0,0,0,.5); z-index: 1020;

  }

  .admin-backdrop.show{ display:block; }

}







/* WordPress-like admin look */

.admin-body{

  background:#f6f7f7;

  color:#1d2327;

}

.admin-page-title{

  font-size: 24px;

  font-weight: 600;

  margin: 0;

  color: var(--color-text-primary);

}

.admin-page-desc{

  margin: 6px 0 0;

  color:#50575e;

  font-size: 13px;

}



.metabox{

  background:#fff;

  border:1px solid #dcdcde;

  border-radius:8px;

  box-shadow: 0 1px 1px rgba(0,0,0,.04);

  margin-bottom:16px;

}

.metabox__head{

  padding:12px 14px;

  border-bottom:1px solid #dcdcde;

  font-weight:600;

}

.metabox__body{

  padding:14px;

}



.sidebar-sticky{

  position: sticky;

  top: 16px;

}



.form-label{

  font-weight: 600;

  font-size: 13px;

  color:#1d2327;

}

.form-text{

  font-size: 12px;

  color:#646970;

}





.wp-check{

  display:flex;

  align-items:center;

  gap:8px;

  padding:4px 0;

  font-size:13px;

}

.wp-check input{ transform: translateY(-1px); }



.preview-thumb{

  width:100%;

  border:1px dashed #c3c4c7;

  border-radius:8px;

  padding:12px;

  text-align:center;

  color:#646970;

  font-size:12px;

}

/* propeety list  */
#PList thead th,#enqTable thead th,#enqTable thead th a{
  color:#fff ;
  background-color: var(--color-text-primary);
}



.admin-wrap.profile .input-group{    border: 1px solid var(--color-text-primary) !important;border-radius: 8px;    overflow: hidden;}

.admin-wrap.profile .input-group-text{border: 0 !important;}

.admin-wrap.profile .btn{transform: translateY(0px);}



/* login form  */
.log_form{
  height: 100vh;
  align-content: center;
}

/* Plot Status Styles */
.plot-details__status--available {
  color: #28a745 !important;
  font-weight: 600;
}

.plot-details__status--booked {
  color: #ffc107 !important;
  font-weight: 600;
}

.plot-details__status--sold {
  color: #dc3545 !important;
  font-weight: 600;
}

/* Bootstrap status badges for admin forms */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-badge--available,
.status-badge--coming-soon {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge--booked {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge--sold {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}



/* Gallery image deletion X marks */
.gallery-image-item {
  position: relative;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  transition: all 0.2s ease;
}

.gallery-image-item:hover {
  border-color: #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-delete-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  background: #dc3545;
  border: 1px solid #fff;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-delete-btn:hover {
  background: #c82333;
  transform: scale(1.1);
}

.gallery-delete-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}
/* Media selection preview */
.media-selection-preview {
  margin-top: 8px;
  padding: 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.media-preview-item {
  position: relative;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
}

.media-preview-thumb {
  width: 60px;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-thumb .media-item__icon {
  font-size: 20px;
  color: #6c757d;
}

.media-preview-name {
  font-size: 11px;
  max-width: 60px;
  text-align: center;
  margin-top: 2px;
}

.media-remove-btn {
  font-size: 10px;
  padding: 1px 4px;
  margin-top: 2px;
  width: 100%;
}