/* Home Page */

/* Base layout */
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #eef3fb, #f7faff);
}

/* Navigation */
nav {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

nav>a {
    border: 2px solid #2563eb;
    color: #2563eb;
    text-decoration: none;
    padding: 8px 14px;
    margin: 0 6px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

nav>a:hover {
    background-color: #2563eb;
    color: #ffffff;
}

nav a.active {
    background: hsla(277, 95%, 26%, 0.302);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Main container */
.container {
    width: 65%;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 40px 35px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Home intro section */
.home-intro {
    text-align: center;
    padding: 2rem;
}

.home-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* animation: fadeInUp 0.8s ease-out; */
}

/* @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .home-description {
        font-size: 1rem;
        padding: 1.5rem;
    }
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
     
}

.site-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.site-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

main {
    max-width: 1200px;
    margin: 3rem auto;
    /* padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); */
    min-height: 400px;
}

@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.8rem;
    }

    nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav a {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    main {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
}

/* Animated background particles */
/* @keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
} */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    /* animation: float 10s ease-in-out infinite; */
}

.logo {
    height: 45px;
}



/* Upload Page */

/* MAIN WRAPPER */
.upload-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

/* Card */
.upload-container {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    padding: 30px;
    width: 80%;
}

.upload-left h2 {
    margin: 0;
    color: #1e3a8a;
}

.upload-left {
    width: 100%;
}

.tagline {
    color: #64748b;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 14px;
}

.info-box {
    color: black;
    background: #eef2ff;
    border-left: 4px solid #4f46e5;
    padding: 14px;
    font-size: 14px;
    /* font-weight: bolder; */
    margin-bottom: 20px;
}

.upload-left input[type="file"] {
    margin-bottom: 20px;
}
.upload-left>p {
    color: black;
}

.upload-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 10px 250px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.upload-btn:hover {
    background: #4f46e5;
}

/* Right Side */
/* .upload-right {
    width: 40%;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    color: black
} */

/* Selected files list */
#fileList {
    margin-top: 15px;
}

/* Single file row */
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #334155;
}

/* File name */
.file-item span:first-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* Remove (X) button */
.remove-btn {
    color: #ef4444;
    font-weight: bold;
    cursor: pointer;
    margin-left: 12px;
}

.remove-btn:hover {
    color: #dc2626;
}

.success-msg {
    background: #ecfdf5;
    color: #065f46;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}


/* Ingest Page */

.file-list li {
    display: flex;
    justify-content: space-between;
    padding-block: 5px;
    padding-inline: 10px;
    margin-bottom: 8px;
    background: #c8c8c8;
    border-radius: 8px;
}


.file-list {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #334155;
    list-style: none;
}



/* Retrieveal Page */

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1f2937;
    text-align: center;
}

/* Search form */
/* .search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
} */

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}


.search-form input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    outline: none;
}

.search-form input:focus {
    border-color: #6366f1;
}

/* Divider */
.divider {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 25px 0;
}

/* Results */
.results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px 18px;
    border-left: 4px solid #6366f1;
}

.result-meta {
    font-size: 13px;
    color: #6b7280;
}

/* Empty state */
.no-results {
    font-size: 15px;
    color: #6b7280;
    margin-top: 10px;
}

.result-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    margin: 0;
}

.chat-block {
    margin-bottom: 35px;
}

.user-question {
    background: #e0e7ff;
    color: black;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 14px;
}
.disclaimer {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 25px;
    text-align: center;
}





/* HITL Review Page */

.review-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.review-card {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.review-title {
    margin-bottom: 20px;
    color: #2d2d2d;
}

.review-section {
    margin-bottom: 25px;
}

.question-box {
    background: #f5f7fb;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
}

.review-textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: monospace;
    font-size: 14px;
    background: #fafafa;
}

.review-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

/* Buttons */

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-approve {
    background: #28a745;
    color: white;
}

.btn-edit {
    background: #007bff;
    color: white;
}

.btn-reject {
    background: #dc3545;
    color: white;
}

.review-alert {
    background: #ffe5e5;
    color: #b00020;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
}