html {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #dededd;
    overflow: hidden;
    height: 100vh;
    margin: 0;
}

.display-container-publish {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1600px;
    max-height: 80vh;
    overflow-y: auto;
    margin-top: 30px;
    box-sizing: border-box;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

a {
    text-decoration: none;
    color: blue;
    font-weight: bold;
}

.signup-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 30%;
    margin-top: 90px;
}

.signup-container h2 {
    text-align: center;
}

.signup-container form {
    margin-top: 20px;
}

.signup-container {
    margin-bottom: 15px;
}

.signup-container label {
    font-weight: bold;
}

.signup-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

.signup-container button:hover {
    background-color: #0056b3;
}

.heading {
    background-color: #0e2050;
    color: #ffe600;
    padding: 10px;
    width: 70%;
    margin: 20px auto;
    text-align: center;
    border-radius: 8px;
}

.login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: auto;
}

.alert-box {
    display: flex;
    align-items: center;
    background-color: #ecde90;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-width: 550px;
    margin: 20px auto;
    position: relative;
    border: 2px solid #EF9400;
    border-left: 7px solid #EF9400;
}

.alert-icon-popup {
    background-color: #FFC107;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 15px;
}

.alert-content {
    flex-grow: 1;
}

.alert-content strong {
    display: block;
    font-size: 20px;
    color: black;
    margin-bottom: 10px;
    margin-top: 10px;
}

.alert-content p {
    margin: 0;
    color: black;
    font-size: 18px;
}

.alert-content a {
    margin: 0;
    color: #0e2050;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.close-alert {
    background: none;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.close-alert:hover {
    color: #333;
}

.form-group-inline {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-inline {
    flex-wrap: wrap;
}

.form-group-inline label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group label {
    color: black;
}

.form-row-pid {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 16px 0;
}

.form-input-pid {
    width: 300px !important;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input-pid:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group-inline input,
.form-group-inline select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.profile-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-field-wrapper {
    margin-bottom: 25px;
}

.form-field-wrapper input {
    width: 90%;
    padding: 14px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.help-text {
    margin: 15px 0 0 0;
    font-size: 14px;
    color: #6c757d;
}

.form-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}

.artifacts-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 10px;
}

.artifacts-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}

.rdmc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-create {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    height: fit-content;
}

.btn-create:hover {
    background-color: #0056b3;
}

.artifacts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.artifacts-table th,
.artifacts-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.artifacts-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.artifacts-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.btn-action {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
}

.manage-artifact-btn {
    font-weight: bold;
    padding: 10px 15px !important;
}

.btn-action:hover, .btn-delete:hover {
    filter: brightness(85%);
}

.btn-modify {
    background-color: #ffc107;
    color: #212529;
}

.btn-modify:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: #ef1f1f;
    color: white;
}

.no-artifacts {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.login-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: #007bff; /* Standard hyperlink blue */
    text-decoration: none;
    font-size: 16px;
    border: 1px solid #007bff; /* Adds a simple border */
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.login-button:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

.login-button:active {
    background-color: #0056b3;
    color: white;
}

select {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #007bff;
    border-radius: 5px;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #0056b3;
}

select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 91, 187, 0.5);
}

.form-input, .form-select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.form-select {
    min-width: 150px;
    width: 100%;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

/* --- Responsive Design --- */

@media (max-width: 599px) {
    body {
        height: 100%;
    }

    .signup-container {
        padding: 10px;
        width: 70%;
        margin-top: 20%;
    }
}

@media (min-width: 600px) and (max-width: 799px) {
    body {
        height: 100%;
    }

    .signup-container {
        padding: 10px;
        width: 60%;
        margin-top: 10%;
    }
}

@media (min-width: 800px) and (max-width: 1023px) {
    body {
        height: 100%;
    }

    .signup-container {
        padding: 10px;
        width: 60%;
        margin-top: 10%;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    body {
        height: 100%;
    }

    .signup-container {
        padding: 10px;
        width: 50%;
        margin-top: 10%;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    body {
        height: 100%;
    }

    .signup-container {
        padding: 10px;
        width: 40%;
        margin-top: 10%;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .signup-container {
        padding: 10px;
        width: 30%;
        margin-top: 5%;
    }
}

@media (min-width: 1920px) {
    .signup-container {
        padding: 10px;
        width: 30%;
        margin-top: 5%;
    }
}

.version-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.upload-container {
    width: 70%;
    margin: 20px 0 20px auto;
}

.file-upload-row {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    width: 80%;
    height: 40px;
    margin-left: auto;
}

.button-row {
    text-align: right;
}

.upload-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.file-name {
    color: #666;
    font-style: italic;
}

.file-upload-label {
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 10px;
    margin-top: 6px;
}

.file-upload-input {
    display: none;
}

.file-upload-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.file-upload-btn:hover {
    background-color: #333;
}

.artifact-table-title {
    color: #000;
    margin-bottom: 20px;
    margin-top: 10px;
    font-weight: bold;
    padding-bottom: 5px;
}

.artifact-info {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
}

.info-label {
    font-weight: bold;
    color: #0e2050;
    min-width: 140px;
    margin-right: 10px;
}

.info-value {
    color: #333;
    flex: 1;
}

.resource-list {
    color: #666;
    font-size: 14px;
}

.resource-item {
    margin-right: 15px;
    display: inline-block;
}

.upload-status {
    font-weight: bold;
}

.status-has-uploads {
    color: green;
}

.status-no-uploads {
    color: red;
}

.artifact-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.artifact-button {
    padding: 11px 20px;
    font-size: 13px;
    color: #333;
    background-color: #fff;
    border: 1px solid black;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    min-width: 120px;
    font-weight: bold;
}

.artifact-button:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.artifact-actions p a {
    display: inline-block;
    border: 1px solid black;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: Blue;
    font-weight: bold;
}

.artifact-actions p a:hover {
    background-color: #f5f5f5;
}

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

.contributor-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.popup-close {
    background: white;
    font-size: 34px;
    cursor: pointer;
    color: black;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: white;
    background: black;
}

.validation-manifest-file {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 24px;
    box-sizing: border-box;
    margin-right: 10%;
    width: fit-content;
    max-width: 80%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.contributor-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
}

.contributor-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.contributor-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.contributor-form input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.contributor-form .required::after {
    content: " *";
    color: red;
}

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

.btn-add-contributor {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-add-contributor:hover {
    background-color: #218838;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel:hover {
    background-color: #545b62;
}

.contributors-list {
    margin-bottom: 20px;
}

.contributor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.contributor-info {
    flex: 1;
}

.contributor-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.contributor-details {
    font-size: 12px;
    color: #666;
}

.btn-edit, .btn-delete {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 12px;
}

.contributors-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.contributors-summary {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 10px;
}

.contributors-count {
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.manage-contributors-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

.manage-contributors-btn:hover {
    background-color: #0056b3;
}

.popup-save-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.popup-save-btn:hover {
    background-color: #218838;
}

.contributor-form div:nth-child(3) {
    grid-column: 1 / -1;
}

.contributor-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.contributor-form input,
.contributor-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.contributor-form input:focus,
.contributor-form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.contributor-form .required::after {
    content: " *";
    color: red;
}

.workflow-modal-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: 9999;
}

.workflow-modal {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.workflow-modal h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.workflow-modal p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.workflow-choice-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.workflow-btn {
    padding: 15px 25px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.workflow-btn:hover:not(:disabled) {
    background: #007bff;
    color: white;
}

.workflow-btn:disabled,
.workflow-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.workflow-btn {
    text-decoration: none;
    display: inline-block;
}

.workflow-disabled-text {
    color: #999;
    font-style: italic;
    margin-top: 15px;
    font-size: 14px;
}


/* New Code */

/* Multi-select role styling */
.role-select-container {
    position: relative;
}

.role-select-display {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.role-select-display:hover {
    border-color: #3498db;
}

.role-select-placeholder {
    color: #999;
    font-size: 14px;
}

.role-tag {
    background: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.role-tag-remove {
    cursor: pointer;
    font-weight: bold;
}

.role-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.role-dropdown.active {
    display: block;
}

.role-option {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-option:hover {
    background: #f0f0f0;
}

.role-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.role-option label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

/* ORCID styling */
.orcid-container {
    position: relative;
}

.orcid-status {
    position: absolute;
    right: 10px;
    top: 35px;
    font-size: 18px;
}

.orcid-loading { color: #f39c12; }
.orcid-valid { color: #27ae60; }
.orcid-invalid { color: #e74c3c; }

.orcid-message {
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
}

.orcid-message.error { color: #e74c3c; }
.orcid-message.success { color: #27ae60; }

#popup-orcid {
    padding-right: 35px;
}

.licence-select-container {
    position: relative !important;
    width: 100%;
}

.licence-select-display {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(94, 82, 64, 0.2);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.licence-select-placeholder {
    color: #626c71;
}

.licence-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff;
    border: 1px solid rgba(94, 82, 64, 0.2);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.licence-dropdown.active {
    display: block;
}

.licence-option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.licence-option:hover {
    background-color: rgba(94, 82, 64, 0.12);
}

.licence-option input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
}

.licence-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    user-select: none;
}

.licence-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #2256df;
    color: #fcfcf9;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.licence-tag-remove {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.licence-tag-remove:hover {
    opacity: 1;
}

