/* Add color variables at the top of the file */
:root {
    --indigo-50: #eef2ff;   /* Very light indigo - Backgrounds */
    --indigo-100: #e0e7ff;  /* Light indigo - Borders */
    --indigo-200: #c7d2fe;  /* Light indigo accents */
    --indigo-600: #4f46e5;  /* Primary button color */
    --indigo-700: #4338ca;  /* Button hover color */
    --indigo-900: #312e81;  /* Dark indigo - Header gradient end */
    --indigo-950: #1e1b4b;  /* Very dark indigo - Header gradient start */
    --success-green: #16a34a; /* Success button color */
    --success-green-hover: #15803d; /* Success button hover color */
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    margin: 5px 20px 20px 20px;
    padding: 0;
    background-color: #ffffff;
}

.controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
    position: relative;
    max-width: 1200px;
    width: 90%;
}

.data-source {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 25px;
    font-size: 18px;
}

.data-source a {
    color: #007BFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.data-source a:hover {
    text-decoration: underline;
    background-color: rgba(0, 123, 255, 0.1);
}

.data-source .material-icons {
    font-size: 20px;
    color: #007BFF;
    min-width: 20px;
    display: inline-block;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    height: 36px;
    box-sizing: border-box;
}

.custom-file-upload:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mfFileNameDisplay {
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
    color: #555;
    font-weight: bold;
    visibility: hidden;
    height: 1.5em;
}

button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
}

button:hover {
    background-color: #45a049;
}

#copyButton {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    visibility: hidden;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#copyButton.active {
    visibility: visible;
    opacity: 1;
    cursor: pointer;
}

#copyButton:hover {
    background-color: #0069d9;
}

.container {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    max-width: 1200px;
    width: 60%;
    padding: 0;
    box-sizing: border-box;
}

.data-display-header {
    text-align: left;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background-color: #1E90FF;
    padding: 8px 12px;
    border-radius: 5px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.output-container, .analysis-container {
    width: 35%;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    height: 330px;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 0;
}

#outputContainer {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    font-family: monospace;
    word-break: keep-all;
    overflow: auto;
    max-height: 100%;
    width: 100%;
}

.analysis-container {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    height: 460px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#aiAnalyzerButton {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background-color: #1e40af;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    height: 36px;
    box-sizing: border-box;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    opacity: 0.5;
    pointer-events: none;
}

#aiAnalyzerButton.active {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

#aiAnalyzerButton:hover.active {
    background-color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

#aiAnalyzerButton .material-icons {
    font-size: 20px;
}

.markdown-output {
    white-space: pre-wrap;
    word-break: break-word;
}

#analysisResult {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 15px;
}

#analysisResult h1 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
}

#analysisResult h2 {
    font-size: 1.5em;
    color: #444;
    margin: 12px 0;
}

#analysisResult h3 {
    font-size: 1.2em;
    color: #555;
    margin: 10px 0;
}

#analysisResult ul {
    margin: 10px 0;
    padding-left: 20px;
}

#analysisResult li {
    margin: 5px 0;
}

#analysisResult strong {
    color: #1E90FF;
}

#analysisResult .numbered-item {
    margin: 10px 0;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.file-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: -5px;
    justify-content: flex-start;
    align-items: center;
}

.button-row .control-button {
    height: 36px !important;
    min-height: 36px !important;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    top: 0;
}

.button-row .control-button .button-icon {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
}

.button-row .control-button .material-icons {
    font-size: 18px;
    margin-right: 4px;
    line-height: 1;
}

.button-row .control-button .button-text {
    margin-left: 4px;
    line-height: 1;
}

.sheet-name-input {
    display: flex;
    gap: 5px;
}

.sheet-name-input input {
    padding: 8px 12px;
    border: 1px solid #007BFF;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    height: 36px;
    box-sizing: border-box;
    min-width: 80px;
    max-width: 200px;
    flex: 1;
}

.sheet-name-input input[type="date"] {
    min-width: 120px;
    width: auto;
}

.sheet-name-input input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

#downloadButton {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    height: 36px;
    box-sizing: border-box;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#downloadButton:not(:disabled) {
    background-color: #0056b3;
}

#downloadButton:hover:not(:disabled) {
    background-color: #004494;
}

#downloadButton:active:not(:disabled) {
    background-color: #004494;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#downloadButton .material-icons {
    font-size: 18px;
}

.analyzer-controls {
    width: 62%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    margin-bottom: 0;
    position: relative;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
}

.data-table th {
    background-color: var(--indigo-50);
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 6px;
    text-align: left;
    border: 1px solid #dee2e6;
    white-space: nowrap;
    font-weight: 600;
    color: var(--indigo-900);
}

.data-table td {
    padding: 4px 6px;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.data-table tr:nth-child(even) {
    background-color: var(--indigo-50);
}

.data-table tr:hover {
    background-color: #f2f2f2;
}

.expand-icon {
    position: relative;
    color: #1a1a1a;
    cursor: pointer;
    display: none;
    padding: 8px;
}

.expand-icon.active {
    display: inline-block;
}

.expand-icon:hover {
    color: #000000;
}

.expand-icon .material-icons {
    font-size: 18px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    height: 90%;
    margin: 2% auto;
    padding: 10px;
    padding-top: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: fixed;
    top: calc(2% + 12px);
    right: calc(5% + 12px);
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1002;
}

.close-modal:hover {
    background-color: #cc0000;
}

.modal-table-container {
    height: calc(100% - 40px);
    overflow: auto;
    position: relative;
    z-index: 1000;
    margin-top: 10px;
}

.output-container {
    position: relative;
}

.filter-container {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    background-color: white;
    padding: 4px;
}

.filter-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px !important;
}

.sortable:hover {
    background-color: #e9ecef;
}

.sortable::after {
    content: '↕';
    position: absolute;
    right: 8px;
    color: #999;
}

.sortable.asc::after {
    content: '↑';
    color: #1E90FF;
}

.sortable.desc::after {
    content: '↓';
    color: #1E90FF;
}

.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 5px 0;
    min-width: 150px;
    z-index: 1002;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

.context-menu-separator {
    height: 1px;
    background-color: #ddd;
    margin: 5px 0;
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    display: none;
}

.context-menu-item.has-submenu:hover .submenu {
    display: block;
}

.instruction-note {
    color: #666;
    font-size: 13px;
    padding: 5px 20px;
    margin: 5px 0;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Arial', sans-serif;
}

.data-table th {
    padding: 6px;
    font-size: 13px;
}

.data-table td {
    padding: 4px 6px;
}

.reset-filter {
    position: fixed;
    top: calc(2% + 60px);
    right: calc(5% + 20px);
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1002;
}

.reset-filter:hover {
    background-color: #5a6268;
}

.column-filtered::after {
    content: '🔍';
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    vertical-align: middle;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.bank-tooltip {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1003;
    max-width: 400px;
    font-size: 12px;
    display: none;
}

.bank-tooltip-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.bank-tooltip-row:last-child {
    border-bottom: none;
}

.bank-tooltip-label {
    font-weight: bold;
    margin-right: 15px;
    color: #444;
    min-width: 120px;
}

.bank-tooltip-value {
    text-align: right;
    color: #666;
}

.bank-details-modal {
    position: fixed;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 12px;
    z-index: 1004;
    max-width: 400px;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bank-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 12px;
}

.bank-details-table tr {
    border: 1px solid #ddd;
}

.bank-details-table tr:nth-child(even) {
    background-color: #e8f5e9 !important;
}

.bank-details-table td {
    padding: 4px 8px;
    border: 1px solid #ddd;
    font-weight: normal;
}

.bank-details-modal h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
    padding-right: 20px;
}

.bank-details-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.bank-details-close:hover {
    color: #ff4444;
}

.output-container .data-table {
    font-size: 10px;
}

.output-container .data-table th,
.output-container .data-table td {
    padding: 2px 4px;
    font-size: 10px;
}

.column-filtered {
    position: relative;
}

.column-filtered::before {
    content: '🔍';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.context-menu-close {
    position: absolute;
    top: 2px;
    right: 2px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    padding: 2px;
    line-height: 1;
}

.context-menu-close:hover {
    color: #ff4444;
}

.data-table tr:nth-child(even) {
    background-color: #e3f2fd !important;
}

.bank-details-table tr:nth-child(even) {
    background-color: #e8f5e9 !important;
}

.data-table tr:hover {
    background-color: #f2f2f2;
}

.header-actions {
    padding: 5px 20px;
    display: flex;
    justify-content: flex-end;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    margin-top: -5px;
}

#generatePdfButton {
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    opacity: 0.5;
    pointer-events: none;
    visibility: hidden;
    position: absolute;
    right: 65px;
    top: 30px;
    margin: 0;
    z-index: 2;
}

#generatePdfButton.active {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    visibility: visible;
}

#generatePdfButton:hover.active {
    background-color: #f57c00;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

#generatePdfButton .material-icons {
    font-size: 16px;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 20px);
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    background: #f0f7ff;
    padding: 0 8px;
    margin-bottom: 1px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 20px;
    border: none;
    background: #f0f7ff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1e40af;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #1e40af;
    background-color: #e1f0ff;
}

.tab-button.active {
    color: #1e40af;
    background-color: #e1f0ff;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1E90FF;
}

.tab-button .material-icons {
    font-size: 18px;
}

.tab-content {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.tab-pane {
    display: none;
    height: calc(100% - 10px);
    width: 100%;
    padding: 2px;
    margin: 0;
    box-sizing: border-box;
}

.tab-pane.active {
    display: block;
    width: 100%;
}

.chat-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-style: italic;
}

.chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    width: 100%;
    padding: 10px;
    margin: 0;
    box-sizing: border-box;
}

.chat-messages {
    height: calc(100% - 48px);
    overflow-y: auto;
    padding: 5px;
}

.chat-message {
    margin-bottom: 4px;
    max-width: 80%;
    padding: 6px 12px;
    position: relative;
    font-size: 13px;
}

.user-message {
    background-color: #e3f2fd;
    color: #000;
    margin-left: auto;
    border-radius: 15px 15px 2px 15px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.ai-message {
    background-color: transparent;
    color: #000;
    margin-right: auto;
    padding-left: 0;
}

.system-message {
    background-color: #fff3e0;
    color: #666;
    text-align: center;
    margin: 10px auto;
    font-style: italic;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
}

.chat-input-container {
    display: flex;
    gap: 8px;
    padding: 5px;
    margin-top: 5px;
    background: transparent;
    border-top: none;
    align-items: center;
    margin-bottom: 4px;
}

#messageInput {
    flex: 1;
    padding: 6px 12px;
    height: 24px;
    resize: none;
    line-height: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: #f0f7ff;
}

#messageInput:focus {
    outline: none;
    border-color: #90caf9;
    background-color: #fff;
}

#messageInput::placeholder {
    color: #9e9e9e;
}

.chat-send-button {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background-color: #007bff;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.chat-send-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 123, 255, 0.3);
}

.chat-send-button:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chat-send-button .material-icons {
    font-size: 18px;
}

.message-time {
    display: none;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.message-content {
    line-height: 1.4;
}

.message-content h1 {
    font-size: 15px;
    margin: 6px 0;
    color: #002147;
    font-weight: 600;
}

.message-content h2 {
    font-size: 14px;
    margin: 4px 0;
    color: #444;
}

.message-content h3 {
    font-size: 13px;
    margin: 2px 0;
    color: #555;
}

.message-content p {
    margin: 4px 0;
}

.message-content ul, .message-content ol {
    margin: 4px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 2px 0;
}

.message-content code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

.message-content pre {
    background-color: #f5f5f5;
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 4px 0;
}

.message-content blockquote {
    border-left: 3px solid #ddd;
    margin: 4px 0;
    padding-left: 8px;
    color: #666;
}

.message-content a {
    color: #007bff;
    text-decoration: none;
}

.message-content a:hover {
    text-decoration: underline;
}

.data-display-header .material-icons {
    margin-top: 2px;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
}

#analysis {
    position: relative;
    padding-top: 45px;
}

#analysisResult {
    flex-grow: 1;
    padding: 5px 10px;
    margin-top: -15px;
    width: 100%;
    height: 100%;
    padding: 10px;
    margin: 0;
    box-sizing: border-box;
}

#generatePdfButton {
    margin: -10px 0 0 0;
    top: 25px;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 20px);
}

.tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    background: #f0f7ff;
    padding: 0 8px;
    margin-bottom: 1px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

#analysis #analysisResult {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    padding: 12px;
}

#analysis #analysisResult h1 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 12px;
}

#analysis #analysisResult h2 {
    font-size: 1.3em;
    color: #444;
    margin: 10px 0;
}

#analysis #analysisResult h3 {
    font-size: 1.1em;
    color: #555;
    margin: 8px 0;
}

#analysis #analysisResult ul {
    margin: 8px 0;
    padding-left: 16px;
}

#analysis #analysisResult li {
    margin: 4px 0;
    font-size: 0.95em;
}

#analysis #analysisResult .numbered-item {
    margin: 8px 0;
    padding: 4px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Styles for the data table tab */
.data-table-container {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

.data-table-container pre {
    margin-top: 0;
    height: calc(100% - 28px);
    overflow: auto;
}

.mf-console-container {
    width: 65%;
    height: 200px;
    border: 1px solid var(--indigo-100);
    border-radius: 5px;
    background-color: white;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#mfProcessButton {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background-color: #1e40af;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#mfProcessButton:hover {
    background-color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

#mfProcessButton:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Base button styles */
button.control-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 14px !important;
    border: 1.5px solid var(--indigo-600) !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    background-color: transparent !important;
    color: var(--indigo-600) !important;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    font-size: 13px !important;
    height: 32px !important;
    box-shadow: none !important;
}

/* Hover state */
button.control-button:hover:not(:disabled) {
    background-color: var(--indigo-600) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Active/focus state */
button.control-button:active:not(:disabled) {
    transform: translateY(0) !important;
}

/* Disabled state */
button.control-button:disabled {
    background-color: transparent !important;
    border-color: #94a3b8 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* Special handling for the download button */
#downloadButton2 {
    border: 1.5px solid #64748b !important;
    color: #64748b !important;
    background-color: transparent !important;
    cursor: not-allowed !important;
}

#downloadButton2.active {
    cursor: pointer !important;
}

#downloadButton2.active:not([disabled]) {
    background-color: #bbf7d0 !important;
    border: 1.5px solid var(--indigo-600) !important;
    color: var(--indigo-600) !important;
}

#downloadButton2.active:not([disabled]):hover {
    background-color: #86efac !important;
    border: 1.5px solid var(--indigo-600) !important;
    color: var(--indigo-600) !important;
}

#downloadButton2.disabled,
#downloadButton2[disabled] {
    background-color: transparent !important;
    border: 1.5px solid #64748b !important;
    color: #64748b !important;
    cursor: not-allowed !important;
}

/* Icon styles */
button.control-button svg,
button.control-button .material-icons {
    width: 16px !important;
    height: 16px !important;
    transition: all 0.2s ease !important;
    stroke: currentColor !important;
}

/* Adjust icon color on hover */
button.control-button:hover:not(:disabled) svg,
button.control-button:hover:not(:disabled) .material-icons {
    color: white !important;
    stroke: white !important;
}

/* Secondary button styles */
.button-row.secondary-buttons button.control-button {
    border-width: 1px !important;
    padding: 4px 12px !important;
    height: 28px !important;
    font-size: 12px !important;
}

/* Legend button specific style */
#legendButton {
    border-color: var(--indigo-600);
    color: var(--indigo-600);
}

#legendButton:hover {
    background-color: var(--indigo-600);
    color: white;
}

/* Models button specific style */
#placeholderBtn1 {
    border-color: var(--indigo-600);
    color: var(--indigo-600);
}

#placeholderBtn1:hover {
    background-color: var(--indigo-600);
    color: white;
}

/* Override for file input label */
label.control-button {
    margin: 0;
    height: 32px;
    display: inline-flex;
}

/* Ensure SVG icons in buttons maintain proper color */
.control-button svg {
    stroke: currentColor;
}

.file-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 3px;
    width: 100%;
    margin: 0;
}

.mf-console-container {
    width: 65%;
    height: 200px;
    border: 1px solid var(--indigo-100);
    border-radius: 5px;
    background-color: white;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    max-width: 1200px;
    width: 60%;
    padding: 0;
    box-sizing: border-box;
}

.analysis-container {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    height: 460px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

hr {
    max-width: 1200px;
    width: 90%;
    margin: 20px auto;
    border: none;
    border-top: 2px solid #e0e0e0;
}

.console-header {
    position: sticky;
    top: 0;
    background: var(--indigo-50);
    z-index: 1;
    border-bottom: 1px solid var(--indigo-100);
    padding: 4px 12px;
    font-weight: 500;
    font-size: 13px;
    color: var(--indigo-900);
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

/* Console Header Icons */
.console-header .expand-icon {
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.console-header .expand-icon .material-icons {
    font-size: 18px;
    color: var(--indigo-600);
}

.console-header .expand-icon:hover {
    background-color: var(--indigo-100);
}

/* Adjust the console output top spacing to match new header size */
#mfConsoleOutput {
    padding: 4px 0;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.5;
    background-color: white;
}

#mfConsoleOutput div {
    padding: 6px 12px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

#mfConsoleOutput div:last-child {
    border-bottom: none;
}

#mfConsoleOutput div:hover {
    background-color: #f9fafb;
}

/* Modal Logs Container */
.modal-logs-container {
    padding: 0 !important;
}

.modal-logs-container div {
    padding: 6px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-logs-container div:last-child {
    border-bottom: none;
}

.modal-logs-container div:hover {
    background-color: #f9fafb;
}

/* Mobile-specific styles for file controls */
@media (max-width: 768px) {
    .file-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        padding: 8px;
    }

    .sheet-name-input {
        flex: 1;
        min-width: 280px;
        justify-content: flex-start;
    }

    .custom-file-upload {
        padding: 8px;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .custom-file-upload .button-text {
        display: none;
    }

    .custom-file-upload .material-icons {
        margin: 0;
    }
}

.stats-container {
    margin: 5px auto;
    background-color: white;
    border: none;
    border-radius: 5px;
    padding: 2px 6px;
    width: 80%;
    max-width: 1400px;
    padding-left: 48px;
    position: relative;
}

/* Primary table styles */
.stats-container .stats-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    table-layout: fixed;
    border: 1px solid var(--indigo-100);
}

/* Column width definitions - using a more specific selector */
.stats-container .stats-table tr > td:nth-child(1),
.stats-container .stats-table tr > td:nth-child(3) {
    width: 32%;
    padding-right: 8px;
    text-align: left;
}

.stats-container .stats-table tr > td:nth-child(2),
.stats-container .stats-table tr > td:nth-child(4) {
    width: 18%;
    text-align: center;
    padding: 2px 6px;
}

/* Cell styles */
.stats-container .stats-table td {
    padding: 2px 3px;
    vertical-align: middle;
    height: 24px;
    border: 1px solid #e5e7eb !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Label styles */
.stats-container .stats-table .stats-label {
    color: #475569;
    font-weight: 500;
    font-size: 12px;
}

/* Value styles */
.stats-container .stats-table .stats-value-numeric {
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--indigo-700) !important;
    border: 1px solid #e5e7eb !important;
}

/* Mobile-specific styles for stats table */
@media (max-width: 768px) {
    .stats-container {
        width: 90%;
        padding: 2px 0;
        margin: 5px auto;
        -webkit-overflow-scrolling: touch;
    }

    .stats-table td {
        white-space: nowrap;
        padding: 2px 6px;
    }

    .stats-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
        pointer-events: none;
        opacity: 0.8;
    }
}

/* ===================================================
   STYLES EXTRACTED FROM INDEX.HTML
   =================================================== */

/* Stats Display Styles */
#totalValueDisplay,
#recordCountDisplay {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--indigo-700) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

body {
    background-color: #ffffff !important;
}

.stats-container {
    margin: 5px auto;
    background-color: white;
    border: none;
    border-radius: 5px;
    padding: 2px 6px;
    width: 80%;
    max-width: 1400px;
    padding-left: 48px;
}

.file-info-container {
    /* Remove all styles */
}

.file-info-table {
    /* Remove all styles */
}

.file-info-table td {
    /* Remove all styles */
}

#fileNameDisplay {
    /* Remove all styles */
}

.stats-table,
.file-info-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    table-layout: fixed;
    border-spacing: 0;
}

/* Stats Table Cell Styles */
.stats-table td {
    padding: 2px 3px;
    vertical-align: middle;
    height: 24px;
    border: 1px solid #e5e7eb !important;
}

/* Adjust column widths specifically */
.stats-table td:nth-child(1) {
    width: 20%;
}

.stats-table td:nth-child(2) {
    width: 20%;
}

.stats-table td:nth-child(3) {
    width: 40%;
}

.stats-table td:nth-child(4) {
    width: 20%;
}

.stats-label {
    padding: 2px 3px;
    color: #475569;
    font-weight: 500;
    font-size: 12px;
    white-space: normal;
    width: auto;
}

/* Special handling for model name labels that can be long */
#geminiModelLabel, #geminiSchemaLabel {
    white-space: normal;
    line-height: 1.2;
    height: auto;
    min-height: 24px;
    padding: 4px;
}

.stats-value {
    padding: 2px 3px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--indigo-700);
    width: auto;
}

.stats-value-numeric {
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    color: var(--indigo-700) !important;
    padding: 2px 3px !important;
    display: table-cell !important;
    vertical-align: middle !important;
    width: 100% !important;
}

/* Override any potential conflicting styles */
.stats-table td.stats-value-numeric {
    text-align: center !important;
    width: auto !important;
}

#totalValueDisplay,
#recordCountDisplay,
#diffAmtDisplay,
#totalQuantityDisplay,
#schemaAnalysisDisplay,
#geminiSchemaDisplay,
#openAITotalValueDisplay,
#geminiTotalValueDisplay,
#investmentStyleDisplay,
#performanceScoreDisplay {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* File Display Styles */
#fileNameDisplay {
    /* Remove all styles */
}

.file-info-table td:first-child {
    width: 100px;
    color: #475569;
    font-size: 14px !important;
    font-weight: 500;
    padding: 2px 4px;
    vertical-align: middle;
}

/* Remove all other conflicting styles */
#totalValueContainer,
#totalValueContainer .file-display-header,
#totalValueDisplay,
#recordCountDisplay,
.value-display-row {
    /* Reset any previously set styles */
    all: unset;
}

/* Console Styles */
.mf-console-container {
    margin-top: 10px;
    position: relative;
    z-index: 0;
    margin-bottom: 2px;
}

.console-header {
    position: sticky;
    top: 0;
    background: var(--indigo-50);
    z-index: 1;
    border-bottom: 1px solid var(--indigo-100);
    padding: 4px 12px;
    font-weight: 500;
    font-size: 13px;
    color: var(--indigo-900);
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

/* Console Header Icons */
.console-header .expand-icon {
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.console-header .expand-icon .material-icons {
    font-size: 18px;
    color: var(--indigo-600);
}

.console-header .expand-icon:hover {
    background-color: var(--indigo-100);
}

/* Logs Modal */
#logsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#logsModal .modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Logs Modal Details */
#logsModal .close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    padding: 8px;
    border-radius: 4px;
}

#logsModal .close-modal:hover {
    background-color: #f0f0f0;
    color: #333;
}

#logsModal .modal-logs-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    font-family: monospace;
    white-space: pre-wrap;
    background-color: #fff;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Form Control Styles */
.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 12px;
    margin-bottom: 0;
}

.form-group input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    height: 28px;
}

.form-group input:focus {
    border-color: #007BFF;
    outline: none;
}

.form-group input::placeholder {
    color: #999;
}

.form-select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    height: 28px;
    width: 100%;
    background-color: white;
}

.form-select:focus {
    border-color: #007BFF;
    outline: none;
}

/* Models Form Styles */
#modelsForm .control-button {
    height: 32px;
    min-width: 80px;
    background-color: #1e40af;
}

#modelsForm #cancelModels {
    background-color: #6B7280;
}

#modelsForm .control-button:hover {
    opacity: 0.9;
}

/* Override Button Styles */
#overrideButton {
    background-color: #6c757d;
}

#overrideButton:hover {
    background-color: #5a6268;
}

/* Override Modal Styles */
#overrideModal {
    display: none;
}

.override-modal-content {
    max-width: 400px;
    padding: 20px 20px 10px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 60vh;
    overflow-y: auto;
}

.modal-title {
    margin-top: 0;
}

.modal-description {
    margin: 5px 0 10px 0;
    font-size: 12px;
    color: #666;
}

.override-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.last-form-group {
    margin-bottom: 0;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 5px;
}

/* Container and Header Styles */
.container {
    margin-top: 2px;
}

body .main-header {
    text-align: center !important;
    margin: 2px 0 2px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    line-height: 1.1 !important;
    padding: 0 !important;
}

body .sub-header {
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-top: 0px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    line-height: 1.1 !important;
    padding: 0 !important;
}

/* Mobile-Specific Styles */
@media (max-width: 768px) {
    body .main-header {
        font-size: 18px !important;
        margin: 1px 0 1px 0 !important;
    }
}

/* Footer Styles */
.footer {
    border-top: 1px solid #000;
    padding: 1px 0 0 0;
    margin: 20px 0 0 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    text-align: center;
    background-color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

.footer span {
    display: inline-block;
    margin: 0 8px;
    color: #666;
}

.footer a {
    color: #000;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Info Button Styles */
.info-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.info-button:hover {
    background-color: #f0f0f0;
}

.info-button .material-icons {
    font-size: 20px;
    color: #1e40af;
}

/* Legend Table Styles */
.legend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background-color: #fff;
}

.legend-table th,
.legend-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.legend-table th {
    font-weight: 600;
    color: #333;
    background-color: #fff;
}

.legend-table tr:last-child td {
    border-bottom: none;
}

/* Legend Modal Styles */
#legendModal .close-modal {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    display: flex;
    align-items: center;
}

#legendModal .close-modal .material-icons {
    font-size: 24px;
}

#legendModal .close-modal:hover {
    color: #333;
}

#legendModal .modal-content {
    padding: 20px;
}

/* Mobile-specific styles for legend and info button */
@media (max-width: 768px) {
    .info-button .button-text {
        display: none;
    }
    .info-button {
        padding: 8px;
    }
    .legend-table {
        font-size: 12px;
    }
    .legend-table td, .legend-table th {
        padding: 6px;
    }
}

/* File Input Styles */
#mfFileInput {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    z-index: -1;
}

/* Form Input Specific Styles */
#sheetNameInput {
    padding: 8px 8px !important;
    border: 1px solid #007BFF !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    width: 140px !important;
    outline: none !important;
    min-width: 140px !important;
    max-width: 140px !important;
}

#schemeNameInput {
    padding: 8px 12px !important;
    border: 1px solid #007BFF !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    width: 200px !important;
    outline: none !important;
    margin-left: 5px !important;
    text-transform: uppercase !important;
}

#monthEndInput {
    padding: 4px 2px !important;
    border: 1px solid #007BFF !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    width: 115px !important;
    outline: none !important;
    margin-left: 5px !important;
    min-width: 115px !important;
    max-width: 115px !important;
}

#delimiterInput {
    /* Remove all styles to prevent conflicts with Tailwind classes */
}

/* Button Row Specific Styles */
.button-row.main-buttons {
    margin-top: 4px;
    display: flex;
    gap: 4px;
}

.button-row.secondary-buttons {
    margin-top: 2px;
    display: flex;
    gap: 4px;
}

/* Button Specific Styles */
.control-button.compact {
    padding: 3px 6px;
}

.control-button.compact .button-icon {
    margin-right: 2px;
}

.control-button.compact .material-icons {
    font-size: 16px;
}

.control-button.compact .button-text {
    margin-left: 0;
}

/* Info Button Compact Style */
.info-button.compact {
    padding: 3px 6px;
}

.info-button.compact .button-icon {
    margin-right: 2px;
}

.info-button.compact .material-icons {
    font-size: 16px;
}

.info-button.compact .button-text {
    margin-left: 0;
}

/* Logs Modal Styles */
.logs-modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Legend Modal Styles */
.legend-modal-content {
    max-width: 800px;
    padding: 20px;
}

.legend-note {
    margin-bottom: 15px;
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
    font-size: 13px;
}

.warning-icon {
    color: #e65100;
    font-size: 16px;
    vertical-align: middle;
}

.field-column {
    width: 30%;
}

/* App header styling */
.app-header {
    background: var(--indigo-900);
    color: white;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.app-subtitle {
    font-size: 1rem;
    color: #e0e7ff;
    margin: 0;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.header-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-button .material-icons {
    font-size: 1.125rem;
}

.powered-by {
    background: rgba(79, 70, 229, 0.2);
    color: #e0e7ff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Primary Upload Button */
.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 6px 16px;
    background-color: var(--indigo-600);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-button:hover {
    background-color: var(--indigo-700);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.upload-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
}

.upload-button .material-icons {
    font-size: 18px;
}

/* Input Fields */
.primary-input {
    height: 32px;
    padding: 6px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #1f2937;
    background-color: white;
    transition: all 0.2s ease;
}

.primary-input:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.primary-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Delimiter Dropdown */
.delimiter-select {
    height: 32px;
    padding: 6px 28px 6px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #1f2937;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    appearance: none;
    transition: all 0.2s ease;
}

.delimiter-select:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.delimiter-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Top Section Layout */
.top-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.top-controls > * {
    margin: 0;
}

/* File Name Display */
.file-name-display {
    font-size: 13px;
    color: #4f46e5;
    font-weight: 500;
}

/* Mobile-specific styles for file controls */
@media (max-width: 768px) {
    .top-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
        width: 100%;
        padding: 0 8px;
    }

    /* Upload button mobile styles */
    .upload-button {
        height: 32px;
        padding: 6px 12px;
        min-width: auto;
        flex-shrink: 0;
    }

    /* Input fields mobile styles */
    .primary-input {
        height: 32px;
        padding: 6px 8px;
        font-size: 13px;
    }

    #sheetNameInput {
        width: calc(50% - 4px) !important;
        min-width: auto !important;
        max-width: none !important;
    }

    #schemeNameInput {
        width: calc(50% - 4px) !important;
        min-width: auto !important;
        max-width: none !important;
        margin-left: 0 !important;
    }

    #monthEndInput {
        width: calc(50% - 4px) !important;
        min-width: auto !important;
        max-width: none !important;
        margin-left: 0 !important;
    }

    .delimiter-select {
        width: calc(50% - 4px);
        min-width: auto;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    /* Existing mobile styles remain unchanged */

    /* Main buttons row mobile styles */
    .button-row.main-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        padding: 0 8px;
        margin-top: 4px;
    }

    .button-row.main-buttons .control-button {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 0 8px !important;
        justify-content: center;
        font-size: 12px !important;
    }

    /* Secondary buttons row mobile styles */
    .button-row.secondary-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        padding: 0 8px;
        margin-top: 4px;
    }

    .button-row.secondary-buttons .control-button {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 0 8px !important;
        justify-content: center;
        font-size: 12px !important;
    }

    /* Ensure icons in buttons stay properly sized */
    .button-row .control-button .material-icons,
    .button-row .control-button svg {
        font-size: 16px !important;
        width: 16px !important;
        height: 16px !important;
        margin-right: 4px !important;
    }
}

/* Contact Box Styles */
.contact-box {
    background: white;
    border: 1px solid #4f46e5;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-icon {
    color: #4f46e5;
    font-size: 20px;
}

.contact-text {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.contact-email {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* Mobile styles for contact box */
@media (max-width: 768px) {
    .contact-box {
        margin: 15px 10px;
        padding: 12px 16px;
    }
    
    .contact-text {
        font-size: 13px;
    }
    
    .contact-icon {
        font-size: 18px;
    }
} 