@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root{
    --color-default:#e0e1e3;
    --color-vibrant: #e0e1e3;
    --color-second:#e0e1e3;
    --color-white:#1f1e1e;
    --color-body:#bbbbbd;
    --color-light:#e0e0e0;
    --app-bg: #f7f9fe;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.10);
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    --shadow-soft: 0 6px 18px rgba(2, 6, 23, 0.08);
    --brand: #2563eb;
}

body { background: var(--app-bg); }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
}

.skip-link:focus { top: 10px; color: #fff; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.42);
  outline-offset: 3px;
}

.sidebar .nav-list a.active {
  background: rgba(37, 99, 235, 0.12);
  color: #174ea6;
}

.app-messages { margin: 0 auto 1rem; max-width: 1100px; }
.app-message {
  padding: 0.8rem 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
}

button[disabled], .btn[disabled] { cursor: not-allowed; opacity: 0.62; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Header */
.top-banner{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 20px;

  background: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);

  position: sticky;
  top: 0;
  z-index: 1000;
}

.banner-content{
  display:flex;
  align-items:center;
  gap: 10px;
}

.banner-logo{
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.banner-content h1{
  margin:0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--text);
}

/* Burger icon */
.top-banner #btn{
  font-size: 22px;
  color: var(--text);
  opacity: 0.85;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.top-banner #btn:hover{
  background: rgba(37, 99, 235, 0.08);
}
.top-banner #btn:active{
  transform: scale(0.96);
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #0d8abc;
}

.main-nav {
  flex-grow: 1;
  margin-left: 2rem;
  /* adjust if you have nav links */
}

/* Profile badge aligned on right */
.profile-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  position: relative;
  background-color: #f4f6f8;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Avatar and name */
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-name {
  white-space: nowrap;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  padding: 0.2rem 0.15rem;         /* smaller padding */
  min-width: 130px;                /* was 180px */
  max-width: 150px;                /* cap width so it can’t grow too wide */
  border: 1px solid #e1e4eb;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10;
}


.dropdown-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Base style for items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  margin: 2px 3px;
  color: #1f2933;
  text-decoration: none;
  font-weight: 400;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Icon + text inside items */
.dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.dropdown-text {
  flex: 1;
}

/* Hover/focus – soft blue/grey */
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #eef3ff;
  color: #111827;
  outline: none;
}

/* Logout-specific styling: slight emphasis, still in your palette */
.logout-item {
  color: #1f2933;
  font-weight: 500;
}

.logout-item .dropdown-icon i {
  color: #2563eb;  /* blue icon */
}



/* Container positioning in top banner */
.login-btn-container {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* Refined login button style */
.login-btn {
  padding: 10px 20px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.25s ease;
  border: 1px solid #ccc;
  cursor: pointer;
}

.login-btn:hover {
  background-color: #e2e2e2;
  color: #000;
  border-color: #bbb;
  text-decoration: none;
}



  *{
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
    /* font-family: 'Poppins', sans-serif; */
  }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Roboto', sans-serif;
}

  
  /* Use Roboto font */
  body, .navbar, .sidebar {
      font-family: 'Roboto', sans-serif;
  }
  
  /* Content area */
  .content {
      padding-top: 20px;
      transition: margin-left 0.3s;
  }

.sidebar{
    min-height: 100vh;
    width: 78px;
    padding: 6px 14px;
    z-index: 99;
    background-color: var(--color-default);
    transition: all .5s ease;
    position: fixed;
    top:0;
    left: 0;
  }
  
  .sidebar.open{
    width: 250px;
  }
  
  .sidebar .logo_details{
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .sidebar .logo_details .icon{
    opacity: 0;
    transition: all 0.5s ease ;
  }
  
  .sidebar .logo_details .logo_name{
    color:var(--color-white);
    font-size: 22px;
    font-weight: 600;
    opacity: 0;
    transition: all .5s ease;
  }
  
  .sidebar.open .logo_details .icon,
  .sidebar.open .logo_details .logo_name{
    opacity: 1;
  }
  
  /* Menu Button in Banner */
/* .top-banner #btn {
  font-size: 24px;
  cursor: pointer;
  color: #070707;
  transition: transform 0.3s ease, color 0.3s ease;
  padding-left: 8px;
  transition: all .5s ease;
} */

  .sidebar .logo_details #btn{
    position: absolute;
    top:50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all .5s ease;
  }
  
  .sidebar.open .logo_details #btn{
    text-align: right;
  }
  
  .sidebar i{
    color:var(--color-white);
    height: 60px;
    line-height: 60px;
    min-width: 60px;
    font-size: 32px;
    text-align: center;
  }
  
  .sidebar .nav-list{
    margin-top: 100px;
    height: 100%;
  }
  
  .sidebar li{
    position: relative;
    margin:12px 0;
    list-style: none;
  }
  
  .sidebar li .tooltip{
    position: absolute;
    top:-20px;
    left:calc(100% + 15px);
    z-index: 3;
    background-color: var(--color-light);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 400;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
  }
  
  .sidebar li:hover .tooltip{
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top:50%;
    transform: translateY(-50%);
  }
  
  .sidebar.open li .tooltip{
    display: none;
  }
  
  .sidebar input{
    font-size: 15px;
    color: var(--color-white);
    font-weight: 400;
    outline: none;
    height: 35px;
    width: 35px;
    border:none;
    border-radius: 5px;
    background-color: var(--color-body);
    transition: all .5s ease;
  }
  
  .sidebar input::placeholder{
    color:var(--color-blue)
  }
  
  .sidebar.open input{
    width: 100%;
    padding: 0 20px 0 50px;
  }
  
  .sidebar .bx-search{
    position: absolute;
    top:50%;
    left:0;
    transform: translateY(-50%);
    font-size: 22px;
    background-color: var(--color-body);
    color: var(--color-white);
  }
  
  .sidebar li a{
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    text-decoration: none;
    background-color: var(--color-default);
    position: relative;
    transition: all .5s ease;
    z-index: 12;
  }
  
  .sidebar li a::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    background-color: var(--color-white);
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
    transform-origin: left;
    z-index: -2;
  }
  
  .sidebar li a:hover::after{
    transform: scaleX(1);
    color:var(--color-default)
  }
  
  .sidebar li a .link_name{
    color:var(--color-white);
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: auto;
    transition: all 0.4s ease;
    pointer-events: none;
    opacity: 0;
  }
  
  .sidebar li a:hover .link_name,
  .sidebar li a:hover i{
    transition: all 0.5s ease;
    color:var(--color-default)
  }
  
  .sidebar.open li a .link_name{
    opacity: 1;
    pointer-events: auto;
  }
  
  .sidebar li i{
    height: 35px;
    line-height: 35px;
    font-size: 22px;
    border-radius: 5px;
  }
  
  .sidebar li.profile{
    position: fixed;
    height: 60px;
    width: 78px;
    left: 0;
    bottom:-8px;
    padding:10px 14px;
    overflow: hidden;
    transition: all .5s ease;
  }
  
  .sidebar.open li.profile{
    width: 250px;
  }
  
  .sidebar .profile .profile_details{
    display: flex;
    align-items: center;
    flex-wrap:  nowrap;
  }
  
  .sidebar li img{
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .sidebar li.profile .name,
  .sidebar li.profile .designation{
    font-size: 15px;
    font-weight: 400;
    color:var(--color-white);
    white-space: nowrap;
  }
  
  .sidebar li.profile .designation{
    font-size: 12px;
  }
  
  .sidebar .profile #log_out{
    position: absolute;
    top:50%;
    right: 0;
    transform: translateY(-50%);
    background-color: var(--color-second);
    width: 100%;
    height: 60px;
    line-height: 60px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.5s ease;
  }
  
  .sidebar.open .profile #log_out{
    width: 50px;
    background: none;
  }
  
  .sidebar.open ~ .home-section{
    left:250px;
    width: calc(100% - 250px);
  }
  .page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
  
.home-section {
  position: relative;
  background-color: #f7f9fe;
  top: 0;
  left: 78px;
  width: calc(100% - 78px);
  transition: all 0.5s ease;
  z-index: 2;

  /* key bits for layout */
  flex: 1 0 auto;   /* fills space between header and footer */
  min-height: 60vh; /* your “min size” without breaking footer */
  padding-bottom: 0;
}

    
  .home-section .text{
      display: inline-block;
      color: #f8fafe;
      font-size: 25px;
      font-weight: 500;
      margin: 18px;
  }


/* Top Banner Styles */
.top-banner {
    /* background-color: #2a2e35; Dark background */
    /* background-color: var(--color-vibrant); */
    color: #fff; /* White text */
    /* padding: 20px 30px; Add spacing */
    position: sticky; /* Keeps banner visible at the top on scroll */
    top: 0;
    z-index: 1000; /* Ensures it stays above other elements */
    /* box-shadow: 0 10px 6px rgba(0, 0, 0, 0.2); Add a shadow for depth */
}

.banner-content h1 {
    margin: 0; /* Remove default margin */
    font-size: 28px; /* Bigger, more prominent font */
    color: #141e4a;
}

.banner-content {
    display: flex; /* Enables flexbox layout */
    align-items: center; /* Vertically aligns items */
    gap: 5px; /* Adds spacing between the logo and the h1 */
}

.banner-logo {
    max-width: 80px; /* Set a maximum width for the logo */
    height: auto; /* Maintain aspect ratio */
    display: inline-block; /* Keep it inline for alignment */
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0 10px;
}

nav ul li a:hover {
    text-decoration: underline;
}



/* Footer Styles */
.footer {
  background-color: #676666;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* margin-top: 100px; */
  /* remove margin-top:auto if you still have it */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer p:nth-child(2) {
    font-style: italic;
    color: #d1d1d1; /* Lighter grey for the "Powered by" text */
}

.footer-nav {
    margin-top: 15px;   
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-nav li {
    display: inline;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease-in-out, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-nav a:hover {
    color: #00bcd4; /* Accent color for hover effect */
    transform: translateY(-2px);
    text-decoration: none;
}

/* Add a subtle gradient at the top of the footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #00bcd4, transparent);
}

.shadow-container {
  height: 10px;
  width: 100%;
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5); /* Smaller and darker shadow */
  position: relative;
  z-index: 999;
  background-color: var(--color-vibrant);
}

@media screen and (max-width: 768px) {
  .sidebar {
    width: 0;
    overflow: hidden;
    padding: 0;  /* Ensures no extra spacing */
    border: none; /* Remove any border that might be causing extra space */
  }

  .sidebar.open {
    width: 100%;
  }

  .home-section {
    left: 0;
    width: 100%;
    transition: all 0.5s ease;
  }

  .sidebar.open ~ .home-section {
    left: 0;
    width: 0;
  }

  .banner-content h1 {
    font-size: 22px;
  }
}


/* overlay spinner */
.spinner{
    position:absolute;
    inset:0;                          /* fill parent */
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.55); /* translucent veil (optional) */
    z-index:5;
  }

.hidden {
    display: none;
}

.brand-wordmark{
  font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 22px;
  text-transform: uppercase;
  color: #141e4a;            /* matches your current h1 color */
  text-decoration: none;
  line-height: 1;
  padding-left: 6px;         /* tiny breathing space from burger */
}

.brand-wordmark:hover{
  text-decoration: none;
  color: #141e4a;
}
