:root {
   /* Neutral Colors */
    --app-1:#44b800; 
    --app-2:#03af5f; 
    --app-3:#00a5a5;
    --app-4:#0078a8;
    --app-icons: rgb(215, 255, 106);
  
    --app-background: #ececec;
    --app-foreground: #222;
    --app-primary: #c2c203;
  

    /* Neutral Colors */
    --neutral-50: #ffffff;
    --neutral-100: #eeeeee;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #000000;
  
    /* Primary Colors */
    --primary-light: #60e8fa;
    --primary-main: #25d4eb;
    --primary-dark: #1d68d8;
    --primary-lime: #01575e;
  
    /* Secondary Colors */
    --secondary-light: #f472b6;
    --secondary-main: #db2777;
    --secondary-dark: #be185d;
  
    /* Green Array */
    --green-50: #dcffdb;
    --green-100: #5dff57;
    --green-500: #06ac00;
    --green-900: #06a700;

    --green-lime: rgb(55, 194, 0);
    --green-lime-grad: linear-gradient(90deg, rgba(201,253,63,0.6) 0%, rgba(211,255,118,0.5) 49%, rgba(135,252,239,0.3) 100%);
    --green-lime-grad-2: linear-gradient(90deg, rgba(175, 175, 175, 0.5) 0%, rgba(209, 209, 209, 0.7) 49%, rgba(206, 206, 206, 0.9) 100%);


    /* chat fonts */

    --chatmonoJB-font-family: 'JetBrains Mono', monospace;
    --chat-font-family: 'Roboto', sans-serif;
    --chatmono-font-family: 'Roboto Mono', monospace;
    --header-font-family: 'Comfortaa', sans-serif;
    --chat-font-size: 11px;
    --title-sm-font-size: 14px;
    --title-md-font-size: 20px;
    --title-lg-font-size: 30px;
    --title-xl-font-size: 40px;
    --title-2xl-font-size: 50px;

    /* rounded corners */
    --rounded-sm: 4px;
    --rounded-md: 8px;
    --rounded-lg: 100px;
  }
  
* {
    box-sizing: border-box;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('static/fonts/JetBrainsMonoNL-Regular.ttf') format('truetype');
  font-weight:lighter;
  font-style: normal;
}

body {
    font-family: var(--chatmonoJB-font-family) !important; 
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
} 

#main.container-fluid {
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
}

    
.icns { 
  color: var(--app-icons);

}
/*-------------------
HEADERS
--------------------*/
.subheader {
  font-size: 25pt;
  letter-spacing: 20px;
  color: var(--app-icons);
  font-weight: bolder;
  margin: 0;
}

.title {
  font-size: 10pt;
  font-family: var(--header-font-family);
  color: var(--primary-lime);
  font-weight: lighter;
  font-weight: bold;
  margin: 0;
}

.header {
  color: #000000;
  font-weight:700 !important;
  font-size: 5rem;
  font-family: var(--header-font-family);
}

/*------------------
SIDEBAR
--------------------*/

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 10rem;           
    overflow-x: hidden;     
    transition: 0.3s;
    padding-top: 20px;
    font-size: 10pt;
    z-index: 10;
}


.sidebar a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: #000000;
  text-decoration: none;
  transition: background-color 0.5s;
  font-size: 10pt;
  border-top-right-radius: 10px; /* Capsule style */
  border-bottom-right-radius: 10px; /* Capsule style */
  background: var(--neutral-400);
  text-decoration: none;
  width: auto;
  margin-bottom: 5px;
}

.sidebar a:hover {
  background: var(--green-lime);
}

/* Toggle button */
.toggle-btn {
    position: fixed;
    top:5px;
    left: 0px;
    font-size: 10px !important;
    cursor: pointer;
    padding: 5px 10px !important;
    border: none;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: var(--neutral-500);
   
    z-index: 1031;
}

/*--------------------
 APP SECTION
 --------------------*/
/* main app container */

#main {
  background-image: url('/static/images/con_air.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; /* Important for pseudo-element positioning */
}

#main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(207, 207, 207, 0.96); /* Adjust color and opacity */
  z-index: 1;
}

#main > * {
  position: relative;
  z-index: 3;
}


.main-img-cont-rt {
position: absolute; 
top: 50%; 
right: 0%; 
transform: translateY(-50%);
width: 30%; 
height: 80%;
z-index: 1;
padding:none;
margin: none;
opacity: 0.1;
z-index: 1;
}
.options-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }


/* Card Structure */
/* App Card */
.app-card {
  transition: all 0.5s ease;
  width: 120px;
  position: relative;
  z-index: 1;
  height: 150px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.2);
  background-color: var(--neutral-100);
}

/* Hover Effect */
.app-card:hover {
  width: 230px;
  z-index: 2;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

/* Pill Badge */
.pill-badge {
  position: absolute;
  top: 5px;
  left: 8px;
  background-color: #f1f1f1; /* Red background */
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 5px 5px;
  border-radius: 12px; /* Rounded pill shape */
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease;
}

/* Change color when selected (clicked or focused) */
.pill-badge.focus, 
.pill-badge.active {
  background-color:rgb(255, 255, 255) ; /* Red */
  border: solid salmon ;
}

.card-body {
  text-align: center;
  padding: 0.5rem;
}

/* Card Header */
.card-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0.4rem;
}

.card-title {
  font-size: 12px;
  margin: 0;
  font-family: var(--header-font-family);
  font-weight: 900;
}

/* Main Buttom */
.ext-btn {
  display: inline-block;
  padding: 10px 15px;
  font-family: var(--chatmono-font-family);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #000000;
  background: var(--green-lime-grad);
  border: 2px solid salmon; /* Border with the same color as gradient */
  border-radius: 30px; /* Rounded corners */
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2), -4px -4px 8px rgba(255, 255, 255, 0.3); /* Beveled effect */
  transition: all 0.3s ease;
}

.ext-btn:hover {
  background: var(--app-primary);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3), -4px -4px 12px rgba(255, 255, 255, 0.4); /* More intense bevel effect */
}

/* Card Icons */
[class*="icon-"] {
  margin-right: 0.5rem;
  font-size: 14px;
}

.icon-primary { color: var(--app-icons); }
.icon-success { color: var(--app-icons); }
.icon-info { color: var(--app-icons); }
.icon-warning { color: var(--app-icons); }
.icon-danger { color: var(--app-icons); }

/* Card Divider */
.card-divider {
  margin: 0.5rem 0;
  opacity: 0.2;
}

/* Card Description */
.card-description {
  height: 60px;
  padding: 0.3rem;
}

.card-description p {
  font-size: 10px;
  margin: 0;
}

.solution-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  transition-delay: 0.3s; /* Matches the app-card transition time */
}

.badge {
  font-size: 10px !important;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--neutral-200) !important;
  color: var(--neutral-900) !important;
  font-weight: light !important;
}

.app-card:hover .solution-badges {
  opacity: 1;
  visibility: visible;
} 


/*-----------------
LEFT PANEL: COLLAPSED
-------------------*/
.options-container.collapsed {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.options-container.collapsed .app-card {
  margin-bottom: 10px;
  height: 40px !important; 
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  flex-wrap: wrap !important; /* Enables wrapping */
}
.options-container.collapsed .app-card:hover {
  width: 130px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.options-container.collapsed .card-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.options-container.collapsed .card-description,
.options-container.collapsed .card-divider {
  display: none;
}

.center-box.collapsed {
  transition: all 0.3s ease-in-out;
}

/* Add this to your existing CSS, preferably in the LEFT PANEL: COLLAPSED section */
.center-box.collapsed .main-img-cont-rt {
  width: 40%; /* Reduced width */
  height: 40%; /* Adjusted height */
  top: 0%; /* Adjusted vertical positioning */
  right: 0%; /* Slight right margin */
  opacity: 0.1; /* Slightly more transparent */
  transform: translateY(-50%);
}



/*-----------------
CHAT INPUT SECTION
-------------------*/
.chat-section textarea {
  resize: none;
  font-size: var(--chat-font-size);
  height: 100px; /* 1.5x the original 100px height */
  overflow-y: auto;
  transition: height 0.2s ease;
  padding: 10px 15px !important;
}

.chat-section textarea::-webkit-scrollbar {
  width: 6px;
  background-color: transparent;
}

.chat-section textarea::-webkit-scrollbar-thumb {
  background-color: var(--neutral-500);
  border-radius: var(--rounded-sm);
}

.chat-section button {
box-shadow: #404040 0px 0px 0px 1px inset;
}

.chat-section-badge {
  position: absolute;
  bottom: 5px;
  right: 8px;
  background-color: var(--neutral-600); /* Red background */
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px; /* Rounded pill shape */
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.chat-section-suggestions {
max-height: 80px;
overflow-y: none;
font-size: var(--chat-font-size);

}

/*-----------------
RIGHT PANEL
-------------------*/

.chat-panel {
  position: fixed;
  right: -100%;
  top: 0;
  height: 100vh;
  background: white;
  opacity: 0.95;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
  scrollbar-width: thin;
}

.chat-panel-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  z-index: 10;
}

.chat-panel-nav-title {
  display: inline-block;
  font-size: var(--title-sm-font-size);
  color: var(--neutral-900);
  border: lime solid 2px;
  border-radius: var(--rounded-lg);
  padding: 5px 10px;
  width:auto;
}
.chat-panel-nav-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.chat-panel.active {
  right: 0;
}

/*------------------
CHAT PANEL DISPLAY SECTION
---------------------- */
.chat-panel-chat-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  height: 100vh;
  width: 100%; /* Default for small screens */
  margin: 0 auto; /* Centers the container */
}

.user-message {
  background: var(--neutral-200);
  padding: 10px;
  margin: 5px 0;
  border-radius: 8px;
  max-width: 70%;
  margin-left: auto;
  color: var(--neutral-900);
}

.bot-message {
  padding: 10px;
  margin: 5px 0;
  border-radius: 8px;
  max-width: 100%;
  color: var(--neutral-900);
}
.bot-message-tag {
  background: var(--primary-main);
  color: white;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-right: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  box-sizing: border-box;
  flex: none;
}



.user-message ,
.bot-message {
  font-size: var(--chat-font-size);
}

.message-time {
  font-size: var(--chat-font-size);
  color: var(--neutral-500);
  margin-top: 5px;
}


/*-----------------
RESPONSIVE DESIGN chat container
-------------------*/
@media (min-width: 768px) { /* Medium screens (tablets) */
  .chat-panel-chat-container {
    width: 75%;
  }
}




/*-----------------
RESPONSIVE DESIGN
-------------------*/


/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {

  .chat-panel {
    position: relative;
    right: 0;
    height: auto;
    margin-top: 20px;
    display: none;
  
  }

  .chat-panel.active {
    width: 100%;
    display: block;
  
  }

  .options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;

  }

  .app-card {
    width: 100%;
    height: 40px;
    margin: 0;

  }

  .card-body {
    padding: 10px;
    height: 40px;
    display: flex;
    align-items: center;
  }

  .card-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .card-description,
  .card-divider,
  .solution-badges {
    display: none;
  }

  .app-card:hover {
    width: 100%;
    box-shadow: none;
  }

  .chat-section {
    margin-top: 20px;
    width: 100%;
  }
  .sidebar {
    width: 0rem;
  }
  .main-img-cont-rt {
    width: 45%; /* Reduced width */
    height: 30%; /* Adjusted height */
    top: 0%; /* Adjusted vertical positioning */
    right: 0%; /* Slight right margin */
    opacity: 0.1; /* Slightly more transparent */
    transform: translateY(-50%);
  }
}
@media (max-width: 1000px) { /* Large screens (desktops) */
  .chat-panel-chat-container {
    width: 60%;
  }
  .main-img-cont-rt {
    width: 40%; /* Reduced width */
    height: 50%; /* Adjusted height */
    top: 0%; /* Adjusted vertical positioning */
    right: 0%; /* Slight right margin */
    opacity: 0.1; /* Slightly more transparent */
    transform: translateY(-50%);
  }
}

@media (max-width: 500px) { /* Large screens (desktops) */

  .main-img-cont-rt {
    width: 40%; /* Reduced width */
    height: 30%; /* Adjusted height */
    top: 0%; /* Adjusted vertical positioning */
    right: 0%; /* Slight right margin */
    opacity: 0.1; /* Slightly more transparent */
    transform: translateY(-50%);
  }
}
