
:root {
    --ibm-blue: #0f62fe;
    --ibm-blue-hover: #0043ce;
    --ibm-background: #f4f4f4;
    --ibm-layer: #ffffff;
    --ibm-layer-hover: #e8e8e8;
    --ibm-border-subtle: #e0e0e0;
    --ibm-border-strong: #8d8d8d;
    --ibm-text-primary: #161616;
    --ibm-text-secondary: #525252;
    --ibm-text-helper: #6f6f6f;
    --ibm-success: #24a148;
    --ibm-error: #da1e28;
    --ibm-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --ibm-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--ibm-background);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(15, 98, 254, 0.08), rgba(255, 255, 255, 0) 34rem),
        var(--ibm-background);
    color: var(--ibm-text-primary);
}

/* Header / Navigation */
.cds--header {
    min-height: 3.5rem;
    border-bottom: 1px solid #393939;
    background: #161616;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.cds--header__name {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    padding: 0 2rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cds--header__name::before {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    background: var(--ibm-blue);
}

.cds--header__navitems {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    margin-left: auto;
    padding-right: 1rem;
}

.cds--header__navitems a,
.cds--header__menu-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    margin-right: 0;
    padding: 0 1rem;
    color: #c6c6c6;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        color 160ms ease;
}

.cds--header__navitems a:hover,
.cds--header__menu-item:hover {
    background-color: #353535;
    color: #ffffff;
}

.cds--header__navitems a:focus,
.cds--header__menu-item:focus {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

/* Page layout */
.cds--content {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
}

.cds--grid {
    max-width: 1184px;
}

.cds--row:first-child {
    margin-bottom: 1.5rem;
}

h1.cds--type-productive-heading-05 {
    margin-bottom: 0.75rem;
    color: var(--ibm-text-primary);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1.cds--type-productive-heading-05 + p {
    max-width: 42rem;
    color: var(--ibm-text-secondary);
    line-height: 1.6;
}

hr {
    height: 1px;
    margin: 1.25rem 0 2rem;
    border: 0;
    background: var(--ibm-border-subtle);
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 15rem;
    height: 100%;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--ibm-border-subtle);
    border-top: 4px solid var(--ibm-blue);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(15, 98, 254, 0.035), rgba(255, 255, 255, 0) 55%),
        var(--ibm-layer);
    box-shadow: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.card:hover {
    border-color: #c6c6c6;
    box-shadow: var(--ibm-shadow);
    transform: translateY(-2px);
}

.card::after {
    content: "";
    position: absolute;
    right: -2.5rem;
    bottom: -2.5rem;
    width: 8rem;
    height: 8rem;
    border: 1px solid rgba(15, 98, 254, 0.14);
    border-radius: 50%;
}

.card h3 {
    margin-bottom: 0.75rem;
    color: var(--ibm-text-primary);
}

.card p {
    margin-bottom: 2rem;
    color: var(--ibm-text-secondary);
    line-height: 1.55;
}

.card .cds--btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Buttons */
.cds--btn {
    border-radius: 0;
    font-weight: 500;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.cds--btn--primary {
    color: var(--ibm-blue);
}

.cds--btn--primary:hover {
    background-color: #edf5ff;
    color: var(--ibm-blue-hover);
}

.cds--btn--ghost {
    color: var(--ibm-blue);
}

.cds--btn--ghost:hover {
    background-color: #edf5ff;
    color: var(--ibm-blue-hover);
}

/* Tables */
.cds--data-table {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--ibm-border-subtle);
    background: var(--ibm-layer);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cds--data-table thead {
    background: #e0e0e0;
}

.cds--data-table th {
    color: var(--ibm-text-primary);
    font-weight: 600;
}

.cds--data-table td {
    color: var(--ibm-text-secondary);
}

.cds--data-table tbody tr {
    transition: background-color 120ms ease;
}

.cds--data-table tbody tr:hover {
    background-color: #edf5ff;
}

.cds--tag {
    font-weight: 500;
}

/* Upload form */
form#uploadForm {
    margin-top: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--ibm-border-subtle);
    border-left: 4px solid var(--ibm-blue);
    background: var(--ibm-layer);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cds--form-item {
    margin-bottom: 1.25rem;
}

.cds--label {
    margin-bottom: 0.75rem;
    color: var(--ibm-text-primary);
    font-weight: 600;
}

input[type="file"] {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 1px dashed var(--ibm-border-strong);
    background: #f4f4f4;
    color: var(--ibm-text-secondary);
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--ibm-blue);
    background: #edf5ff;
}

input[type="file"]:focus {
    outline: 2px solid var(--ibm-blue);
    outline-offset: 2px;
}

/* Progress Bar Styling */
#progressContainer {
    padding: 1.5rem;
    border: 1px solid var(--ibm-border-subtle);
    background: var(--ibm-layer);
}

#statusText {
    margin-bottom: 0.75rem;
    color: var(--ibm-text-secondary);
    font-weight: 500;
}

.progress-bar-background {
    width: 100%;
    height: 0.75rem;
    margin-top: 0.75rem;
    overflow: hidden;
    border-radius: 0;
    background-color: #e0e0e0;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--ibm-blue),
            #4589ff
        );
    transition: width 0.2s ease-in-out;
}

/* Status messages */
#resultMessage {
    min-height: 2rem;
}

.text-success {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--ibm-success);
    background: #defbe6;
    color: #044317;
    font-weight: 600;
}

.text-error {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--ibm-error);
    background: #fff1f1;
    color: #750e13;
    font-weight: 600;
}

/* Empty states */
.cds--type-body-short-01 {
    color: var(--ibm-text-secondary);
}

.cds--col-lg-16 > .cds--type-body-short-01:only-child,
.cds--col-lg-16 > p.cds--type-body-short-01 {
    padding: 1.25rem;
    border: 1px solid var(--ibm-border-subtle);
    background: var(--ibm-layer);
}

/* Responsive polish */
@media (max-width: 1056px) {
    .cds--content {
        padding-top: 5rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 672px) {
    .cds--header {
        flex-wrap: wrap;
        min-height: auto;
    }

    .cds--header__name {
        width: 100%;
        padding: 0 1rem;
    }

    .cds--header__navitems {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
        overflow-x: auto;
        border-top: 1px solid #393939;
    }

    .cds--header__navitems a,
    .cds--header__menu-item {
        flex: 0 0 auto;
        padding: 0 0.875rem;
    }

    .cds--content {
        padding-top: 7.75rem;
    }

    form#uploadForm {
        padding: 1.25rem;
    }
}

.text-success {
    color: #24a148;
    font-weight: bold;
}

.text-error {
    color: #da1e28;
    font-weight: bold;
}

/* Progress Bar Styling */
.progress-bar-background {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-top: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #0f62fe;
    transition: width 0.2s ease-in-out;
}

.cds--header__navitems a {
    margin-right: 1rem;
}