/* Global Font and Background */
body {
    font-family: 'Calibri', sans-serif;
    background-color: #f0f2f5;
    color: #4c4c4c;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



/* Headings */
h1, h2, h3, h4, h5, h6, .card-header {
    color: #03045e;
    font-weight: 700;
}

/* Paragraphs */
p {
    color: #4c4c4c;
}

/* Container Padding */
/* .main-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
} */

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 1rem;
    box-shadow: 0 2px 8px #e2e2e2;
    margin: 0 8px;
    word-break: break-word;
}
.user-bubble {
    background: #b9fbc0;
    color: #254d32;
    border-bottom-right-radius: 6px;
}
.bot-bubble {
    background: #e0e7ff;
    color: #23335a;
    border-bottom-left-radius: 6px;
}
.chat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px #eee;
}
.user-icon {
    margin-left: 6px;
}
.bot-icon {
    margin-right: 6px;
}


/* Cards */
.custom-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    border: none;
    height: 100%;
}

.custom-card-header {
    background-color: #e9ecef;
    padding: 1.5rem 2rem;
    font-size: 1.4em;
    border-bottom: 1px solid #dee2e6;
}

.custom-card-body {
    padding: 2rem;
}

/* Upload Area */
#upload-image {
    width: 100%;
    min-height: 180px;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
}

#upload-image > div {
    border: 3px dashed #e9a770 !important;
    border-radius: 12px !important;
    background-color: #fffaf5 !important;
    color: #4c4c4c !important;
    padding: 20px !important;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

#upload-image > div > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background-color: transparent !important;
}

#upload-image > div:hover {
    background-color: #fcefe0 !important;
    border-color: #d49563 !important;
}

.upload-text {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.5;
    color: inherit;
}

.upload-text a {
    color: #03045e;
    font-weight: 700;
    text-decoration: none;
}

.upload-text a:hover {
    text-decoration: underline;
}

/* Image Preview */
.image-preview-container {
    min-height: 250px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Buttons */
.btn-action {
    background-color: #e9a770 !important;
    border-color: #e9a770 !important;
    color: white !important;
    font-weight: 600;
    font-family: 'Calibri', sans-serif;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    margin: 0.5rem;
}

.btn-action:hover {
    background-color: #d49563 !important;
    border-color: #d49563 !important;
    transform: translateY(-2px);
}

.btn-action:active {
    transform: translateY(0);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Data Table */
.dash-table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dash-spreadsheet-container .dash-spreadsheet-inner th {
    background-color: #03045e;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    padding: 14px 18px;
}

.dash-spreadsheet-container .dash-spreadsheet-inner td {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 14px 18px;
    text-align: left;
    color: #4c4c4c;
}

.dash-spreadsheet-container .dash-spreadsheet-inner tr:nth-child(even) td {
    background-color: #f5f5f5;
}

.dash-spreadsheet-container .dash-spreadsheet-inner tr:hover td {
    background-color: #e0f2f7;
}

/* Mock Table Fallback Styling */
.mock-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mock-table th, .mock-table td {
    border: 1px solid #e0e0e0;
    padding: 14px 18px;
    text-align: left;
    color: #4c4c4c;
}

.mock-table th {
    background-color: #03045e;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
}

.mock-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.mock-table tr:hover {
    background-color: #e0f2f7;
}


.db-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
}

.db-logo-block {
    width: 120px;
    height: 120px;
    border: 2px solid #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    padding: 10px;
}

.db-logo-block:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.db-logo-block.selected {
    border-color: #007bff;
    background-color: #dceeff;
}

.db-logo-img {
    max-width: 60px;
    max-height: 60px;
    margin-bottom: 5px;
}



/* Textracto part */


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f7fa;
}

h1, h2, h3 {
    color: #03045e;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    position: relative;
    padding-bottom: 1rem;
}



p, label {
    color: #4c4c4c;
    font-size: 0.95rem;
}

.custom-button {
    background: linear-gradient(135deg, #e9a770, #d8965f) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(233, 167, 112, 0.2) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.custom-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(233, 167, 112, 0.3) !important;
    background: linear-gradient(135deg, #d8965f, #e9a770) !important;
}

.custom-button:disabled {
    background: #cccccc !important;
    transform: none !important;
    box-shadow: none !important;
}

.container-style {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 700px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.container-style:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.upload-area {
    border: 2px dashed #e9a770 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    text-align: center !important;
    background-color: #fff9f5 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    background-color: #fff0e6 !important;
    border-color: #d8965f !important;
}

.upload-icon {
    font-size: 2.5rem;
    color: #e9a770;
    margin-bottom: 1rem;
}

.pdf-viewer-container {
    height: 500px;
    width: 100%;
    margin: 1rem 0;
}

.pdf-preview {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

.status-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.status-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #03045e;
}

.form-control {
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: #e9a770 !important;
    box-shadow: 0 0 0 0.2rem rgba(233, 167, 112, 0.25) !important;
}

.table-container {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dash-table-container {
    border-radius: 12px;
    overflow: hidden;
}

.dash-table-container .dash-spreadsheet-container {
    border-radius: 12px;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td,
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
    border: none !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner tr:nth-child(even) {
    background-color: #f8f9fa;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
    background-color: #03045e !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 1rem !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td {
    padding: 1rem !important;
}

.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.status-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    z-index: 1;
}

.button-container {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    z-index: 1;
}

.detection-input-container {
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
