/* ===============================
   ADVANCED GIS POPUP UI
=================================*/

.gis-popup {
   font-family: 'Segoe UI', Roboto, sans-serif;
   width: 300px;
   max-width: 92vw;
   box-sizing: border-box;
   border-radius: 10px;
   overflow: hidden;
   /* background: #ffffff; */
   box-shadow:
      0 10px 25px rgba(0, 0, 0, 0.15),
      0 4px 10px rgba(0, 0, 0, 0.08);
   animation: popupFade 0.25s ease-out;
   border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Smooth appear animation */
@keyframes popupFade {
   from {
      opacity: 0;
      transform: translateY(8px) scale(0.98);
   }

   to {
      opacity: 1;
      transform: translateY(0) scale(1);
   }
}

/* ================= HEADER ================= */

.gis-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   /* background: linear-gradient(135deg,#1f3c88,#2a5298); */
   /* background: linear-gradient(135deg,#190e6a,#1b1770); */
   background: linear-gradient(135deg, #07163e, #1d3a6c);
   color: white;
   padding: 12px 14px;
   font-size: 15px;
   font-weight: 600;
   letter-spacing: .3px;
}

/* Header left section */
.gis-header span:first-child {
   display: flex;
   align-items: center;
   gap: 8px;
}

/* Close & Back Buttons */
.gis-close,
.gis-back {
   cursor: pointer;
   /* margin-left: 18px; */
   font-size: 16px;
   transition: all 0.2s ease;
   opacity: 0.85;
}

/* .gis-close:hover,
.gis-back:hover{
   opacity:1;
   transform: scale(1.1);
} */

/* ================= BODY ================= */

.gis-body {
   max-height: 280px;
   overflow-y: auto;
   padding: 8px;
   /* background-color: rgba(27, 27, 27, 0.7); */
   background: #0a0a0ade !important;
}

/* Custom scrollbar */
.gis-body::-webkit-scrollbar {
   width: 6px;
}

.gis-body::-webkit-scrollbar-thumb {
   background: #cfd8dc;
   border-radius: 10px;
}

/* ================= TABLE ================= */

.gis-table {
   width: 100%;
   margin: 1px;
}

.gis-table tr {
   background-color: rgba(136, 232, 245, 0);
   transition: all 0.2s ease;
   /* box-shadow: 
      0 0 0 0.1px rgba(241, 233, 113, 0.9),
      0 2px 4px rgba(0,0,0,0.04); */
   box-shadow: 0 0 0 1px rgb(241 233 113 / 15%), 0 6px 14px rgb(0 0 0 / 10%);
   color: white;
}

.gis-table td {
   background-color: rgba(136, 232, 245, 0);
   color: white;
   word-break: break-word;
   font-size: 13px;
}


.gis-key {
   font-size: 11px;
   font-weight: 600;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   width: 38%;
   vertical-align: top;
   padding-right: 6px;
}

.gis-table td:not(.gis-key) {
   font-size: 12px;
   word-break: break-word;
   vertical-align: top;
}
/* ================= LAYER SELECT LIST ================= */

.gis-layer-item {
   padding: 3px 6px;
   border-radius: 6px;
   margin-bottom: 4px;
   cursor: pointer;
   font-size: 13px;
   background: rgb(30, 29, 29);
   border: 1px solid #e3e8ef;
   transition: all 0.2s ease;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

/* .gis-layer-item:hover{
   background:#eef4ff;
   border-color:#2a5298;
   transform: translateY(-2px);
   box-shadow:0 5px 12px rgba(0,0,0,0.1);
} */

/* ================= BUTTON SECTION ================= */

.gis-body .btn {
   border-radius: 10px;
   font-size: 12px;
   padding: 6px 14px;
   font-weight: 500;
   transition: all .2s ease;
}

.gis-body .btn-primary {
   background: linear-gradient(135deg, #1a71b7, #082238);
   border: none;
}

/* .gis-body .btn-primary:hover{
   transform: translateY(-1px);
   box-shadow:0 4px 10px rgba(33,150,243,.4);
} */

.gis-body .btn-success {
   background: linear-gradient(135deg, #43a047, #2e7d32);
   border: none;
}

/* .gis-body .btn-success:hover{
   transform: translateY(-1px);
   box-shadow:0 4px 10px rgba(67,160,71,.4);
} */

/* ================= MOBILE ================= */

@media (max-width:768px) {

   .gis-popup {
      width: 280px;
   }

   .gis-body {
      max-height: 45vh;
   }

   .gis-table td {
      font-size: 12px;
   }
}

@media (max-width:480px) {

   .gis-popup {
      width: 95vw;
   }

   .gis-body {
      max-height: 50vh;
   }
}

#popupDocList {
   /* border: 1px solid #f1f1f1; */
   padding-top: 6px;
   padding-left: 11px;
   padding-right: 11px;
   background-color: rgba(136, 232, 245, 0);
}

#popupDocListAll {
   border: 1px solid #ffffff;
   padding-top: 6px;
   padding-left: 11px;
   padding-right: 11px;
   background-color: rgba(136, 232, 245, 0);
}

/* 
.gis-body {
   max-height: 320px;
   display: flex;
   flex-direction: column;
   overflow-y: auto;
} */
.gis-body {
   max-height: 250px;
   overflow-y: auto;
   padding: 8px;
   /* background-color: rgba(27, 27, 27, 0.7); */
   background: #0a0a0ade !important;
}

.gis-content {
   flex: 1;
   /* overflow-y: auto; */
}

/* ONLY BUTTON FLOATS */
.gis-footer {
   background-color: rgba(136, 232, 245, 0);
   position: sticky;
   bottom: 0;
   background: #121113;
   padding: 5px;
   /* border-top: 1px solid #ddd; */
   display: flex;
   justify-content: center;
   z-index: 10;
}

/* DOC LIST NORMAL (NOT FLOATING) */
.doc-list {
   margin-top: 10px;
   border: 1px solid #3b4455;
   /* border-radius: 8px; */
   padding: 0px;
   background: #fff;
}

/* ############## */
.gis-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 8px 12px;
   /* border-bottom: 1px solid #ddd; */
}

/* LEFT */
.gis-header-left {
   width: 40px;
   text-align: left;
}

/* CENTER */
.gis-header-center {
   display: flex;
   align-items: center;
   justify-content: center;
   flex: 1;
   gap: 8px;
   font-weight: 600;
}

/* RIGHT */
.gis-header-right {
   width: 40px;
   text-align: right;
}

/* ICON */
.gis-icon-circle {
   width: 28px;
   height: 28px;
   border-radius: 50%;
   background: #a10386;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #ffffff;
}

/* TITLE */
.gis-title {
   white-space: nowrap;
}

#photoModal {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.7);
   justify-content: center;
   align-items: center;
   z-index: 9999;
}

#photoModalClose {
   position: absolute;
   top: 20px;
   right: 30px;
   color: #fff;
   font-size: 30px;
   cursor: pointer;
}

#photoModalImg {
   max-width: 40%;
   max-height: 60%;
   border-radius: 8px;
}

/* 
#photoModalClose {
   width: 26px;
   height: 26px;
   background: #ef4444;
   color: #fff;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   border: 2px solid rgba(255, 255, 255, 0.25);
   transition: all 0.2s ease;
   z-index: 10000;
   pointer-events: all;
} */

/* #photoModalClose:hover {
   background: #dc2626;
   transform: scale(1.1);
   box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
} */

/* ================= REQUEST MODAL ================= */
.copa-modal-header {
   background: linear-gradient(180deg, rgba(8, 17, 30, 0.94) 0%, rgba(8, 17, 30, 0.86) 100%);
   border-bottom: 2px solid rgba(15, 196, 180, 0.5);
}

.copa-modal-title {
   color: #0fc4b4;
}

.copa-modal-subtitle {
   color: #08111e;
}

.copa-modal-btn {
   background-color: #0fc4b4;
   border-color: #0fc4b4;
   color: #000;
}

.copa-modal-btn:hover {
   background-color: #0ca396;
   border-color: #0ca396;
   color: #fff;
}