/* Global Navigation Styles */
.global-nav {
    display: flex;
    gap: 18px;
    background: #eaf4fb;
    border-bottom: 1px solid #b6d3ee;
    padding: 16px 24px 12px 24px;
    margin-bottom: 24px;
    border-radius: 0 0 10px 10px;
}
.global-nav .nav-link {
    color: #4c94d7;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.15s;
}
.global-nav .nav-link:hover, .global-nav .nav-link.active {
    background: #d0e6f7;
    color: #256fae;
}
/* Global Stylesheet for ChaseHub Forms */
body {
    font-family: Arial, sans-serif;
    margin: 30px;
    background: #f7f7f7;
}
.wrap {
    max-width: 1000px;
    margin: 0 auto;
}
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
h1, h2 {
    margin-top: 0;
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px;
    margin: 18px 0 18px 0;
}
.success {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 12px;
    margin: 18px 0 18px 0;
}
.success-fancy {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f6fff6;
    border-left: 5px solid #4caf50;
    color: #256029;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 2px 8px #0001;
    margin: 16px 0;
    max-width: 440px;
    font-weight: 500;
}
.success-fancy .checkmark {
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
select {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 3px;
    transition: border-color 0.15s;
    text-align: left;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus {
    border-color: #4c94d7;
    outline: none;
}
input[type="file"] {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}
    button,
    button.upload,
    button.preview,
    button.match,
    button.primary,
    .actions button,
    form button[type="submit"] {
        background: #4c94d7;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.15s;
    }
    button:hover,
    button.upload:hover,
    button.preview:hover,
    button.match:hover,
    button.primary:hover,
    .actions button:hover,
    form button[type="submit"]:hover {
        background: #256fae;
    }
button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}
.progress {
    margin-top: 10px;
    display: none;
}
.progress-bar {
    width: 100%;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #2563eb;
    width: 0%;
    transition: width 0.3s ease;
}
pre {
    background: #111827;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.note {
    color: #555;
    margin-bottom: 15px;
}
.sample-link {
    color: #4c94d7;
    text-decoration: none;
}
.sample-link:hover {
    text-decoration: underline;
    color: #256fae;
}
.error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
}
.success {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 12px;
    .global-nav .nav-link[type="submit"]:hover,
    .global-nav .nav-link:active[type="submit"] {
        background: #d0e6f7;
        color: #256fae;
    }
}

#mappingTable thead th {
    background: linear-gradient(90deg, #4c94d7 0%, #357ab8 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #357ab8;
    padding: 8px 14px;
    text-align: left;
}