html, body {
    overflow-x: auto;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    overflow: hidden;
    background-color: white;
    padding: 5px 30px 5px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x: auto;
}

.header .logo {
    display: flex;
    align-items: center;
    z-index: 1;
    margin: 20px 60px 10px;
}

.header .logo img {
    max-width: 150px;  
    height: auto;
}

.header .title-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 0;
    white-space: nowrap;
    margin-top: -25px;
}

.header .title-container h1 {
    color: #262626;
    font-size: 1.75em;
}

.header .title-container p {
    margin: 0;
    font-size: 0.75em;
    margin-top: -20px;
}

.menu-container {
    display: flex;
    z-index: 2;
    font-size: 1.125em;
    margin-right: 30px;
    justify-content: flex-end; 
    width: 100%;
    max-width: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 30px;
    text-decoration: none;
    color: inherit; 
}

.menu-item img {
    width: 20px; 
    height: 20px;
    margin-right: 8px; 
}

.menu-item:hover {
    opacity: 0.8; 
}

.menu-item.active, .menu-item img.active {
    color: #262626; 
    font-weight: 600;
}

.menu-item {
    color: #a09f9f;
}

.card.full-width {
    flex-grow: 1;
    padding: 20px 30px;
}

.card.full-width h2, h3, p {
    color: #262626;
}

.card.full-width h2 {
    padding-left: 50px !important;
}

.card.full-width h3 {
    padding-left: 10px !important;
}

.card.full-width.help-box, .card.full-width.warning-box {
    padding: 25px;
    border-radius: 15px;
    margin: 20px 60px;
    transition: all 0.3s ease-out;
    overflow: hidden;
    max-height: 1000px;
}

.card.full-width.help-box .content, 
.card.full-width.warning-box .content {
    padding: 10px 0px 0px 0px;
    transition: all 0.3s ease-out;
    opacity: 1;
    transform: translateY(0);
}

.card.full-width.help-box h3, 
.card.full-width.warning-box h3 {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 1em;
}

.card.full-width.help-box h3::after, 
.card.full-width.warning-box h3::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.card.full-width.help-box.collapsed, 
.card.full-width.warning-box.collapsed {
    max-height: 25px;
}

.card.full-width.help-box.collapsed h3::after, 
.card.full-width.warning-box.collapsed h3::after {
    transform: rotate(-90deg);
}

.card.full-width.help-box.collapsed .content, 
.card.full-width.warning-box.collapsed .content {
    opacity: 0;
    transform: translateY(-100%);
}

.card.full-width.help-box {
    background-color: #ccf4ff;
}

.card.full-width.warning-box {
    background-color: #ffd2cc;
}


@media (max-width: 1480px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

    .header .title-container {
        position: static;
        transform: none;
        text-align: center;
    }
    
    .card.full-width h2, h3 {
        text-align: center;
        color: #838282;
        padding-right: 20px;
    }

    .card.full-width p {
        padding-right: 20px;
    }

    .menu-container {
        display: flex;
        justify-content: center;
        z-index: 1;
        margin: 10px;
        padding-left: 55px;
    }

    .menu-item {
        font-size: 0.9em;
    }

    .time-filter {
        margin-top: 10px;
        width: 550px;
    }
    .header .title-container p {
        display: none;
    }
    
}

@media (max-width: 480px) {
    .content-chart .chart-section {
        display: none;
    }
}

.draggable {
    cursor: move;
}

.dragging {
    opacity: 0.5;
}

.search-container {
    margin-right: 45px;
    position: relative;
}


.highlight {
    background-color: #ffff99;
}

.login-container {
    max-width: 400px;
    margin: 140px auto;
    padding: 100px;
    border-radius: 8px;
    border-top: 6px solid;
    border-image: linear-gradient(to right, #333 85%, #ffb71b 85%) 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}
.login-form input {
    padding: 15px 15px 15px 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: calc(100% - 47px);
}
.login-container h2 {
    font-size: 24px;
    font-weight: bold;
    margin-top: -15px;
    margin-bottom: 50px;
    text-align: center;
}

.login-form button {
    padding: 15px;
    font-size: 16px;
    color: white;
    background: linear-gradient(to bottom, #333, #000);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.error-message {
    color: red;
    margin: 30px 0px 0px 0px;
    text-align: center;
}

strong {
    color: organge;
}

.pipeline-containers {
    display: flex;
    flex-direction: column;
    gap: 45px;
    padding: 50px 0;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.pipeline-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 40px 0;
    border-top: 6px solid;
    border-image: linear-gradient(to right, #333 85%, #ffb71b 85%) 1;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.pipeline-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
    width: 100%;
    max-width: 1280px;
}

.pipeline-form input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

.pipeline-container h2 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.status {
    width: 100%;
    margin: 10px auto;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
    box-sizing: border-box;
}

.success { background-color: #d4edda; color: #155724; }
.error { background-color: #f8d7da; color: #721c24; }

.data-preview {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffb71b1a;
    white-space: pre-wrap;
    word-break: break-all;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.progress-bar {
    width: 100%;
    max-width: 260px;
    height: 20px;
    background-color: #ffb71b1a;
    border-radius: 10px;
    margin: 10px auto;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.progress-fill {
    height: 100%;
    background-color: #FFB71B;
    width: 0;
    transition: width 0.3s ease-in-out;
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 20px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.action-button {
    background-color: #262626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #262626;
}

.action-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.input-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.input-container input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-size: 14px;
}

.input-container .inline-button, .inline-button {
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 4px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.input-container .inline-button:hover, .inline-button:hover {
    background-color: #FFB71B;
}

.report-link, .input-container .report-link {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.selector-container .report-link {
    margin-top: 0;
    width: auto;
    flex-shrink: 0;
}

.report-link a, .input-container .report-link a {
    min-width: 140px;
    text-align: center;
    padding: 10px 15px;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.report-link a:first-child, .input-container .report-link a:first-child {
    background-color: #333;
    color: #FFB71B;
    border: none;
}

.report-link a:last-child, .input-container .report-link a:last-child {
    background-color: #333;
    color: #FFB71B;
    border: none;
}

.report-link a:first-child:hover, .report-link a:last-child:hover, .input-container .report-link a:first-child:hover, .input-container .report-link a:last-child:hover {
    background-color: #ffb71b1a;
}

@media (max-width: 800px) {
    .menu-container {
        max-width: 600px;
        display: flex;
        justify-content: center;
        z-index: 1;
        margin: 10px;
        padding-left: 55px;
    }

}

.settings-container {
    max-width: 1024px;
    margin: 30px auto;
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-container h2 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 0px;
    text-align: center;
}

.settings-description {
    color: #555;
    margin-bottom: 50px;
    font-size: 14px;
    text-align: center;
}

.tool-section {
    margin: 40px;
}

.tool-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.path-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.path-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.path-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.path-input:focus {
    border-color: #FFB71B;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.add-path-btn, .remove-path-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-path-btn {
    background-color: #ffb71b1a;
    color:  #ffb71b;
    font-size: 14px;
    align-self: flex-start;
}

.add-path-btn:hover {
    background-color: #ffb71b1a;
}

.remove-path-btn {
    background-color: #ffecec;
    color: #dc3545;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.remove-path-btn:hover {
    background-color: #ffd5d5;
}

.remove-path-btn:disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.status-message {
    padding: 10px 15px;
    border-radius: 4px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.status-message.success, .result-item.success {
    background-color: #d4edda;
    color: #40AA1D;
    border: 1px solid #c3e6cb;
}

.status-message.error, .result-item.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.report-selector {
    width: 100%;
    margin: 0 auto;
}

.report-select {
    width: 100%;
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

select.report-select {
    max-width: 100%;
    box-sizing: border-box;
}

select.report-select option {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* File upload styles */
.file-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    margin: 20px;
    padding: 20px;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 94%;
}

.file-drop-zone:hover, .file-drop-zone.drag-over {
    background-color: #ffb71b1a;
    border-color: #FFB71B;
}

.file-drop-zone p {
    margin: 0;
    color: #666;
}

.dropped-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffb71b1a;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 97%;
}

/* Specific style for vectorcast file info without remove button */
#vectorcastFileInfo {
    justify-content: center;
    font-weight: 500;
}

/* Multiple file upload styles */
.multiple-file-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px 0;
    text-align: center;
    margin: 15px 0 25px 0;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.multiple-file-drop-zone:hover, .multiple-file-drop-zone.drag-over {
    background-color: #ffb71b1a;
    border-color: #FFB71B;
}

.multiple-file-drop-zone p {
    margin: 0;
    color: #666;
}

.multiple-dropped-files-container {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.multiple-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #ffb71b1a;
    border-bottom: 1px solid #e0e0e0;
}

.multiple-files-list {
    padding: 0;
}

.multiple-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.multiple-file-item:last-child {
    border-bottom: none;
}

.remove-file-btn-small {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 0 5px;
}

.remove-file-btn-small:hover {
    color: #dc3545;
}

.remove-all-files-btn {
    background-color: #ffecec;
    border: none;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-all-files-btn:hover {
    background-color: #ffd5d5;
}

.remove-file-btn {
    background-color: #ffecec;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background-color: #ffd5d5;
}

.custom-file-button {
    background-color: #FFB71B;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
    user-select: none;
}

.custom-file-button:hover {
    background-color: #ffb71b1a;
}

.upload-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.upload-buttons .custom-file-button {
    margin-top: 0;
    flex: 1;
    max-width: 120px;
}

/* Disabled card styles */
.pipeline-container.disabled {
    opacity: 0.35;
    position: relative;
    pointer-events: none;
    filter: grayscale(40%);
}

.pipeline-container.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.disabled-link {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.coming-soon-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #FFD700;
    color: #000;
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
    font-weight: bold;
}

/* Multiple reports summary styles */
.multiple-reports-summary {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffb71b1a;
}

.multiple-reports-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.summary-item {
    background-color: white;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.summary-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.summary-value.good {
    color: #FFB71B;
}

.summary-value.warning {
    color: #ffc107;
}

.summary-value.bad {
    color: #dc3545;
}

/* Warning text emphasis styles */
.warning-text {
    background-color: #fff3cda9;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 500;
    border-left: 4px solid #ffc107;
}

.warning-text.critical {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

.warning-text strong {
    font-weight: 600;
    color: #d63384;
}

.multiple-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
}

.multiple-actions-header span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.add-action-btn {
    background-color: #FFB71B;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-action-btn:hover {
    background-color: #ffb71b1a;
}


.action-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.action-item-id {
    flex: 0 0 120px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.selector-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: center;
    margin: 5px 0 15px 0;
}



/* Single report selectors - wider */
.selector-container select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    min-width: 400px;
    max-width: 500px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Multiple report selectors - narrower */
#multipleProjectSelector,
#multipleTrackerSelector,
#multipleItemSelector {
    min-width: 200px !important;
    max-width: 300px !important;
}

.selector-container select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.selector-container select:focus {
    outline: none;
}

.selector-container select option {
    padding: 5px 8px;
    font-size: 14px;
    background-color: white;
    color: #333;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-select-btn {
    background-color: #ffb71b1a;
    color: #FFB71B;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.file-select-btn:hover {
    background-color: #ffb71b1a;
}

.action-file-name {
    flex: 1;
    font-size: 14px;
    color: #666;
    min-width: 150px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-file-name.has-file {
    color: #333;
    font-weight: 500;
}

.action-view-codebeamer, .action-view-report {
    background-color: #333;
    color: #FFB71B;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-view-codebeamer:hover, .action-view-report:hover {
    background-color: #ffb71b1a;
    color: #FFB71B;
}

.remove-action-btn {
    background-color: #ffecec;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-action-btn:hover {
    background-color: #ffd5d5;
}

.multiple-actions-controls {
    margin-top: 15px;
    padding-top: 35px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.multiple-actions-controls .inline-button {
    position: static;
    height: auto;
    padding: 10px 20px;
    background-color: #333;
    color: #FFB71B;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.debug-mappings-btn {
    position: static;
    height: auto;
    padding: 10px 20px;
    background-color: #333;
    color: #FFB71B;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.multiple-actions-controls .inline-button:hover {
    background-color: #FFB71B;
    color: #333;
}

/* Bulk Results Styles */
.bulk-results {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffb71b1a;
}

.bulk-results h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.result-item {
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 14px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.action-file-drop-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.attachment-info {
    margin: 10px 0;
    padding: 20px;
    background-color: #ffb71b1a;
    border-left: 4px solid #FFB71B;
    border-radius: 4px;
    font-size: 14px;
}

.attachment-info p {
    margin: 0;
    color: #333;
    line-height: 2;
}

.attachment-info strong {
    color: #333;
}

.action-file-drop-zone:hover {
    border-color: #FFB71B;
    background-color: #ffb71b1a;
}

.action-file-drop-zone.drag-over {
    border-color: #FFB71B;
    background-color: #ffb71b1a;
}

.action-file-drop-zone .action-file-name {
    flex: 1;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.excel-file-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #FFB71B;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #ffb71b1a;
    margin: 20px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 150px;
}

.excel-file-drop-zone:hover, .excel-file-drop-zone.drag-over {
    border-color: #FFB71B;
    background-color: #ffb71b1a;
}

.excel-file-drop-zone p {
    margin: 10px 0;
    color: #FFB71B;
    font-size: 16px;
}

.excel-file-info {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: #ffb71b1a;
}

.file-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.excel-preview {
    width: 100%;
    max-width: 900px;
    margin-top: 15px;
}

.excel-preview-table {
    overflow-x: auto;
    max-height: 450px;
    overflow-y: auto;
}

.excel-preview-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.excel-preview-table th,
.excel-preview-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.excel-preview-table th {
    background-color: #FFB71B;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.field-mapping-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: #ffffff;
}

.field-mapping-section h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #FFB71B;
    padding-bottom: 10px;
}

.mapping-info {
    margin-bottom: 20px;
    font-size: 14px;
    padding: 10px;
    background-color: #ffb71b1a;
    border-radius: 5px;
    border-left: 4px solid #FFB71B;
}

.mapping-info p {
    margin: 0;
    color: #555;
}

.field-mapping-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field-mapping-row {
    display: flex;
    align-items: stretch;
    gap: 60px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    min-height: 80px;
}

.excel-column {
    flex: 0 1 35%;
    min-width: 200px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.excel-column strong {
    color: #333;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.sample-data {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding: 8px;
    background-color: #ffb71b3f;
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mapping-arrow {
    font-size: 18px;
    color: #FFB71B;
    font-weight: bold;
    flex: 0 0 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.codebeamer-field {
    flex: 1 1 auto;
    min-width: 400px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.codebeamer-field select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.create-field-btn {
    padding: 10px 15px;
    background-color: #333;
    color: #FFB71B;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    min-width: 100px;
}

.create-field-btn:hover {
    background-color: #FFB71B;
    color: #333;
}

.medini-upload-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 950px;
    box-sizing: border-box;
}

.medini-upload-container > * {
    flex-shrink: 0;
}

/* Auto-mapping styles */
.auto-mapping-info {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f4e8be 0%, #ffb71b3f 100%);      
    border: 2px solid #FFB71B;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auto-mapping-info p {
    margin: 0;
    color: #ffaf1b;
    font-weight: 500;
}

.review-mappings-btn {
    padding: 10px 15px;
    background-color: #333;
    color: #FFB71B;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.review-mappings-btn:hover {
    background-color: #ffaf1b;
    color: #333;
}

.clear-auto-mapping-btn {
    padding: 10px 15px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.clear-auto-mapping-btn:hover {
    background-color: #f57c00;
}

.retry-auto-mapping-btn {
    padding: 10px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.retry-auto-mapping-btn:hover {
    background-color: #FFB71B;
}

.field-mapping-row.auto-mapped {
    border: 1px solid #FFB71B;
    background: linear-gradient(135deg, #ffb71b1a 0%, #ffb71b1a 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.auto-mapped-indicator {
    font-size: 11px;
    color: #FFB71B;
    font-weight: 600;
    background-color: #ffb71b1a;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

.manual-mapping-indicator {
    font-size: 11px;
    color: #333;
    font-weight: 600;
    background-color: #ffb71b1a;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

.auto-mapped .mapping-arrow {
    color: #FFB71B;
}

.auto-mapped .codebeamer-field select {
    border-color: #FFB71B;
    background-color: #ffb71b1a;
}

@media (max-width: 768px) {
    .field-mapping-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        min-height: auto;
    }
    
    .mapping-arrow {
        transform: rotate(90deg);
        font-size: 16px;
        flex: none;
        height: 20px;
    }
    
    .codebeamer-field {
        flex-direction: column;
        align-items: stretch;
    }
    
    .excel-column,
    .codebeamer-field {
        min-width: auto;
        max-width: none;
    }

    .excel-column {
        flex: none;
    }

    .auto-mapping-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.file-name {
    font-size: 12px;
    color: #FFB71B;
    font-weight: 600;
    background-color: #ffb71b1a;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

/* Smart selection styles */

.smart-selected {
    background-color: #f5f5e88a !important;
    border-color: #FFB71B !important;
}

.smart-selected::after {
    content: " 🎯";
    color: #FFB71B;
    font-weight: bold;
}

/* Current Settings Display Styles */
.current-settings {
    background: #ffb71b1a;
    border: 1px solid #ffedb6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.current-settings h4 {
    margin: 20px 0;
    color: #FFB71B;
}

.settings-info {
    margin-bottom: 15px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.setting-item:last-child {
    border-bottom: none;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-link-btn {
    background: none;
    color: black;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.settings-link-btn:hover {
    background: #FFB71B;
}

/* Auto Mapping Settings Styles */
.auto-mapping-settings {
    background: #ffb71b1a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.auto-mapping-settings label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.auto-mapping-settings input[type="checkbox"] {
    margin-right: 8px;
    background: #ffb71b1a;
    accent-color: #333;
}

.setting-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.similarity-threshold {
    margin-top: 15px;
    background: #ffb71b1a;
    padding: 10px 30px;
}

.similarity-threshold input[type="range"] {
    width: 200px;
    accent-color: #333;
}

/* Field Mapping Templates Styles */
.field-mapping-templates {
    background: #fffbf0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.template-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.template-input {
    flex: 1;
    min-width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.template-btn {
    padding: 10px 15px;
    background: #FFB71B;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 250px;
    font-weight: 500;
}

.template-btn:hover {
    background: #FFB71B;
}

.template-btn.small {
    padding: 4px 8px;
    font-size: 12px;
}

.template-btn.edit {
    background: gray;
    color: white;
}

.template-btn.danger {
    background: #dc3545;
    color: white;
}

.template-btn.danger:hover {
    background: #c82333;
}

.template-btn:disabled {
    background: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.templates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.templates-header h4 {
    margin: 0;
}

.template-item {
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background: white;
}

.template-item.active-template {
    border: 2px solid #FFB71B;
    background: #ffb71b1a;
    box-shadow: 0 2px 8px rgba(255, 183, 27, 0.3);
}

.active-indicator {
    color: #FFB71B;
    font-weight: bold;
    font-size: 12px;
    background-color: white;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    border: 1px solid #FFB71B;
}

.template-details {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.template-date {
    float: right;
}

.field-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.field-item {
    padding: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.field-type {
    color: #666;
    font-size: 12px;
}

.mandatory {
    background: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}

.field-mapping-preview {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    min-height: 100px;
}

/* Template Mapping Editor Styles */
.template-mapping-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #fafafa;
}

.template-info {
    flex: 1;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ffb71b1a;
    border-radius: 6px;
    border-left: 4px solid #FFB71B;
}

.template-info h4 {
    margin: 0 0 10px 0;
    color: #FFB71B;
}

.template-info p {
    margin: 5px 0;
    color: #333;
}

.mapping-builder {
    margin-bottom: 20px;
}

.mapping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFB71B;
}

.mapping-header h4 {
    margin: 0;
    color: #333;
}

.mapping-arrow {
    font-size: 20px;
    color: #FFB71B;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.mapping-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mapping-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
}

.mapping-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.mapping-input-group label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
}

.mapping-input-group.remove label {
    font-size: 12px;
    font-weight: bold;
    color: #555;

}

.mapping-input-group.remove {
    gap: 10px;
    align-items: center;
}


.excel-column-input {
    min-width: 350px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.excel-column-select, .codebeamer-field-input {
    min-width: 350px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.remove-mapping-btn {
    background-color: #ffecec;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-mapping-btn:hover {
    background-color: #ffd5d5;
}

.template-actions {
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 15px 0 35px 0;
    border-top: 1px solid #ddd;
}

.mapping-count {
    background-color: #FFB71B;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .mapping-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .mapping-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
    
    .template-actions {
        flex-direction: column;
        align-items: stretch;
    }
}


.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dialog-form .form-group {
    margin-bottom: 15px;
}

.dialog-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.dialog-form input[type="text"] {
    width: 96.5%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.suggested-names {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.suggested-name {
    color: #FFB71B;
    cursor: pointer;
    text-decoration: underline;
}

.suggested-name:hover {
    color: #ffab46;
}

.dialog-error {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #c33;
    font-size: 14px;
}

.dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.dialog-actions .template-btn {
    padding: 8px 16px;
}

.auto-mapping-results {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.mapping-actions {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.mapping-actions .template-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.mapping-results {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
}

.mapping-result-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mapping-result-item:last-child {
    border-bottom: none;
}

.unmapped-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.unmapped-column {
    background-color: #ffebee;
    color: #c62828;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #ffcdd2;
}


.current-tracker-info {
    background-color: #f5f5f5;
    padding: 10px 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.current-tracker-info .tracker-icon {
    width: 24px;
}

/* Auto-login container styles */
.auto-login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
}

.auto-login-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.auto-login-container p {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Spinner animation */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sample file section styles */
.sample-file-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    padding: 20px 85px 25px 85px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sample-file-header h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.sample-file-header p {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

.sample-file-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sample-file-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sample-file-btn.primary {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.sample-file-btn.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.sample-file-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sample-file-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}