:root {
  --text-danger: red;
}

.text-red { 
  color: var(--text-danger);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* MAIN LAYOUT */
.wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}


/* SIDEBAR */
.sidebar {
    width: 240px;
    min-height: 100%;
    /* background: #0A4C8A; */
    background:linear-gradient(to right, #e5ff52, rgb(180, 99, 99), rgba(201, 36, 36, 0.905));
    color: bisque;
    position: fixed;
    /* top: 10vh;  Sidebar appears below header */
    left: -240px;
    height: calc(100% - 60px); 
    transition: 0.3s ease;
    padding-top: 20px;
    z-index: 1000;
}


.sidebar.active {
    left: 0;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    padding: 15px 20px;
    color: black;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar a:hover {
    /* background: rgba(236, 230, 230, 0.1); */
    background: rgba(255, 255, 255, 0.301);
    font-weight: 900;
    font-size: larger;
}

/* OVERLAY */
.overlay {
    position: fixed;
    top: 60px;  /* Below the header */
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 900;
}


.overlay.active {
    display: block;
}

/* TOP NAVBAR */
.navbar {
    width: 100%;
    background: linear-gradient(
      to right,
      rgba(229,255,82,1),
      rgba(180,99,99,1),
      rgba(201,36,36,1)
    );
    padding: 18px 20px;
    color: rgb(46, 45, 45);
    display: flex;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
    justify-content: start;
}

/* Transparent + blur effect when scrolled */
.navbar.scrolled {
    backdrop-filter: blur(6px);
    /* same gradient but with partial transparency */
    background: linear-gradient(
      to right,
      rgba(229,255,82,0.48),
      rgba(180,99,99,0.5),
      rgba(201,36,36,0.54)
    );
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


/* #menuBtn:hover {
    font-size: larger;
} */

.menu-btn {
    font-size: 25px;
    cursor: pointer;
    margin-right: 20px;
    padding: 2px;
}
.menu-btn:hover {
    font-size: 27px;
    background: rgba(180, 176, 176, 0.584);
    padding: 3px 2px;
    border-radius: 5px;
}

.navbar .nav-title {
  display: inline-block;              /* important for transform */
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}

.navbar .nav-title:hover {
  transform: scale(1.08);
}

/* image box  */
.user-box {
    position: relative;
    margin-left: auto;
}


.user-name {
    font-weight: 600;
    font-size: 16px;
    color: #3b3941;
    white-space: nowrap;
}

.content {
    margin-left: 210px;
    margin-top: 70px; 
    padding: 20px;
    width: 100%;
    transition: 0.3s ease;
}



  @media (max-width: 768px) {
      .content {
          margin-left: 0;
          margin-top: 70px;
      }
      .navbar{
        min-height: 8vh;
      }

      .user-name {
          display: none;     /* Hide name on mobile */
      }

  }

  /* Dropdown box */
  .user-dropdown {
      position: absolute;
      right: 0;
      top: 120%;
      background: #fff;
      min-width: 160px;
      border-radius: 10px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.15);
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.25s ease;
      z-index: 2000;
  }

/* Dropdown links */
.user-dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: #f4f6f8;
}

.user-dropdown .logout {
    color: #d11a2a;
    font-weight: 600;
}

/* Show dropdown on hover (desktop) */
.user-box:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* styles.css */
/* ------------------------------------------------------------------ */


/* Basic reset and base styles */
:root{
--max-width:1200px;
--gap:20px;
--card-radius:12px;
--shadow: 0 6px 18px rgba(10,10,20,0.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
background:#f4f6f8;
color:#0f1720;
}
.page{max-width:var(--max-width);margin:32px auto;padding:0 16px}
.page-title{font-size:24px;margin-bottom:18px;text-align:center}


/* Grid container for cards */
.cards-container{
  /* background-color: #0b74ff; */
display:grid;
grid-template-columns: repeat(3, 1fr);
gap:var(--gap);
align-items:start;
}


.card{

border-radius:var(--card-radius);
overflow:hidden;
box-shadow:var(--shadow);
display:flex;
flex-direction:column;
transition: transform .18s ease, box-shadow .18s ease;
}
.card:nth-child(1){
  background:#0b74ff;
}

.card:nth-child(2){
  background:#20b445e8;
}

.card:nth-child(3){
  background:#efff0bc5;
}

.card-body{padding:16px;flex:1;display:flex;flex-direction:column}
.card h3{margin:0 0 8px;font-size:18px}
.card p{margin:0 0 12px;flex:1;line-height:1.4}
.btn{display:inline-block;
  padding:10px 14px;
  text-decoration:none;
  border-radius:8px;
  background:#29282b96;color:#fff;font-weight:600;
  max-width:70%; margin: 0px auto;}

.btn:hover{
  background:#29282bd2;
  scale: calc(1.03);
}

/**Card body text **/
.card-body h3{
  text-align: center;
  font-size: 20px;
  color: rgb(73, 72, 72);

}

.card-body p{
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  margin: 5px;
  padding: 10px;
  color: rgb(44, 44, 44);
}

.card:hover{transform:translateY(-6px);box-shadow: 10px 14px 18px rgb(58, 59, 59);}


/* Responsive rules as requested:
- >= 997px : 3 cards per row (default)
- 776px - 996px : 2 cards per row
- <= 775px : 1 card per row
*/
@media (max-width: 996px) and (min-width: 776px){
.cards-container{grid-template-columns: repeat(2, 1fr)}
}


@media (max-width: 775px){
.cards-container{grid-template-columns: 1fr}
.card img{height:200px}
}

/* small tweaks for accessibility & keyboard focus */
.apply-btn1:focus{outline:3px solid rgba(11,116,255,0.18);outline-offset:2px}


/* Quote Request Table  */
/* Quote Request Table  */

.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  background: rgb(172, 170, 170);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #161616; /* Outer border */
}

.responsive-table th,
.responsive-table td {
  padding: 12px 15px;
  border: 1px solid #bdbdbd; /* Clear grid-like cell borders */
  text-align: left;
  font-size: 16px;
}

.responsive-table thead {
  background: #0f4593; /* SLS theme color */
  color: #fff;
  border-bottom: 2px solid #003978;
}

/* Hover row highlight */
.responsive-table tbody tr:hover {
  background: #f4f9ff;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .responsive-table {
    border: none;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ccc;   /* Box border per row */
    border-radius: 8px;
    padding: 10px;
    background: #fff;
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    padding: 10px 8px;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #ddd; /* Divider inside card */
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #0f4593;
    margin-right: 10px;
  }
}


/* Counter Css  */
.counter {
    font-size: 24px;
    font-weight: bold;
}

/*** Ecport Table to Excel button ****/

.exportbtndiv{
  margin: 10px;
  text-align:center;
}

.expotbutton{
    background: #0b74ff;
    padding: 4px 6px;
    border-radius: 5px;
    outline: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #9f9898;
    transition: 0.4s; 
}


.expotbutton:hover {
    background: #0243f5;
    font-size: 1.23rem;
}

