:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary-gradient: linear-gradient(135deg, #ff0099, #ff6600);
    --background-light: #f4f6f9;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --white: #ffffff;
    --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: white;
    box-shadow: var(--shadow-subtle);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 50px;
}

.navbar-logo {
    font-size: 1.5em;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
}

.navbar ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.navbar li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s ease;
}

.navbar li a:hover {
    color: #6a11cb;
}

.signup-btn {
    background: var(--secondary-gradient);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.signup-btn:hover {
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    background-image: url('/assets/images/voice wave.gif');
    color: var(--white);
    text-align: center;
    padding: 80px 20px; /* Reduced padding */
    margin-top: 0;
    position: relative;
    overflow: hidden;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
}

.hero h2 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero .highlight {
    background: var(--secondary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.hero .btn-group button {
    background: var(--secondary-gradient);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero .btn-group button:hover {
    transform: translateY(-3px);
}


/* Document QA Container */
.document-qa-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 10%;
    margin-top: 30px;
}

/* Upload Section */
.upload-section {
    width: 40%;
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed transparent; /* Set transparent border */
    border-radius: 15px;
    padding: 40px;
    cursor: pointer;
    background: var(--background-light);
    transition: background-color 0.3s ease;
    position: relative;
}

/* Dashed Gradient Border */
.drop-zone::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, #ff0099, #ff6600);
    mask: 
        linear-gradient(135deg, #000 0%, #000 100%) content-box, 
        linear-gradient(135deg, #000 0%, #000 100%);
    -webkit-mask: 
        linear-gradient(135deg, #000 0%, #000 100%) content-box, 
        linear-gradient(135deg, #000 0%, #000 100%);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Drop Zone Hover */
.drop-zone:hover {
    background-color: #fffefefb;
}

.drop-zone p {
    font-size: 16px; /* Adjust font size */
    font-family: "Arial", sans-serif; /* Change font style */
    font-weight: bold; /* Make text bold */
    font-style: italic; /* Make text italic */
    color: var(--text-secondary);
    margin-bottom: 10px;
}
/* Browse Files Button */
.drop-zone button {
    background: var(--secondary-gradient);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.drop-zone button:hover {
    transform: translateY(-3px);
}

/* Uploaded Files */
.uploaded-files {
    margin-top: 20px;
    text-align: left;
}

.uploaded-files p {
    background: #f4f6f9;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Chat Section */
.chat-section {
    width: 55%;
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    justify-content: space-between;
}


/* Chat Messages */
.welcome-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 10px;
}

/* Chat Container */
.chat-container {
    height: 350px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    background: var(--background-light);
    display: flex;
    flex-direction: column;
}

/* User message */
.user-message {
    display: flex;
    align-items: flex-end; /* Ensures everything aligns to the right */
    margin-left: auto; /* Push it to the right */
    width: fit-content;
    max-width: 100%;
}
.user-message .message-text {
    background-color: var(--background-light);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 10px;
    word-wrap: break-word;
    max-width: 100%;
}

.user-message .message-avatar {
    width: 30px;
    height: 30px;
    background-image: url("C:/Projects/PocLab/user_logo.png");
    background-size: cover;
    background-position: center;
    border-radius: 80%;
    margin-top: 10px; /* Space between text and avatar */
    align-self: flex-end; /* Avatar positioned at bottom right */
}


/* Bot message */
.bot-message {
    align-self: flex-start; /* Position on left side */
    margin-right: auto; /* Push bot message to the left */
    width: fit-content;
    max-width: 100%;
}

.bot-message .message-text {
    background-color: #f4f6f9;
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 10px;
    max-width: calc(100% - 40px); /* Leave space for avatar */
    word-wrap: break-word;
    order: 1; /* Text first */
}

.bot-message .message-avatar {
    width: 30px;
    height: 30px;
    background-image: url("C:/Projects/PocLab/bot_logo.png");
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin-right: 10px; /* Space between avatar and text */
    order: 2; /* Avatar second */
    align-self: flex-start; /* Position avatar at the bottom left */
}

/* Question Input Section */
.question-input {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.question-input input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

.question-input button {
    background: var(--secondary-gradient);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.question-input button:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .document-qa-container {
        flex-direction: column;
        padding: 20px;
    }

    .upload-section,
    .chat-section {
        width: 100%;
    }

    .chat-container {
        height: 300px;
    }
}


/* Add this to your CSS */
.document-content {
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words if needed */
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 300px; /* Adjust height as needed */
    padding-right: 10px; /* Add padding for scrollbar */
  }


  .file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 12px; /* Reduced font size */
}

.file-item span {
    flex-grow: 1;  /* Allows text to take available space */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-btn {
    background: white;
    color: black;
    border: none;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 10px; /* Smaller button text */
}

/* submit Files Button */
.btn-primary-1 {
    background: var(--secondary-gradient);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-primary-1:hover {
    transform: translateY(-3px);
}
