:root{

  --sidebar-w:240px;

  --bg:#060816;
  --bg2:#0b1022;

  --card:#12192b;

  --border:rgba(255,255,255,.08);

  --text:#ffffff;
  --muted:#98a3bd;

  --accent:#eb6835;
  --accent2:#6c5ce7;
  --accent-glow:rgba(235,104,53,0.18);

  --orange:#ff7a3d;

  --transition:0.25s cubic-bezier(0.4,0,0.2,1);
  --sidebar-w: 260px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{

  background:
    linear-gradient(
      180deg,
      var(--bg),
      var(--bg2)
    );

  color:var(--text);

  font-family:'DM Sans',sans-serif;

  overflow-x:hidden;
}
/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  border-right: 1px solid var(--sidebar-border);
  transition: transform var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--sidebar-border);
}

.brand-icon {
  font-size: 24px;
  color: var(--accent);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-nav li a i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.sidebar-nav li a:hover {
  background: var(--sidebar-hover);
  color: #fff;
  transform: translateX(4px);
}

.sidebar-nav li a:active {
  transform: translateX(2px) scale(0.98);
}

.sidebar-nav li.active a {
  background: var(--sidebar-active);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  gap: 16px;
}

.sidebar-footer a {
  color: var(--sidebar-text);
  font-size: 16px;
  transition: color var(--transition);
}

.sidebar-footer a:hover {
  color: var(--accent);
}

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.sidebar-backdrop.visible {
  display: block;
}
/* NAVBAR */

.navbar{

  position:fixed;

  top:0;
  left:240px;
  right:0;

  height:82px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0 30px;

  background:
    rgba(15,15,18,.85);

  backdrop-filter:blur(16px);

  border-bottom:
    1px solid rgba(255,255,255,.05);

  z-index:999;
}

.search-bar{

  width:420px;

  display:flex;
  align-items:center;

  gap:12px;

  padding:14px 18px;

  border-radius:999px;

  background:
    rgba(255,255,255,.05);

  border:
    1px solid var(--border);
}

.search-bar input{

  width:100%;

  border:none;
  outline:none;

  background:none;

  color:white;
}

.nav-actions{

  display:flex;
  gap:14px;
}

.outline-btn,
.primary-btn{

  border:none;

  padding:14px 20px;

  border-radius:18px;

  cursor:pointer;

  font-weight:700;
}

.outline-btn{

  background:
    rgba(255,255,255,.06);

  color:white;
}

.primary-btn{

  background:var(--accent);

  color:white;
  box-shadow:0 4px 12px rgba(235,104,53,0.3);
}

.primary-btn:hover{

  background:#d45c28;
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(235,104,53,0.35);
}

/* MAIN */

.main-home{

  margin-left:240px;

  padding:120px 40px 60px;
}

/* HERO */

.hero-section{

  text-align:center;

  margin-bottom:70px;
}

.hero-badge{

  display:inline-flex;

  padding:12px 18px;

  border-radius:999px;

  background:
    rgba(255,255,255,.06);

  border:
    1px solid var(--border);

  margin-bottom:24px;
}

.hero-section h1{

  font-size:
    clamp(58px,8vw,110px);

  line-height:1;

  margin-bottom:20px;

  font-family:'Syne',sans-serif;
}

.hero-section h1 span{

  background:
    linear-gradient(
      90deg,
      var(--accent),
      #f0a07a
    );

  -webkit-background-clip:text;

  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero-section p{

  color:var(--muted);

  max-width:760px;

  margin:auto;

  line-height:1.8;

  font-size:18px;
}

/* GRID */

.dropdown-grid{

  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

  gap:28px;
}

.large-card{
  grid-column:span 2;
}

/* CARD */

.dropdown-card{

  background:
    linear-gradient(
      145deg,
      #12192b,
      #172038
    );

  border:
    1px solid var(--border);

  border-radius:32px;

  padding:34px;

  transition:var(--transition);
}

.dropdown-card:hover{

  transform:translateY(-8px);
}

.card-top{

  display:flex;
  justify-content:space-between;
  align-items:center;

  margin-bottom:28px;
}

.card-label{

  padding:10px 16px;

  border-radius:999px;

  background:
    rgba(255,255,255,.06);

  font-size:12px;

  color:#d8def7;
}

.card-icon{

  width:70px;
  height:70px;

  border-radius:22px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:26px;
}

.purple{
  background:linear-gradient(135deg,#eb6835,#f0a07a);
}

.blue{
  background:linear-gradient(135deg,#6c5ce7,#9b8ee6);
}

.orange{
  background:linear-gradient(135deg,#ff7a3d,#ffb86b);
}

.dropdown-card h2{

  font-size:38px;

  margin-bottom:18px;

  font-family:'Syne',sans-serif;
}

.dropdown-card p{

  color:var(--muted);

  line-height:1.8;

  margin-bottom:30px;
}

/* DROPDOWN */

.dropdown-wrapper{
  position:relative;
}

.dropdown-btn{

  width:100%;

  border:none;

  padding:18px 22px;

  border-radius:18px;

  background:
    rgba(255,255,255,.06);

  color:white;

  display:flex;
  align-items:center;
  justify-content:space-between;

  cursor:pointer;

  font-weight:700;

  transition:var(--transition);
}

.dropdown-btn:hover{

  background:
    rgba(255,255,255,.09);
}

.dropdown-btn img{

  width:38px;
  height:38px;

  border-radius:50%;

  margin-right:12px;
}

.profile-btn{

  justify-content:flex-start;

  gap:12px;
}

.dropdown-menu{

  position:absolute;

  top:110%;
  left:0;

  width:100%;

  background:
    linear-gradient(
      135deg,
      #12192b,
      #1a2543
    );

  border:
    1px solid rgba(255,255,255,.08);

  border-radius:24px;

  padding:14px;

  display:flex;
  flex-direction:column;

  gap:10px;

  opacity:0;
  visibility:hidden;

  transform:
    translateY(12px);

  transition:var(--transition);

  z-index:99;
  box-shadow:0 8px 24px rgba(0,0,0,0.24);
}

.dropdown-wrapper.active .dropdown-menu{

  opacity:1;
  visibility:visible;

  transform:
    translateY(0);
}

.dropdown-item{

  padding:14px 16px;

  border-radius:16px;

  cursor:pointer;

  display:flex;
  align-items:center;

  gap:12px;

  transition:var(--transition);
}

.dropdown-item:hover{

  background:
    rgba(255,255,255,.06);
}

.logout{
  color:#ff6d89;
}

/* NOTIFICATIONS */

.notification-menu{

  width:420px;
}

.notify-item{

  display:flex;
  align-items:center;

  gap:16px;

  padding:16px;

  border-radius:18px;

  background:
    rgba(255,255,255,.04);
}

.notify-icon{

  width:54px;
  height:54px;

  border-radius:18px;

  display:flex;
  align-items:center;
  justify-content:center;
}

.green{
  background:linear-gradient(135deg,#00c896,#00e0a1);
}

.purple-bg{
  background:linear-gradient(135deg,#eb6835,#f0a07a);
}

.orange-bg{
  background:linear-gradient(135deg,#ff7a3d,#ffb86b);
}

.notify-item strong{

  display:block;

  margin-bottom:6px;
}

.notify-item span{

  color:#9ca9c5;

  font-size:14px;
}

.badge{

  width:26px;
  height:26px;

  border-radius:50%;

  background:
    linear-gradient(
      135deg,
      #ff4d6d,
      #ff758f
    );

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:12px;
}

/* CUSTOM COLOR GRADIENTS FOR NEW ICONS */
.cyan-grad {
  background: linear-gradient(135deg, #00cec9, #0984e3);
  color: #fff;
}
.pink-grad {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  color: #fff;
}
.green-grad {
  background: linear-gradient(135deg, #55efc4, #00b894);
  color: #fff;
}
.yellow-grad {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  color: #12192b;
}
.teal-grad {
  background: linear-gradient(135deg, #81ecec, #00cec9);
  color: #12192b;
}

/* 1. MULTI-LEVEL DROPDOWN */
.dropdown-menu .dropdown-item {
  position: relative;
}
.submenu-arrow {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.6;
  transition: transform var(--transition);
}
.dropdown-submenu {
  position: absolute;
  top: 0;
  left: 102%;
  width: 220px;
  background: linear-gradient(135deg, #12192b, #1a2543);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: var(--transition);
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.dropdown-item:hover .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.dropdown-item:hover .submenu-arrow {
  transform: translateX(3px);
}

/* 2. SEARCHABLE SELECT DROPDOWN */
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 8px;
}
.search-input-wrapper i {
  color: var(--muted);
  font-size: 14px;
}
.dropdown-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.dropdown-items-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dropdown-items-list::-webkit-scrollbar {
  width: 5px;
}
.dropdown-items-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}
.flag {
  font-size: 16px;
  margin-right: 4px;
}

/* 3. ACTIONS MENU DROPDOWN */
.actions-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.actions-menu {
  width: 280px;
  left: 50%;
  transform: translate(-50%, 12px);
}
.dropdown-wrapper.active .actions-menu {
  transform: translate(-50%, 0);
}
.shortcut {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.actions-menu .divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}
.delete-action {
  color: #ff4d6d;
}
.delete-action:hover {
  background: rgba(255, 77, 109, 0.1);
}

/* 4. RICH MEGA DROPDOWN */
.mega-menu {
  width: 540px;
  left: 50%;
  transform: translate(-50%, 12px);
  padding: 24px;
}
.dropdown-wrapper.active .mega-menu {
  transform: translate(-50%, 0);
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mega-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mega-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
}
.mega-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: var(--transition);
}
.mega-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.mega-item i {
  font-size: 18px;
  color: var(--accent2);
  margin-top: 2px;
}
.mega-item strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}
.mega-item span {
  font-size: 12px;
  color: var(--muted);
}
.mega-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.mega-footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.mega-footer a:hover {
  text-decoration: underline;
}

/* 5. REGION/LANGUAGE SELECT DROPDOWN */
.lang-select-btn {
  justify-content: space-between;
}
.lang-flag {
  font-size: 18px;
  margin-right: 8px;
}
.check-icon {
  margin-left: auto;
  color: #00c896;
  font-size: 16px;
}
.check-icon.empty {
  color: rgba(255, 255, 255, 0.15);
}
.active-lang {
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.15);
}

/* RESPONSIVE */

@media(max-width:1100px){

  .large-card{
    grid-column:span 1;
  }

}

@media(max-width:900px){

  .sidebar{
    display:none;
  }

  .navbar,
  .main-home{

    margin-left:0;

    left:0;
  }

  .footer {
    margin-left: 0;
  }

}

@media(max-width:768px){

  .navbar{

    flex-direction:column;

    height:auto;

    padding:18px;

    gap:16px;
  }

  .search-bar{
    width:100%;
  }

  .main-home{
    padding:160px 20px 40px;
  }

  .dropdown-grid{
    grid-template-columns:1fr;
  }

  .notification-menu{
    width:100%;
  }

  .mega-menu {
    width: 100%;
    left: 0;
    transform: translateY(12px);
  }
  .dropdown-wrapper.active .mega-menu {
    transform: translateY(0);
  }
  .mega-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .actions-menu {
    width: 100%;
    left: 0;
    transform: translateY(12px);
  }
  .dropdown-wrapper.active .actions-menu {
    transform: translateY(0);
  }
  .dropdown-submenu {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.2);
  }
  .dropdown-item:hover .dropdown-submenu {
    display: flex;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #111;
  color: #aaa;
  margin-top: 60px;
  clear: both;
  width: calc(100% - var(--sidebar-w)); /* stay beside sidebar */
  margin-left: var(--sidebar-w);        /* push beside sidebar */
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}




.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 40px;
  padding: 56px 48px 40px;
  max-width: 100%;
}


.footer-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  position: relative;  
  transition: color var(--transition), transform 0.3s ease;
}
 
.footer-col ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);        
  transform: scale(1.05);      
}

.footer-col ul li a:hover::after {
  width: 100%;                
}



.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition);
}

.socials a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: #d45c28;
}

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding: 20px 48px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* =========================================================
   ACTIONS & CODE BLOCKS (COPY/VIEW CODE)
========================================================= */
.card-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 22px;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn {
  background: rgba(108, 92, 231, 0.12);
  color: #9b8ee6;
}

.copy-btn {
  background: rgba(235, 104, 53, 0.12);
  color: #ff9966;
}

.action-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.copy-btn.copied {
  background: #00c896;
  color: white;
}

/* CODE BLOCK */
.code-block {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: all 0.35s ease;
  border-radius: 20px;
  background: #0f172a;
  color: #e2e8f0;
  text-align: left;
}

.code-block.open {
  max-height: 700px;
  opacity: 1;
  margin-top: 22px;
  padding: 22px;
  overflow-y: auto;
}

.code-block code {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
}

/* COPY TOAST */
.copy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 18px;
  background: #00c896;
  color: white;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(120px);
  opacity: 0;
  transition: 0.35s ease;
  z-index: 1099;
  box-shadow: 0 8px 24px rgba(0, 200, 150, 0.3);
}

.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #FFA500; /* light orange */
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px;
  font-size: 18px;
  cursor: pointer;
  display: none; /* hidden by default */
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn:hover {
  background: #FFB84D; /* softer orange on hover */
}






