/* Main Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0; 
    background: linear-gradient(to right, rgba(118, 15, 229, 0.5), rgba(42, 120, 255, 0.5), rgba(255, 126, 179, 0.5)); 
}

/* Background Video */
#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(50%); /* Darkens the video for better readability */
}

/* Letter-by-Letter Text Animation */
#animatedText1, #animatedText2 {
    font-size: 40px;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    color: white;
    text-align: center;
    overflow: hidden;
    white-space: normal; /* Allows text wrapping */
    max-width: 400px; /* Set maximum width for wrapping */
    margin: 0 auto; /* Centers the text */
    word-wrap: break-word; /* Ensures words break if needed */
    margin-top: 100px;
    margin-left: 50px;
}

#animatedText1 {
    line-height: 1.5; /* Increases space between wrapped lines */
    margin-bottom: 20px; /* Adds space below the first line */
}

#animatedText2 {
    font-size: 1.8rem;
    font-style: italic;
    color: #f8f8f8;
    line-height: 1.5; /* More spacing for readability */
    margin-top: 10px;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(to bottom, #760fe5, #2a78ff, #ff7eb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Extra Text (Initially Hidden) */
#extraText {
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    margin-top: 100px;
    margin-left: 50px;
    max-width: 500px;
    line-height: 1.3;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Navbar */
nav {
    background: linear-gradient(to right, #760fe5, #2a78ff, #ff7eb3);
    padding: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 20px 20px;
    position: relative;
}

nav ul li a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500px;
    display: flex;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
}

nav ul li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav ul li:hover {
    transform: translateY(-5px);
}

nav ul li:hover::after {
    transform: scaleX(1);
}

/* Home Page */
#home textarea {
    width: 100%;
    height: 100px;
    margin-top: 10px;
}

/* Align Login & Signup to the Right */
.auth-links {
    margin-left: auto;  /* Push to the right */
    display: flex;
}

.auth-links li {
    list-style: none;
    margin-left: 15px;
}

.auth-links li a {
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

/* Signup Button */
.signup-btn {
    background: linear-gradient(to right, #760fe5, #2a78ff);
    padding: 8px 18px;
    border-radius: 5px;
    color: white !important;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.signup-btn:hover {
    background: linear-gradient(to right, #5a0dcf, #206de0);
}


/* Diagnosis Page Styles */
#diagnosis {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#symptomsInput {
    width: 500px;
    max-width: 100%;
    height: 120px;
    margin-top: 10px;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: block;
    margin-left: auto;
    margin-right: auto;
    resize: none;
}

button {
    background: linear-gradient(to right, #760fe5, #2a78ff);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
}

button:hover {
    background: linear-gradient(to right, #5a0dcf, #206de0);
}

/* Diagnosis Result Section */
#resultSection {
    margin-top: 20px;
    padding: 15px;
    display: none;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Appointments Page */
#appointmentHistory {
    width: 60%;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#appointmentHistory h2 {
    text-align: center;
    color: #333;
}

.appointment-box {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.appointment-box h3 {
    margin-bottom: 10px;
    color: #444;
}

.appointment-box h3 i {
    margin-right: 8px;
    color: #760fe5;
}

/* Current & Past Appointments List */
#currentList, #historyList {
    list-style: none;
    padding: 0;
}

#currentList li, #historyList li {
    padding: 10px;
    margin: 5px 0;
    background: #ffffff;
    border-left: 5px solid #2a78ff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#historyList li {
    border-left: 5px solid #760fe5;
}

/* No Current Appointments Message */
.no-appointments {
    text-align: center;
    font-size: 16px;
    color: #2a78ff;
    font-weight: bold;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 5px;
}

/* Signup Page Styling */
.signup-container {
    width: 350px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 100px auto;
}

.signup-container h2 {
    margin-bottom: 15px;
    color: #333;
}

.signup-container input {
    width: 90%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Error Message */
.error-msg {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Login Page Styling */
.login-container {
    width: 350px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 100px auto;
}

.login-container h2 {
    margin-bottom: 15px;
    color: #333;
}

.login-container input {
    width: 90%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
/* Error Message */
.error-msg {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* About Page Styling */
.about-container {
    max-width: 800px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.about-container h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.about-container p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
}

.about-container ul {
    justify-content: center;
    padding-left: 20px;
    margin-top: 20px;
}

.about-container ul li {
    font-size: 1.1rem;
    margin: 10px 0;
}

.team {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.team-member {
    text-align: center;
    width: 150px;
}

.team-member img {
    width: 120px; /* Set a fixed width */
    height: 120px; /* Set a fixed height */
    object-fit:fill; /* Ensures images are properly scaled */
    border-radius: 50%;
    border: 3px solid #760fe5;
}


.team-member p {
    margin-top: 10px;
    font-size: 1rem;
    color: #444;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.category-btn {
    background: white;
    color: black;
    padding: 12px 20px;
    border: 2px solid black;  /* ✅ Ensures a visible border */
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s ease-in-out;
}

.category-btn:hover {
    background: linear-gradient(to right, #5a0dcf, #206de0);
    color: white;
}

/* ✅ When a button is clicked, change its color */
.category-btn.active {
    background: green;
    color: white;
    border-color: green;
}

/* Body Styling with Animated Illusion Background */
body {
    animation: illusionBackground 10s infinite linear;
    color: black;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0; 
    background: linear-gradient(to right, rgba(118, 15, 229, 0.5), rgba(42, 120, 255, 0.5), rgba(255, 126, 179, 0.5)); 
}


/* Doctor List */
#doctor-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Doctor Card */
.doctor-card {
    background: white;
    color: black;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.doctor-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(72, 191, 145, 0.5);
}

/* Doctor Profile Image */
.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid #238636;
}

/* Contact Button */
.contact-btn {
    background: linear-gradient(to right, #5a0dcf, #206de0);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

.contact-btn:hover {
    background: linear-gradient(to right, #2ea043, #1f8b4c); /* Greenish gradient on hover */

}

/* Filters Section */
.filters {
    margin: 20px 0;
}

/* Dropdown Box Styling */
.select-container {
    display: inline-block;
    position: relative;
}

.select-container select {
    padding: 10px;
    background-color: white;
    color:black;
    border: 2px solid #238636;
    border-radius: 5px;
    font-size: 16px;
    appearance: none;
    cursor: pointer;
}

/* Custom dropdown arrow */
.select-container::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #c9d1d9;
    pointer-events: none;
}
