html,
body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: visible;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    font-weight: bold;

    /* Prevents scroll from whitespace */
}

body{
  overflow-x: clip;
}

.background {
  background: linear-gradient(
    to right,
    #a7c7f9,
    #5ec8f8,
    #7ed7d0,
    #e8efb0,
    #ffb6b6,
    #f6b1d8 );
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.background-img img {
    max-width: 35vw;
    /* Responsive: max 90% viewport width */
    max-height: 90vh;
    /* Responsive: max 90% viewport height */
    width: auto;
    height: auto;
    object-fit: contain;
    /* Keeps aspect ratio */
}

.login-button {

    border-radius: 50px;
    border: 1px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(89.54deg, #8EAAFE 0.79%, #1CBFFA 33.76%, #F8E29F 68.21%, #FF538B 99.21%) border-box;
    /* padding: 12px 24px; */
    padding: 8px 20px;
    /* Bigger padding for larger button */
    font-size: 15px;
}

.login-form {

    display: flex;
    flex-direction: column;
    margin: 6vh;
    gap: 10px
}

.login-field {
    height: 1.7em;
    width: 15em;
    border-radius: 50px;
    border: 1px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(89.54deg, #8EAAFE 0.79%, #1CBFFA 33.76%, #F8E29F 68.21%, #FF538B 99.21%) border-box;
}

.login-field::placeholder {
    text-align: center;
    /* Placeholder bhi center mein */

}

.dashboard-screen {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.complete-height {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.d {
    border: 1px solid red;
    border: 1px solid red;
    flex: 1;
}

.navigation-bar {
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.navigation-bar-logo {
    height: 50px;
    width: 40px;
}

.navigation-bar-icons {
    height: 10em;
    width: 1.5em;
}

/* DASHBOARD LAYOUT */
.dashboard {
  display: flex;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  overflow: visible;
}


/* SIDEBAR */
.sidebar {
  padding-top: 24px;
  background: #fff;
  border-right: 1px solid #eee;
  justify-items: center;
  justify-content: center;
}

.logo {
  height: 40px;
  margin-bottom: 20px;
  border-radius: 8px;
} 

.search {
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid linear-gradient(
    to right,
    #a7c7f9,
    #5ec8f8,
    #7ed7d0,
    #e8efb0,
    #ffb6b6,
    #f6b1d8 );
}

.sidebar-section h6 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section li {
  font-size: 13px;
  padding: 6px 0;
  color: #666;
}

/* CONTENT */
.content {
  flex-grow: 1;
  padding-left: 16px;
  padding-top: 24px;
  overflow: visible;
}

/* WELCOME CARD */
.welcome-card {
   min-height: 200px;
   background: linear-gradient(90deg,#4facfe,#7bdcb5,#fddc7a,#ff8aa1);
   padding: 20px;
   border-radius: 14px;
   color: #fff;
}

.welcome-card h1 {
  line-height: 60%;
  font-size: 76px;
  font-weight: 700;
  top: 87px;
  padding-bottom: 26px;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.tags span {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  background: rgba(255,255,255,0.25);
}
.t1{
  padding-bottom: 15px;
}
.t2{
  padding-bottom: 25px;
}

/* TABS */
.tabs {
  display: flex;
  gap: 24px;
  font-size: 14px;
  margin-top: 10px;
}

.tabs span {
  color: #bbb;
  cursor: pointer;
}

.tabs .active {
  color: #111;
  font-weight: 600;
}

/* CARDS */
.cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
  overflow: visible;
}

.card {
  /* width: 100%; */
  max-width: 367px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  height: auto;
  min-height: 260px;
  cursor: pointer;
  z-index: 1;
}

.card h4 {
  font-size: 24px;
  font-weight: 600;
  color: #f8f3f3;

}

.code{
  margin-top: 51px;
  margin-bottom:0px;
}


.card p {
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
  color: #f8f3f3;
}

.card-tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tags span {
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #eee;
  font-weight: 400;
}
.source{
  border: 1px solid #fff;
  border-style: solid;
  background-color: transparent !important;
}

.card.pink { 
    background: linear-gradient(120deg,#F7F7F7, #858585 ); 
  overflow: visible;
  border-radius: 16px;
}

.card.pink:hover{
    background: linear-gradient(120deg, #FFC56F75, #FF7BCA);
}

.card.pink:hover img {
  transform: scale(1.08);
}

.card.yellow { 
  background: linear-gradient(120deg,#F7F7F7, #858585 ); 
  overflow: hidden;
  border-radius: 16px;
}

.card.yellow:hover{
    background: linear-gradient(120deg, #FFC56F75, #FF7BCA);
}


.card.dark {   
  background: linear-gradient(120deg,#F7F7F7, #858585 );
  overflow: hidden;
  border-radius: 16px;
}

.card.dark:hover{
    background: linear-gradient(120deg, #FFC56F75, #FF7BCA);
}


.card.gray {   
  background: linear-gradient(120deg,#F7F7F7, #858585 );
  overflow: hidden;
  border-radius: 16px;
}

.card.gray:hover{
    background: linear-gradient(120deg, #FFC56F75, #FF7BCA);
}


.card.green {  
  background: linear-gradient(120deg,#F7F7F7, #858585 ); 
  overflow: hidden;
  border-radius: 16px;
}

.card.green:hover{
    background: linear-gradient(120deg, #FFC56F75, #FF7BCA);
}


.card.blue {  
  background: linear-gradient(120deg,#F7F7F7, #858585 );
  overflow: hidden;
  border-radius: 16px;
}

.card.blue:hover{
    background: linear-gradient(120deg, #FFC56F75, #FF7BCA);
}

.card.q { 
  background: linear-gradient(120deg,#F7F7F7, #858585 ); 
  overflow: hidden;
  border-radius: 16px;
}

.card.q:hover{
    background: linear-gradient(120deg, #FFC56F75, #FF7BCA);
}


.card.W {
  background: linear-gradient(120deg,#F7F7F7, #858585 );
  overflow: hidden;
  border-radius: 16px;
}

.card.W:hover{
    background: linear-gradient(120deg, #FFC56F75, #FF7BCA);
}


.card.e {
  background: linear-gradient(120deg,#F7F7F7, #858585 ); 
  overflow: hidden;
  border-radius: 16px;
}

.card.e:hover{
    background: linear-gradient(120deg, #FFC56F75, #FF7BCA);
}

.card img {
  width: 100%;
  max-height: 140px;
  margin-bottom: 12px;
  transition: transform 0.4s ease;
  cursor: pointer;
}

/* QUICK LINKS */
.quick-links {
  margin-top: 40px;
}

.quick-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-box {
  height: 160px;
  border-radius: 14px;
  background: #D9D9D9;
}

.icon-column {
  display: flex;       
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  height: 300px;      
  width: 100px;        
}

.icon-item {
  margin: 10px 0; 
  font-size: 24px;
  color: #333;    
}


/* RESPONSIVE */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: block;
  }

  .cards,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .welcome-card h1 {
    font-size: 28px;
  }
}

.border {
    border: 1.5px solid transparent;
}

.border:hover {
    border: 1.5px solid Black;
}

.card.yellow:hover img {
  transform: scale(1.08);
}
.card.dark:hover img {
  transform: scale(1.08);
}
.card.gray:hover img {
  transform: scale(1.08);
}
.card.green:hover img {
  transform: scale(1.08);
}
.card.blue:hover img {
  transform: scale(1.08);
}
.card.q:hover img {
  transform: scale(1.08);
}
.card.W:hover img {
  transform: scale(1.08);
}
.card.e:hover img {
  transform: scale(1.08);
}

.products li {
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
}

/* Hide extra white container look */
#content-area{
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Welcome card spacing fix */
.welcome-card{
  margin-bottom: 20px;
}

/* Quick links row inside welcome */
.quick-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

.quick-links span{
  padding:6px 14px;
  border-radius:20px;
  background: rgba(255,255,255,0.25);
  color:white;
  font-size:12px;
}

.company-card{
  background:#e0e0e0;
  transition:0.3s;
}

.company-card:hover{
  background:#ff7aa2;
}

.card{
  position: relative;
  z-index: 5;
}

.hover-info{
  position: absolute;
  top: 0;
  left: 105%;
  width: 230px;

  background: #ffffff;   /* PURE WHITE */
  padding: 15px;
  border-radius: 12px;

  border: 2px solid #ff7aa2;   /* pink outline */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9999;
}

.card:hover .hover-info{
  opacity: 1;
  visibility: visible;
}

.hover-info h3{
  color:#222;
}

.hover-info p{
  color:#555;
}

/* ============================
   UDEMY STYLE (COMPANY ONLY)
============================ */

.company-udemy{
  background:#f5f5f5 !important;   /* normal color */
  padding:0;
  overflow:visible;
  transition:0.3s ease;
}

.company-udemy:hover{
  background:#ffe1ec !important;   /* hover color */
}

.company-udemy img{
  width:100%;
  object-fit:cover;
}

.udemy-body{
  padding:12px;
}

.udemy-body h4{
  font-size:16px;
  font-weight:600;
  color:#111;
  margin-bottom:6px;
}

.udemy-author{
  font-size:12px;
  color:#777;
  margin-bottom:6px;
}

.udemy-rating{
  font-size:13px;
  font-weight:600;
  color:#b4690e;
}

.udemy-rating span{
  color:#666;
  font-weight:400;
}

.udemy-price{
  font-size:16px;
  font-weight:700;
  margin-top:6px;
}

.udemy-price del{
  color:#888;
  font-size:13px;
  margin-left:6px;
}

.udemy-badges{
  display:flex;
  gap:6px;
  margin-top:8px;
}

.udemy-badges span{
  font-size:11px;
  padding:4px 8px;
  border-radius:4px;
}

.premium{
  background:#5624d0;
  color:white;
}

.best{
  background:#eceb98;
  color:#3d3c0a;
}

.card:hover{
  z-index: 100000;
}

.simple-page{
  padding:40px;
}

.page-header{
  background: linear-gradient(90deg,#4facfe,#7bdcb5,#fddc7a,#ff8aa1);
  padding:30px;
  border-radius:16px;
  color:white;
  margin-bottom:30px;
}

.page-header h1{
  font-size:40px;
  margin:10px 0;
}

.page-header p{
  opacity:0.9;
}

.back-btn{
  color:white;
  text-decoration:none;
  font-weight:600;
}

.back-btn:hover{
  text-decoration:underline;
}

/* Cards */

.page-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}

.mini-card{
  padding:20px;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.mini-card h3{
  margin-bottom:8px;
}

.mini-card p{
  font-size:14px;
}

/* Color styles */

.mini-card.pink{
  background:linear-gradient(120deg,#FFC56F75,#FF7BCA);
}

.mini-card.blue{
  background:linear-gradient(120deg,#7bc6ff,#bde0fe);
}

.mini-card.green{
  background:linear-gradient(120deg,#a8e6cf,#dcedc1);
}

.udemy-rating,
.udemy-price,
.udemy-badges,
.udemy-author {
  display: none;
}

.profile {
  position: relative;
}

.profile-icon img {
  width: 22px;
  cursor: pointer;
}

/* dropdown */
.profile-menu {
  position: absolute;
  right: auto;
  left: 30px;
  top: 0;
  background: #fff;
  width: 180px;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: none;
  z-index: 999;
  transform: none;
}

.profile-menu p {
  margin: 0;
  font-size: 13px;
}

.profile-name {
  font-weight: 600;
}

.profile-email {
  color: #777;
  font-size: 12px;
}

.profile-menu hr {
  margin: 8px 0;
}

.profile-menu a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.profile-menu a:hover {
  color: #6a5acd;
}

/* show class */
.profile-menu.show {
  display: block;
}

.icon-item {
  position: relative;
}

.sidebar-section ul li {
  position: relative;
  padding: 8px 14px;
  margin-bottom: 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #555;
}

.sidebar-section ul li:hover {
  background: linear-gradient(
    90deg,
    rgba(94, 200, 248, 0.18),
    rgba(255, 255, 255, 0)
  );
  padding-left: 18px;
  color: #222;
}

.sidebar-section ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(#5ec8f8, #7ed7d0);
  border-radius: 6px;
  transition: height 0.25s ease;
}

.sidebar-section ul li:hover::before {
  height: 65%;
}

.sidebar-section ul li.active {
  background: linear-gradient(
    90deg,
    rgba(94, 200, 248, 0.28),
    rgba(255, 255, 255, 0)
  );
  color: #111;
  font-weight: 600;
}

.sidebar-section ul li.active::before {
  height: 75%;
}

.products li {
  padding: 8px 14px;
  border-radius: 10px;
}

.icon-item {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #5b5b5b;
}

.icon-item:hover {
  background: linear-gradient(
    135deg,
    rgba(94, 200, 248, 0.22),
    rgba(255, 255, 255, 0)
  );
  transform: translateY(-2px);
  color: #222;
}

.icon-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(#5ec8f8, #7ed7d0);
  border-radius: 4px;
  transition: height 0.25s ease;
}

.icon-item:hover::before {
  height: 60%;
}

.icon-item.active {
  background: linear-gradient(
    135deg,
    rgba(94, 200, 248, 0.35),
    rgba(255, 255, 255, 0)
  );
  color: #111;
}

.icon-item.active::before {
  height: 70%;
}

.tags span {
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.28);
  color: #fff;
}

.tags span:hover {
  background: rgba(255, 255, 255, 0.75);   /* darker */
  color: #222;                            /* text dark */
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.6) inset;
}

.tags span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: linear-gradient(
    90deg,
    rgba(94,200,248,0.6),
    rgba(255,123,202,0.6)
  );
}

.tags span:hover::after {
  opacity: 0.35;
}

.tags span {
  position: relative;
  overflow: hidden;
}

.card .code {
  cursor: pointer;
  position: relative;
  width: fit-content;
  color: rgba(0, 0, 0, 0.75);
  transition: all 0.25s ease;
}

.card .code:hover {
  color: #000;
  transform: translateY(-2px);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.card .code::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  border-radius: 4px;
  background: #000;
  transition: width 0.25s ease;
}

.card .code:hover::after {
  width: 100%;
}

.login-form-hidden {
  display: none;                 /* JS se flex banega */
  flex-direction: column;        /* 🔥 MOST IMPORTANT */
  align-items: center;           /* horizontally center */
  justify-content: center;
  gap: 12px;
}

.front-page-login-button-div {
    margin-top: 20px;
}

.continue-btn {
  width: 140px;
  height: 42px;
  border-radius: 22px;
}

.or-divider {
  margin: 14px 0 10px;
  text-align: center;
  font-weight: 600;
}

/* Ensure the sidebar/nav stays above the content area */
.sidebar, .navigation-bar {
    position: relative;
    z-index: 100; 
}

/* =================================================
   THE FINAL STACKING ORDER OVERRIDE
   ================================================= */

/* 1. Lift the ENTIRE Left Sidebar (with icons) to the front layer */
.dashboard > .sidebar:first-of-type,
.dashboard > div.sidebar:nth-child(1) {
    position: relative !important;
    z-index: 99999 !important; /* Forces this entire container to the front */
    overflow: visible !important; /* Critical: allows the menu to pop out of the sidebar */
}

/* 2. Force the Right Sidebar (with Search) to stay behind */
.dashboard > aside.sidebar, 
.dashboard > .sidebar:last-of-type {
    position: relative !important;
    z-index: 1 !important; /* Keeps this sidebar in the background */
}

/* 3. Ensure the Main Content area is also behind the profile menu */
.content {
    position: relative !important;
    z-index: 2 !important;
}

/* 4. The Profile Menu itself */
.profile-menu {
    position: absolute !important;
    z-index: 100000 !important; /* Highest layer in the dashboard */
    top:30px;
    left: 30px !important; /* Pushes menu out of the 100px sidebar width */
    display: none; 
}

/* 5. Trigger classes for JS visibility */
.profile-menu.show, 
.profile-menu.active {
    display: block !important;
}

.tabs span:hover{
    linear-gradient(
    to right,
    #a7c7f9,
    #5ec8f8,
    #7ed7d0,
    #e8efb0,
    #ffb6b6,
    #f6b1d8 );
}

.error-msg {
  color: #ff4d4d;
  font-size: 14px;
  margin-top: 8px;
  text-align: left;
}
