/* ===============================
   AREA PANEL (MATCHED THEME)
================================ */

#area-panel {
   position: absolute;
   top: 110px;
   left: 15px;
   width: 300px;
   z-index: 1200;
   font-family: "Segoe UI", sans-serif;
}

/* CARD */
.area-card {
   background: rgba(41, 51, 60, 0.9);
   border-radius: 8px;
   border: 1px solid rgba(255,255,255,0.08);
   backdrop-filter: blur(4px);
   box-shadow: 0 6px 20px rgba(0,0,0,0.5);
   overflow: hidden;
}

/* ===============================
   HEADER (MATCH TOP BAR GRADIENT)
================================ */
.area-title-bar {
   background: linear-gradient(90deg, #301c42, #50376c, #622e54);
   color: #fff;
   padding: 8px 10px;
   font-size: 13px;
   font-weight: 600;
   display: flex;
   justify-content: space-between;
   align-items: center;
   border-bottom: 1px solid rgba(255,255,255,0.08);
}

.area-title-bar i {
   cursor: pointer;
   font-size: 14px;
   transition: 0.25s;
}

.area-title-bar i:hover {
   color: #ff6b6b;
   transform: scale(1.1);
}

/* ===============================
   AREA LIST
================================ */
.area-list {
   max-height: 320px;
   overflow-y: auto;
   padding: 6px;
}

/* scrollbar */
.area-list::-webkit-scrollbar {
   width: 5px;
}
.area-list::-webkit-scrollbar-thumb {
   background: rgba(255,255,255,0.2);
   border-radius: 6px;
}

/* ===============================
   AREA ROW (LIKE SIDEBAR BUTTON)
================================ */
.area-row {
   background: rgba(255,255,255,0.04);
   border-radius: 6px;
   padding: 8px;
   margin-bottom: 6px;
   cursor: pointer;
   transition: all 0.25s ease;
   border: 1px solid transparent;
}

/* hover = SAME FEEL AS .menu a:hover */
.area-row:hover {
   background: linear-gradient(135deg,#3e0582,#0982ce);
   transform: translateY(-2px) scale(1.02);
   box-shadow: 0 6px 14px rgba(18,162,243,.35);
   border-color: #6eeffd;
}

/* ===============================
   ROW HEADER
================================ */
.area-row-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 4px;
}

.area-title {
   font-size: 12px;
   color: #fff;
   font-weight: 500;
}

.area-count {
   font-size: 11px;
   color: #cbd5e1;
}

/* ===============================
   PROGRESS BAR (MATCH ACCENT)
================================ */
.area-progress {
   width: 100%;
   height: 5px;
   background: rgba(255,255,255,0.08);
   border-radius: 10px;
   overflow: hidden;
}

.area-progress-fill {
   height: 100%;
   background: linear-gradient(135deg,#00e5ff,#0982ce);
   transition: width 0.4s ease;
}

/* ===============================
   TABLE WRAPPER
================================ */
#area-table-wrapper {
   padding: 8px;
}

/* HEADER */
.area-table-header {
   display: flex;
   flex-direction: column;
   gap: 6px;
   margin-bottom: 8px;
}

/* subtitle */
.area-subtitle {
   font-size: 11px;
   color: #cbd5e1;
}

/* back button (MATCH BUTTON STYLE) */
.area-table-header .btn {
   background: #29333c;
   border: 1px solid rgba(255,255,255,0.08);
   color: #fff;
   font-size: 11px;
   padding: 3px 8px;
   border-radius: 4px;
   transition: all 0.25s ease;
}

.area-table-header .btn:hover {
   background: linear-gradient(135deg,#3e0582,#0982ce);
   transform: scale(1.05);
   border-color: #6eeffd;
}

/* title */
#area-table-title {
   font-size: 12px;
   font-weight: 600;
   color: #fff;
}

/* ===============================
   TABLE (MATCH DARK THEME)
================================ */
#area-table-content {
   max-height: 320px;
   overflow: auto;
}

#area-table-content table {
   width: 100%;
   border-collapse: collapse;
   font-size: 12px;
   color: #fff;
}

#area-table-content th {
   background: #29333c;
   padding: 6px;
   font-weight: 500;
   border-bottom: 1px solid rgba(255,255,255,0.08);
}

#area-table-content td {
   padding: 6px;
   border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* hover row */
#area-table-content tr:hover {
   background: rgba(110,239,253,0.12);
}

/* ===============================
   PANEL ANIMATION (MATCH UI)
================================ */
#area-panel.expand {
   animation: slidePanel 0.25s ease;
}

@keyframes slidePanel {
   from {
      opacity: 0;
      transform: translateX(20px);
   }
   to {
      opacity: 1;
      transform: translateX(0);
   }
}