:root {
    --color: #333;
    --bg-color: #0690E9;
    --primary: #49C984;
    --white: #ffffff;
    --gray: #76818F;
    --darkish: #49C984;
    --purple: #5757CD;
    --black: #000;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    overflow: hidden;
    color: var(--white);
    overflow-y: auto;
}

nav {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
}

nav .back-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #F6F8FA;
    padding: 8px;
    border-radius: 999px;
}

nav .first {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(12, 116, 231, 0.15);
    border-radius: 999px;
    background-color: transparent;
    width: fit-content;
}

.avatar-wrapper {
    position: relative;
    width: 30px;
    height: 30px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: -3px;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.username {
    font-weight: 800;
    font-size: 12px;
    margin: 0;
    color: #565C63;
}

.status-text {
    font-size: 10px;
    color: #86919F;
    padding-top: 1px;
    margin: 0;
}

.dropdown-icon i {
    font-size: 25px;
    color: #86919F;
}

.progress-section {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    border: 1px solid rgba(12, 116, 231, 0.15);
    border-radius: 999px;
    color: var(--gray);
    padding: 5px 6px;
}

.progress-bar {
    height: 12px;
    border-radius: 10px;
    width: 70px;
    overflow: hidden;
    position: relative;
    background: #EEEEEE;
}

.progress-fill {
    background: #565C63;
    height: 100%;
    width: 0;
    border-radius: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding: 0 5px;
    color: var(--white);
}

.get-credits {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 40px;
    background: linear-gradient(to right, #7034FF, #0690E9);
}

.bolt-icon {
    width: 16px;
    height: 16px;
}

.rest {
  background-color: #EFF3F7;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 95%;
  justify-self: center;
  margin: 10px 0px;
}

/* First Row */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
}

.breadcrumb p {
  margin: 0;
  font-size: 14px;
}

.icon {
  width: 16px;
  height: 16px;
}

/* Second Row */
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 24px;
  color: var(--gray);
  font-weight: 400;
}

.h1 {
  margin: 0;
  font-size: 24px;
  color: var(--gray);
  font-weight: 400;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls p {
  margin: 0;
  font-size: 12px;
  color: #86919F;
  width: 70%;
}

.p {
  margin: 0;
  font-size: 12px;
  color: #86919F;
  width: 70%;
}


.action-btn {
  padding: 8px 10px;
  width: 70%;
  border-radius: 10px;
  background:linear-gradient(to right, #4757CF, #C851BE, #FDC872);
  color: var(--white);
  font-family: "Inter", sans-serif;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.action-btn .icon {
  width: 25px;
  height: 25px;
}

.ad-inner {
  background-color: var(--white);
  border-radius: 15px;
  padding: 15px;
  width: 55%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--purple);
   position: relative;
   z-index: 1;
}

.ad-inner::before {
  content: '';
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
  background: linear-gradient(to right, #4757CF, #C851BE, #FDC872);
  border-radius: 15px;
  padding: 1px; /* thickness of the border */
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

.ad-label {
  background: linear-gradient(to right, #7034FF, #0690E9);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0;
  color: var(--white);
}

.row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.col{
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.third-row {
  padding: 30px 20px;
  background: #fff;
  border-radius: 20px;
}

.third-row-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Left side: search bar + dropdown */
.left-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Right side: icon divs + line + button */
.right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Vertical line */
.vertical-divider {
  width: 1px;
  height: 32px;
  background: #ccc;
  margin: 0 8px;
}

.search-bar,
.arrow-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #CBD6E3;
  border-radius: 10px;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
}

.search-bar {
  width: 450px;
}

.active2 {
  
   position: relative;
   z-index: 1;
}

.active2::before {
  content: '';
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
  background: linear-gradient(to right, #4757CF, #C851BE, #FDC872);
  border-radius: 9px;
  padding: 1px; /* thickness of the border */
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

/* six row */
.table-wrapper {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* Table */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.custom-table thead {
  background-color: #EFF3F7;
  border-radius: 10px;
}

.custom-table th,
.custom-table td {
  padding: 12px;
  text-align: left;
}

.th-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.custom-table th {
  font-weight: 500;
  font-size: 12px;
  /* display: flex; */
  align-items: center;
  color: #43484E;
}

.custom-table td {
  color: #333;
  border-top: 1px solid #eee;
  font-size: 12px;
}

.custom-table .link {
  color: var(--purple);
  font-weight: 700;
  cursor: pointer;
}

.custom-table .actions img {
  width: 25px;
  height: 25px;
  margin-right: 6px;
  border-radius: 8px;
  padding: 5px;
  background-color: #e8f1fb;
}

.custom-table .actions img:last-child {
  background-color: #fde8e8;
}

/* Custom Checkbox */
.checkbox-container {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.checkbox-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 14px;
  width: 14px;
  background-color: #f0f0f0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.checkbox-container input:checked+.checkmark {
  background-color: var(--purple);
  border-color: var(--purple);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked+.checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 4px;
  top: 0px;
  width: 3px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* table footer */
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray) !important;
}

.pagination-left .dropdown,
.apply-btn {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: #F6F8FA;
  cursor: pointer;
  gap: 5px;
}

.apply-btn {
  background:linear-gradient(to right, #7034FF, #0690E9) ;
  color: white;
  border: none;
  padding: 8px 10px;

}

.apply-btn img {
  width: 20px;
  height: 20px;
}

.pagination-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.page-btn {
  background: #F6F8FA;
  padding: 10px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: var(--gray) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn i {
  font-size: 20px;
}

.page-number {
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  background: #F6F8FA;
  color: var(--gray);
  cursor: pointer;
}

.page-number.active {
  background: #6f42c1;
  color: var(--white);
}

.pur {
  color: var(--purple);
}

.txt{
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
}

.draft{
  background-color: #5757CD10;
  color:#5757CD;
}

.com{
  background-color: #42AF7510;
  color: #42AF75;
}

.center{
  justify-self: center ;
  align-self: center;
  text-align: center;
}

/* DropDown */
.dropdown-container {
  position: relative;
  width: fit-content;
}

.dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid #CBD6E3;
  border-radius: 10px;
  font-size: 12px;
  color: #8C99A7;
  background-color: white;
  cursor: pointer;
}

.dropdown i {
  font-size: 20px;
}

.dropdown-options {
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  border: 1px solid #CBD6E3;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  width: 100%;
  display: none;
  z-index: 10;
}

.dropdown-option {
  padding: 10px;
  font-size: 12px;
  color: #8C99A7;
  cursor: pointer;
}

.dropdown-option:hover {
  background-color: #f3f4f6;
}

/* sidebar */
.sidebar {
  background-color: #101F2F;
  position: absolute;
  top: 70px;
  padding: 30px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  display: none;
  z-index: 20;
}

.side-logo{
  margin-bottom: 20px;
}

.side-items {
  border-radius: 6px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.side-items:hover{
  background: #ffffff10;
}

.side-items img{
  height: 23px;
  width: 23px;
}

.home{
  background: linear-gradient(to right, #4757CF, #C851BE, #FDC872);
  border-radius: 99px;
}

.sidebar.show {
  display: flex;
}

.sub{
  background: #152331;
  border-radius: 12px;
  padding: 6px;
  font-size: 12px;
  position: absolute;
  width: 120px;
  left: 110%;
  top: 24%;
  gap: 8px;
  display: flex;
  flex-direction: column;
  display: none;
}

.sub .subrub{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  border-radius: 8px;
}

.subrub:hover{
  background-color: #384756;
}

.subrub p{
  padding: 5px 9px;
  border-radius: 999px;
  background: #152331;
  margin: 0;
}

.back-button.active {
  background: #101F2F;
}

.back-button.active svg path {
  fill: #ffffff;
}