: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: 15%;
  border-radius: 10px;
  background:linear-gradient(to right, #4757CF, #C851BE, #FDC872);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-family: "Inter", sans-serif;
}

.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;
}

.fourth-row {
  background-color: white;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--white);
  padding: 20px;
}

.fourth-row .left-side {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.left-side .fit {
  width: fit-content;
  color: #778EA4;
  background: #EFF3F7;
  align-self: flex-start;
  justify-self: flex-start;
  margin-bottom: 20px;
  letter-spacing: 20;
}

.left-side h1 {
  margin: 0;
  font-size: 30px;
  color: var(--black);
}

.left-side h1 span {
  font-weight: 400;
}

.left-side p {
  margin: 0;
  font-size: 12px;
  color: var(--gray);
}

.btn2 {
  width: 50%;
}

.right-side {
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.card {
  position: relative;
  border-radius: 15px;
  background: white;
  padding: 20px;
  overflow: hidden;
  transition: 0.3s ease;
  z-index: 1;
  border: 1px solid #CBD6E3;
}

.card:hover{
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #4757CF, #C851BE, #FDC872);
  border-radius: 14px;
  padding: 2px;
  z-index: -1;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}


.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.icon-box {
  background: #F8FAFC;
  padding: 10px;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag {
  background: #7C7CE420; 
  color: #7C7CE4;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  margin-top: 0;
  letter-spacing: 0.1em;
}

.txt{
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  width: fit-content;
}

.com{
  background-color: #42AF7510;
  color: #42AF75;
}

.draft{
  background-color: #5757CD10;
  color:#5757CD;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  margin: 10px 0px;
  color: var(--black);
}

.card-desc {
  font-size: 12px;
  color: #86919F;
  margin: 0;
}

.card-btn {
  flex: 1;
  background: #EFF3F7;
  color: #778EA4;
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card:hover .card-btn {
  background: linear-gradient(to right, #4757CF, #C851BE, #FDC872);
  color: white;
}

.card:hover .arrow-icon2 path {
  fill: white;
}

.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;
}

.txt{
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
  margin: 0;
}

.draft{
  background-color: #5757CD10;
  color:#5757CD;
}

.com{
  background-color: #42AF7510;
  color: #42AF75;
}

.center{
  justify-self: center ;
  align-self: center;
  text-align: center;
}

.col-tag{
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-direction: column;
}

.cell{
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  
}

.more{
  display: flex;
  align-items: center;
  justify-content: center;  
  background-color: #F8FAFC;
  border-radius: 10px;
  padding: 8px;
  align-self: baseline;
  z-index: 2;
}

.global-dropdown-menu {
  position: absolute;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 140px;
  z-index: 9999;
  padding: 8px 0;
  transition: opacity 0.2s ease;
  padding: 5px;
}

.hidden {
  display: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: #6366F1;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #f3f4f6;
  border-radius: 8px;
}

.dropdown-item.delete {
  color: #EF4444;
}

.img {
  display: flex;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  padding: 10px;
  height: 150px; /* Adjust to your image height or content */
  background-image: url('assets/img.png');
  background-size: cover;
  background-position: center;
  border-radius: 15px;
}

.card-sizer,
.card2 {
  width: 23%;
}

.card2 {
  margin-bottom: 20px;
  float: left; 
  border-radius: 15px;
  background: white;
  padding: 20px;
  border: 1px solid #CBD6E3;
  box-sizing: border-box;
  transition: 0.3s ease;
}

.card-content2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-top2 {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.icon-box2 {
  background: #F8FAFC;
  padding: 10px;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.col-tag2 {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-direction: column;
}


.card2:hover{
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.card2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #4757CF, #C851BE, #FDC872);
  border-radius: 14px;
  padding: 2px;
  z-index: -1;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card2:hover::before {
  opacity: 1;
  z-index: 1;
}

.card2:hover .card-btn {
  background: linear-gradient(to right, #4757CF, #C851BE, #FDC872);
  color: white;
}

.card2:hover .arrow-icon2 path {
  fill: white;
}


/* Custom 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;
  cursor: pointer;
  background-color: white;
}

.dropdown i {
  font-size: 20px;
}

/* Hidden by default */
.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;
}

.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;
}