/* General styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root { --navbar-h: 70px; }
*{
  margin: 0;
  padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Poppins", sans-serif !important;
    background-color: #f4f4f4;
}

/* Top NavBar in base.html menus and Home*/
.page-header{
    padding-top: calc(50px + 1rem + 2px);
    text-align: center;
}

.page-header h1 {
  margin-top: 50px;
  font-size: 3.70rem;
  font-weight: bold;
  line-height: 1.2em;
  letter-spacing: 1px;
}

.page-header h1 + p,
.page-header h2 + p {
    max-width: 800px;
    margin: 35px auto;
    font-size: 1.2rem;
    color: #333;
}
/* Highlight AI Intelligence */
.highlight-ai {
    color: rgba(69, 69, 71, 0.73);
    font-weight: 500;
}

/* Gradient Glow Effect for Company Name */
.company-name {
    background: linear-gradient(45deg, dodgerblue, yellow);
    background-clip: text;
    font-weight: 500;
    color: transparent;
    animation: company-name 5s linear infinite;
    background-size: 200% 200%;
}
@keyframes company-name {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}
/* Highlighted Text Animation */
.highlight-text {
    background: linear-gradient(45deg, #f1ad52, #f42525);
    background-clip: text;
    color: transparent;
    font-weight: 500;
    animation: highlight 5s infinite alternate;
}
@keyframes highlight {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}
.fade-in-delay {
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}
.fade-in-slow {
    opacity: 0;
    animation: fadeIn 2.5s ease-out forwards;
}
.fade-in-fast {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}



/* Top Navbar-Menu */
.top-navbar{
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px;
  border-bottom: 2px solid #e3e3e3;
  background: white; /* Ensure background doesn't look transparent */
  z-index: 1000; /* Ensures it stays above other elements */
  align-items: center;        /* Aligns items vertically */
  display: flex;              /* Makes it a flex container */
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
.top-navbar a{
  text-decoration: none;
  color: #929292;
  margin: 0 20px;
}
.top-navbar a:hover{
  color: black;
}
.top-navbar a.active{
  color: black;
}

.top-navbar-menu{
    align-self: center;
    display: flex;
    justify-content: center;
    flex-grow: 1;   /* Allows it to take up remaining space */
}
/* End Top NavBar*/

#cta-button{
  text-decoration: none;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(to right,#D786FF, #722CFF);
  display: inline-block;
  padding: 1em 3em;
  font-weight: 600;
  border-radius: 1000px;
  transition: 150ms ease;
}
#cta-button:hover{
  scale: 1.1;
}

/*form{*/
/*  margin-top: 30px;*/
/*    appearance: none !important;*/
/*}*/
/*commented on 13 Feb -check*/

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; /* Make it flexible */
  max-width: 400px; /* Prevents stretching too much on larger screens */
  margin: 50px auto; /* Centers the form on the page */
}

.login-form input{
  display: block;
  margin: 0 auto;
  margin-bottom: 15px;
  font: inherit;
  border-radius: 30px;
}
/* Styles specific to login form inputs */
.login-form input[type="text"],
.login-form input[type="password"] {
  padding: 5px 20px;
  width: 400px;
  height: 50px;
  border: none;
  background-color: #EBEDF5 !important;
}
/* Style specific to the submit button in login form */
.login-form input[type="submit"] {
  width: 200px;
  padding: 10px;
  background-color: #0071ff;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.forgot-text{
    color: #707175 !important;
    padding: 3px;
    font-weight: 300;
    font-size: 10px;

}

.graph-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Adjust gap between graphs */
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.graph {
    position: relative; /* Allows for absolute positioning of button container */
    display: inline-block;
    width: 45%; /* Make each graph occupy 45% of the container */
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.button-container {
    top: 10px; /* Adjust top position */
    left: 10px; /* Adjust left position */
}

.rainbow-text {
    background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
}

button {
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #0056b3;
}

#saveGraph {
    display: block;
    margin: 20px auto;
}

/* Make the SVG responsive */
svg {
    width: 100%; /* Make the SVG take the full width of the container */
    height: auto;
    max-height: 500px; /* Set a maximum height */
}

.grid line {
    stroke: lightgray;
    stroke-opacity: 0.7;
    shape-rendering: crispEdges;
}

#patient-details-form {
    max-width: 900px; /* Set maximum width for the form container */
}

.compact-form .form-control-sm {
    width: 150px; /* Fixed width for input fields */
}

.compact-form .col-auto {
    display: flex;
    align-items: center;
}

h3 {
    margin-bottom: 5px;
}

canvas {
    width: 100%;
    height: 400px; /* Adjust as needed */
}


.card {
    border-radius: 10px;
}

.card-header {
    font-weight: bold;
    text-transform: uppercase;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

.table thead {
    background-color: #e9ecef;
}


.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
}


/* New css for Login Page */

.login-container {
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

h2 {
  margin-bottom: 20px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
}

/* Fixed gap for header */
.dashboard-margin{
    margin-top: var(--navbar-h);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.login-btn {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.login-btn:hover {
  background-color: #0056b3;
}


/*
 -- Product Card design --
*/
.products-container{
  margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.pc-item{
  box-sizing: border-box;
  width: 300px;
  height: 300px;
  margin: 0 20px;
  margin-bottom: 20px;
  align-content: center;
  padding: 20px;
  border-radius: 30px;

}
.pc-item > h2{
  margin-bottom: 10px;
}
.pc-item:first-child{
  border: 1px solid black;
}
.pc-item:nth-child(2){
  background-color: #7932ff;
  color: white !important;
}
.pc-item:last-child{
  background-color: black;
  color: white !important;
}
/* Override text color inside product cards , in this case global h+p tag has a color*/
.pc-item h2, .pc-item p {
    color: inherit !important;
}

/*
 -- End Product Card Design --
*/

/*
 -- Signup Page --
*/
/* Signup Container */

.signup-left-section h1{
    margin-top: 20%;
    margin-left: 10%;
    font-size: 3.80rem;
    line-height: 1.5em;
    letter-spacing: 1.5px;
}

.signup-left-section p{
    margin-left: 10%;
    font-size: 1.5rem;
    line-height: 1.5em;
    letter-spacing: 1px;
}
/* Left Section */
.left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* Takes the full height of the container */
    padding: 50px;
    text-align: left;
}
.left-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.left-content p {
    font-size: 1.2rem;
    line-height: 1.5;
}
/*body { padding-top: var(--navbar-h); }*/
.signup-container {
    margin-top: 0;
    display: flex; /* Makes left & right sections stay in place height: 100vh; */
    min-height: calc(100vh - var(--navbar-h));  /* optional */
    width: 100%;
    background-color: black;
    color: white;
    background-image: linear-gradient(135deg, #0d0d0d, #333);
}
/* Left Section (Text Content) */
.signup-content {
    max-width: 800px;
    text-align: left;
}
/* Form Container */
.form-container {
    margin: auto; /* Center it automatically */
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 500px;
    text-align: center;
}
.signup-form {
    width: 100%;
}
.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.form-container .subtext {
    color: gray;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Scoped styles for the signup form */
.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="checkbox"] {
    width: 100%; /* Ensures it stays within the form */
    max-width: 450px; /* Prevents inputs from becoming too wide */
    height: 45px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease-in-out;
}

/* Focus styles for better UX */
.signup-form input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Style for the checkbox container */
.signup-form .checkbox-container {
    display: flex;
    align-items: center;
    margin-left: 20%;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: center; /* Align checkbox and label vertically */
    gap: 10px; /* Add spacing between the checkbox and label */
    margin-top: 10px; /* Add spacing from the input fields */
}

/* Checkbox */
.checkbox-container input[type="checkbox"] {
    width: auto; /* Prevent the checkbox from inheriting width */
    height: auto; /* Ensure it keeps the default size */
    margin: 0; /* Reset margins */
}
.checkbox-container input {
    margin: 0;
}
.checkbox-container a {
    color: #007bff;
    text-decoration: none;
}
.checkbox-container a:hover {
    text-decoration: underline;
}

/* Button */
.signup-button {
    width: 100%;
    padding: 10px 15px;
    max-width: 450px; /* Prevent button from expanding */
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.signup-button:hover {
    background-color: #0056b3;
}
/*
 -- End Signup Page --
*/

/*
 -- About us page --
 */
/* About Section Container */
.about-container {
    display: flex;
    justify-content: center; /* Centers content horizontally */
    height: 100vh; /* Full viewport height */
    width: 100%;
    background-color: #f9f9f9; /* Light background for readability */
    padding: 150px;
    text-align: center;
}

/* About Content */
.about-content {
    max-width: 900px; /* Prevents text from being too wide */
    text-align: center; /* Ensures text stays centered */
}

/* Main Heading */
.about-content h1 {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.5;
    color: #333; /* Default text color */
}
/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        padding: 20px;
    }
    .about-content h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
}

/* colors */
/* Highlighted Words */
.blue {
    color: #007bff; /* Bootstrap Primary Blue */
    font-weight: bold;
}

.red {
    color: #dc3545; /* Bootstrap Danger Red */
    font-weight: bold;
}

.green {
    color: #28a745; /* Bootstrap Success Green */
    font-weight: bold;
}

.yellow {
    color: #ffc107; /* Bootstrap Warning Yellow */
    font-weight: bold;
}


/* After animation, fade out the neural effect
Fullscreen Neural Effect; used https://mycolor.space/ for gradient color
*/
.neural-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(to right top, #6c3473, #693b7c, #654185, #60488d, #5a4e95, #4b5ca5, #356ab2, #0077bd, #008ec6, #00a1c0, #00b3ad, #1cc192);
    background-size: 300% 300%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.8s ease-out; /* Faster fade out */
}

/* Background moves subtly */
@keyframes backgroundMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.neural-overlay {
    animation: backgroundMove 1.5s infinite alternate ease-in-out; /* Faster movement */
}

/* Dot Grid Container */
.dots-container {
    display: grid;
    grid-template-columns: repeat(15, 1fr); /* More dots per row */
    grid-template-rows: repeat(15, 1fr);    /* More dots per column */
    width: 80vw;
    height: 80vh;
    gap: 8px; /* Smaller spacing */
    position: relative;
}

/* Dots */
.dot {
    width: 5px;  /* Smaller dot size */
    height: 5px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: glow 1s ease-in-out; /* Faster glow */
}

/* Glowing animation in a wave effect */
@keyframes glow {
    0% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 0; transform: scale(1); }
}

/* Fade out effect */
body.loaded .neural-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Page Content (Initially Hidden) */
#page-content {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

/* Show content after animation */
body.loaded #page-content {
    opacity: 1;
}

.signup-content span {
    display: inline-block; /* Needed for animation to work properly */
}
/* Animate */
/*.animate__animated.animate__shakeY {*/
/*    --animate-delay: 0.2s;*/
/*}*/