﻿.error {
    color: red;
    text-align: center;
}

:root {
    --primary: black;
    --primary-dark: #333;
    --secondary: #F4F4F5;
    --accent: #22D3EE;
    --text: #1F2937;
    --text-light: #6B7280;
    --background: #F9FAFB;
    --white: #FFFFFF;
    --border: #9c9d9f;
}

/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
}*/

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-right: 3rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-right: 2rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}

    .nav-links a:hover {
        color: var(--primary);
    }

/*.container {
    background-color: var(--secondary);
    padding: 2rem;
}
*/
.chat-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    border: 1px solid var(--border);
}

.chat-header {
    margin-bottom: 2rem;
    text-align: center;
}

.chat-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}


.model-select {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 12px;
}

    .radio-label input[type="radio"] {
        appearance: none;
        width: 1.25rem;
        height: 1.25rem;
        border: 2px solid var(--primary);
        border-radius: 50%;
        margin: 0;
        cursor: pointer;
        position: relative;
    }

        .radio-label input[type="radio"]:checked::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 0.75rem;
            height: 0.75rem;
            background: var(--primary);
            border-radius: 50%;
        }

.select-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    margin-right: 10px;
    vertical-align: middle;
    align-content: center;
    /*font-weight: bold;*/
}


.role-select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 12px;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
}

.input-label
.role-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.header-menu {
    display: flex;
    flex-direction: column;
}


.chat-messages {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 2rem;
    /*background: var(--secondary);*/
}

.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.message-content {
    max-width: 80%;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.message.assistant .message-content {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    align-self: flex-start;
}

.message .user .message-content {
    background: var(--primary);
    color: var(--white);
    align-self: flex-start;
}

/*.prompt-container {
    position: relative;
    margin-bottom: 2rem;
}*/

/*.prompt-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: border-color 0.2s;
}*/

.prompt-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.send-button {
    position: inherit;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .send-button:hover {
        background: var(--primary-dark);
    }

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-wrap: wrap;
    position: absolute;
    bottom: 5px;
}

.action-button {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .action-button:hover {
        border-color: var(--primary);
        color: var(--white);
        background: var(--primary)
    }

    .action-button svg {
        width: 1rem;
        height: 1rem;
    }

@media (max-width: 640px) {
    .nav-container {
        padding: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .chat-card {
        padding: 1rem;
    }


    .action-buttons {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }
}


.chat-message {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-prompt {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.prompt-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.prompt-content {
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.5;
}

.message-response {
    padding: 20px;
}

.response-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
}

.response-content {
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.6;
}

.section-title {
    font-weight: 600;
    color: #2563eb;
    margin: 20px 0 12px;
}

    .section-title:first-child {
        margin-top: 0;
    }

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .bullet-list li {
        position: relative;
        padding-left: 24px;
        margin-bottom: 12px;
        line-height: 1.5;
    }

        .bullet-list li::before {
            content: "•";
            position: absolute;
            left: 8px;
            color: #2563eb;
            font-weight: bold;
        }

.copy-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .copy-button:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #1e293b;
    }

    .copy-button svg {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }


.chat-model-features {
    margin-right: 1rem;
}

.chat-window {
    margin-left: 1rem;
}


.chat-window {
    display: flex;
    flex-direction: column;
    height: 87vh; /* or any specific height */
    width: -webkit-fill-available;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.prompt-container {
    border-top: 1px solid #e5e7eb;
}

/* Additional styles for your existing elements */
.message-prompt, .message, .copy-button {
    /* Your existing styles */
}

.prompt-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.input-group-feature {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* css styling for loader  */
.linear-loader {
    width: 100%;
    height: 4px;
    background-color: #f3f3f3;
    overflow: hidden;
    position: relative;
}

    .linear-loader::before {
        content: "";
        display: block;
        position: absolute;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: #3498db;
        animation: linear-loading 1.5s infinite;
    }

@keyframes linear-loading {
    0% {
        left: -100%;
        width: 100%;
    }

    50% {
        left: 0;
        width: 100%;
    }

    100% {
        left: 100%;
        width: 10%;
    }
}

.loading.active .linear-loader {
    display: block;
}

.loading .linear-loader {
    display: none;
}

.userBillLayout {
display:flex;
}

.uploadedFiles, .uploadBills {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
}
.uploadedFiles {
    width: 70%;
    padding-left: 20px;
}


.uploadBills {
width:30%;
flex-direction:row;
margin-bottom:10px;
margin-right:10px;
}

.clear {
margin:10px;
}


/* loader.css */
.loader-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8) url('/Images/Gate6LogoAsLoader.png') no-repeat center center;
    /*background-image:rgba(255, 255, 255, 0.8) url('../images/loader.gif') no-repeat center center;*/
    background-size: 100px 100px;
}
