/* ROOT VARIABLES */
:root{
  --primary:#5f6cff;
  --primary-dark:#4a55e2;
  --secondary:#7b4dff;
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#2e3254;
  --muted:#6b7280;
  --border:#e5e9f5;
  --radius:14px;
}

/* DASHBOARD WRAPPER */
.cld-dashboard{
  max-width:1200px;
  margin:40px auto;
  font-family:'Poppins', system-ui, sans-serif;
  padding:0 18px;
  background:var(--bg);
  color:var(--text);
}

/* TABS */
.cld-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:6px;
  margin-bottom:20px;
  background:rgba(255,255,255,.6);
  backdrop-filter:blur(10px);
  border-radius:var(--radius);
  box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.cld-tabs li{
  padding:12px 22px;
  cursor:pointer;
  border-radius:12px;
  font-weight:600;
  color:var(--muted);
  transition:all .3s ease;
}

.cld-tabs li:hover{
  background:#eef2ff;
  color:var(--primary);
}

.cld-tabs li.active{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff;
  box-shadow:0 8px 18px rgba(95,108,255,.4);
}

/* CONTENT CARD */
.cld-content{
  display:none;
  background:var(--card);
  padding:22px;
  border-radius:18px;
  box-shadow:
    0 18px 45px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.6);
  margin-bottom:26px;
}

.cld-content.active{
  display:block;
}

/* CONTROLS BAR */
.cld-controls{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom:18px;
}

/* SEARCH INPUT */
.cld-search{
  flex:1;
  min-width:220px;
  padding:13px 16px;
  border-radius:12px;
  border:1px solid var(--border);
  font-size:14px;
  background:#f9faff;
  transition:all .25s ease;
}

.cld-search:focus{
  outline:none;
  background:#fff;
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(95,108,255,.15);
}

/* EXPORT BUTTON */
.cld-export-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 30px;
  background:linear-gradient(135deg,#5f6cff 0%, #7b4dff 50%, #9b6cff 100%);
  color:#ffffff;
  border-radius:16px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  letter-spacing:.4px;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:
    0 18px 40px rgba(95,108,255,.45),
    inset 0 1px 0 rgba(255,255,255,.35);
  transition:all .35s cubic-bezier(.4,0,.2,1);
  overflow:hidden;
}

/* Glow aura */
.cld-export-btn::before{
  content:"";
  position:absolute;
  inset:-3px;
  background:linear-gradient(135deg,#8b95ff,#b38cff);
  filter:blur(14px);
  opacity:.1;
  z-index:0;
}

/* Glass highlight */
.cld-export-btn::after{
  content:"";
  position:absolute;
  inset:1px;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.35),
    rgba(255,255,255,0)
  );
  border-radius:15px;
  z-index:1;
}

/* Text always on top */
.cld-export-btn span{
  position:relative;
  z-index:2;
}

/* Hover magic */
.cld-export-btn:hover{
  transform:translateY(-4px) scale(1.02);
  color:#ffffff;
  box-shadow:
    0 28px 60px rgba(95,108,255,.6),
    0 0 0 6px rgba(95,108,255,.22);
}

/* Click feel */
.cld-export-btn:active{
  transform:translateY(-1px) scale(.98);
  box-shadow:
    0 14px 30px rgba(95,108,255,.45);
}

/* TABLE */
.cld-table-wrap{
  overflow-x:auto;
  border-radius:14px;
}

table.cld-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:650px;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
}

table.cld-table th{
  background:#f2f4ff;
  color:#3b3f5c;
  font-weight:700;
}

table.cld-table th,
table.cld-table td{
  padding:14px;
  border-bottom:1px solid var(--border);
  font-size:14px;
}

table.cld-table tr:last-child td{
  border-bottom:none;
}

table.cld-table tr:hover{
  background:#eef2ff;
}

/* PAGINATION */
.cld-pagination{
  margin-top:18px;
}

.cld-pagination a{
  display:inline-block;
  padding:10px 14px;
  margin-right:6px;
  border-radius:10px;
  background:#f0f3ff;
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  transition:all .25s ease;
}

.cld-pagination a:hover{
  background:#dfe4ff;
  color:var(--primary);
}

.cld-pagination a.active{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff;
  box-shadow:0 6px 14px rgba(95,108,255,.4);
}

/* WARNING BOX */
.cld-warning{
  padding:16px;
  background:#fff8e6;
  border-left:6px solid #ffb703;
  border-radius:12px;
  color:#6b4e00;
  font-weight:600;
  box-shadow:0 6px 14px rgba(0,0,0,.05);
}

/* RESPONSIVE */
@media(max-width:768px){
  .cld-controls{
    flex-direction:column;
    align-items:stretch;
  }

  .cld-export-btn{
    width:100%;
    justify-content:center;
  }
}