/* General body styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(120deg, #1a1a1a, #2b2b2b);
    color: #fff;
}

html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Header styles */
.header {
    height: 75px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header .logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: #00aaff;
    display: flex;
    align-items: center;
}

/* Navigation bar styles */
.nav-bar {
    height: 75px; /* Explicitly set the height for consistency */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e1e1e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
    margin: 0;
    position: relative;
}

.nav-bar a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    margin: 0 15px; /* Add spacing between links */
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 75px; /* Ensures vertical alignment */
}

/* Hover state */
.nav-bar a:hover {
    color: #66c0ff; /* Lighter blue */
}

/* Active state */
.nav-bar a.active {
    color: #00aaff; /* Active link color */
}

/* Main SDAI_Container layout */
.SDAI_Container {
    display: flex;
    flex-grow: 1;
    position: relative;
}

/* Left section (dynamic showcase) */
.main-showcase {
    background:#fff;
    color:#000;
    transition:all 0.3s ease-in-out;
    overflow-y:auto; /* Enable vertical scrolling */
}

.main-showcase {
/*    
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
*/    
    align-items: center;
    background: #fff;
    color: #000;
    transition: all 0.3s ease-in-out;
    overflow-y: scroll; /* Enable vertical scrolling */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for Internet Explorer/Edge */
}

.main-showcase::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Edge */
}

/* Right section (chatbot interface) */
#chatbot {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: #252525;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    min-width: 20%;
    max-width: 50%;
    width: 30%; /* Initial percentage width */
}

/* Resizing handle for chatbot */
.resize-handle {
    width: 10px;
    background: #444;
    cursor: ew-resize;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5px;
}

.chatbot-header {
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #444;
}

.chatbot-header h2 {
    margin: 0;
    font-size: 20px;
    color: #00aaff;
}

/* Chat history */
.chat-history {
    flex: 1;
    overflow-y: auto;
    margin: 10px 0;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    max-height: calc(100% - 140px); /* Adjusted for proper fit */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between bubbles */

    /* Hide scrollbar for modern browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.chat-history::-webkit-scrollbar {
    display: none; /* WebKit browsers (Chrome, Safari) */
}

/* Chat messages */
.message {
    margin-bottom: 10px;
    max-width: 70%; /* Ensures dynamic bubble sizing */
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    display: inline-block;
}

.bot-message {
    background: #e0e0e0;
    color: #000;
    align-self: flex-start; /* Aligns to the left */
    border-bottom-left-radius: 0; /* Makes left corner square */
}

.user-message {
    background: #0078d7;
    color: #fff;
    align-self: flex-end; /* Aligns to the right */
    border-bottom-right-radius: 0; /* Makes right corner square */
}

#userInput {
    color:black;
}

/* Chat input styles */
.chat-input {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 4px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
    outline: none;
    box-sizing: border-box;
}

.chat-input button {
    padding: 10px 15px;
    background: #00aaff;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #008ecc;
}

#container_home {
    height: 100%;
    overflow-y:scroll;
    scroll-snap-type: y mandatory;
}

section {
    scroll-snap-align: start;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

#intro {
    background: linear-gradient(120deg, #1e3c72, #2a5298);
    color: white;
}

#feature1 {
    background: linear-gradient(120deg, #00b09b, #96c93d);
    color: white;
}

#feature2 {
    background: linear-gradient(120deg, #ff512f, #dd2476);
    color: white;
}


h1, h2 {
    font-size: 3rem;
    margin: 0.5rem 0;
    text-align: center;
}

p {
    font-size: 1.5rem;
    text-align: center;
    margin-left: 20%;
    max-width: 60%;
}

.hidden {
    opacity: 0;
    transform: translateY(50px);
}

#toolTip {
    display:none;
    background-color:black;
    color:white;
    padding:5px;
    border-radius:5px;
    position:absolute;
    top:0px;
    left:0px;
    width:250px;
    min-height:30px;
    z-index:10000;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#TS_DarkScreen {
	position:fixed;
	top:0px;
	left:0px;
	width: 100%;
	height:100%;
	background: rgba(0, 0, 0, 0.5);
	z-index:800;
	display:none;
}
#TS_DarkScreenz1000 {
	position:fixed;
	top:0px;
	left:0px;
	width: 100%;
	height:100%;
	background: rgba(0, 0, 0, 0.5);
	z-index:1000;
	display:none;
}
#TS_ClearScreen {
	position:fixed;
	top:0px;
	left:0px;
	width: 100%;
	height:100%;
	background: rgba(0, 0, 0, 0.2);
	z-index:800;	
	display:none;	
}
#TS_ProtectScreen {
	position:fixed;
	top:0px;
	left:0px;
	width: 100%;
	height:100%;
	background: rgba(0, 0, 0, 0.5);
	z-index:800;	
	display:none;	
}
/* Center the VECOM_Loader */
#VECOM_Loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index:2000;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;	
  border-left: 16px solid #FFFFFF;
  border-right: 16px solid #FFFFFF;
  border-top: 16px solid #0069D1;
  border-bottom: 16px solid #0069D1;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#VECOMWEB_Insert_PopUp {
	position:absolute;
	top:0px;
	left:0px;
	width: 100%;
	height:250%;
	background: rgba(0, 0, 0, 0.5);
	z-index:9999;	
	display:none;	
}

#VECOMWEB_PopUp_Container {
	position:fixed;
	top:100px;
	left:37%;
	width:auto;
	min-width:200px;
	min-height:100px;
	background-color:white;
	box-shadow: 0 5px 0 #666, 0 10px 0 #444, 0 10px 10px rgba(0,0,0,0.9); 
    z-index:10000;
}

#VECOMWEB_PopUp_Header {
	float:left;
	background-color: #0069D1;
	width:100%;
	height:50px;	
}

#VECOMWEB_PopUp_Header_Title {
	float:left;
	width:90%;
	margin-top:10px;
	margin-left:2%;	
	text-align:left;
	font-family:"Lato_Regular" !important;
	font-size:22px;
	font-weight:700;
	color:white;	
}

#VECOMWEB_PopUp_Header_XIcon {
	float:left;
	width:3%;
	margin-right:15px;
	margin-top:15px;
	display:inline-block;
	z-index:999;
}

#VECOMWEB_PopUp_Header_Triangle {
	position:absolute;
	top:-10px;
	left:20px;
	z-index:1000;	
	display:none;	
}

#VECOMWEB_PopUp_Header_CornerPointer {
	position:absolute;
	top:-10px;
	left:300px;
	z-index:1000;	
	display:none;	
}

#VECOMWEB_PopUp_Header_CornerPointer2 {
	position:absolute;
	top:-10px;
	left:300px;
	z-index:1000;	
	display:none;	
}

#VECOMWEB_PopUp_Header_CornerPointerLeft {
	position:absolute;
	top:-10px;
	left:0px;
	z-index:1000;	
	display:none;	
}

#VECOMWEB_PopUp_Header_CornerPointerLeft2 {
	position:absolute;
	top:-10px;
	left:0px;
	z-index:1000;	
	display:none;	
}

#VECOMWEB_PopUp_CircleX_Icon {
	position:absolute;
	top:0px;
	left:120px;
	z-index:1000;	
	display:none;	
}

#VECOMWEB_PopUp_Body {
	float:left;
	width:96%;
	margin:2%;
	text-wrap:normal;
	height:auto;
	text-align:left;
	font-family:"Lato_Regular" !important;
	font-size:18px;
	font-weight:500;
}

#VECOMWEB_Insert_PopUp2 {
	position:absolute;
	top:0px;
	left:0px;
	width: 100%;
	height:120%;
	background: rgba(0, 0, 0, 0.5);
	z-index:999;	
	display:none;	
}
#VECOMWEB_PopUp_Container2 {
	position:fixed;
	top:100px;
	left:37%;
	width:auto;
	max-width:300px;
	min-width:200px;
	height:auto;
	min-height:150px;
	background-color:white;
}
#VECOMWEB_PopUp_Header2 {
	float:left;
	background-color: #052958;
	width: 100%;
	height:50px;	
}
#VECOMWEB_PopUp_Header_Title2 {
	float:left;
	width:85%;
	margin-top:10px;
	margin-left:2%;	
	text-align:left;
	font-family:"Lato_Regular", sans-serif !important;
	font-size:22px;
	font-weight:700;
	color:white;	
}
#VECOMWEB_PopUp_Header_XIcon2 {
	float:right;
	width:10%;
	margin-right:2%;
	margin-top:15px;
	display:inline-block;
}
#VECOMWEB_PopUp_Body2 {
	float:left;
	width:96%;
	margin:2%;
	text-wrap:normal;
	height:auto;
	text-align:left;
	font-family:"Lato_Regular", sans-serif !important;
	font-size:18px;
	font-weight:500;
}

#VECOMWEB_Processing_BusySpinnerDiv {
	position:absolute;
	top:0px;
	left:0px;
	width: 100%;
	height:250%;
	background: rgba(0, 0, 0, 0.5);
	z-index:988;	
	display:none;	
}

