html {
    scroll-behavior: smooth;
}

.author-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-item-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    margin-left: -75px;
    padding-left: 75px;
}

.author-item {
    display: grid;
    grid-template-columns: 1fr 4fr .7fr 1fr;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 0.5rem;
    align-items: center;
    transition: background-color 0.2s ease;
    position: relative;
}

.author-item.original-data {
    position: relative;
}

.author-item.original-data .delete-author {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 6px;
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.author-item.updated-data {
    background-color: #e8f4f8;
    border: 1px solid #b8e0ed;
}

.author-item:hover {
    background-color: #f8f9fa;
}

.author-item input {
    width: 100%;
    padding: 0.375rem 0.5rem;
}

.author-item input[readonly] {
    background-color: #f8f9fa;
    cursor: default;
}

.author-item .d-flex {
    width: 100%;
}

.author-item .d-flex input {
    width: 50%;
}

.author-item input.surname-warning,
.author-item input.orcid-warning {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dc3545' class='bi bi-exclamation-triangle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    border-color: #dc3545 !important;
    padding-right: 35px !important;
}

.author-item input.surname-warning:focus,
.author-item input.orcid-warning:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
    border-color: #dc3545 !important;
}

.author-item a {
    color: #0d6efd;
    text-decoration: none;
}

.author-item a:hover {
    text-decoration: underline;
}

.author-item .duplicate {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}

.author-list-header {
    display: grid;
    grid-template-columns: 1fr 4fr .7fr 1fr;
    gap: 1rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.language-toggle .btn-group {
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.orcid-link {
    color: #A6CE39;
}

.orcid-link:hover {
    color: #8cb82e;
}

/* Yeni stiller */
#newAuthorData {
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 200px;
}

#newAuthorData::placeholder {
    opacity: .75;
}

#newAuthorDataContainer {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

#prepareDataBtn {
    min-width: 150px;
}

.author-list-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.affiliations-container {
    display: grid;
    gap: 1rem;
}

/* Tek grup varsa */
.affiliations-container:has(.input-group:only-child) {
    grid-template-columns: repeat(1, 1fr);
}

/* Birden fazla grup varsa */
.affiliations-container:has(.input-group:nth-child(2)) {
    grid-template-columns: repeat(2, 1fr);
}

/* Input group stilleri */
.affiliations-container .input-group-text {
    min-width: 45px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.form-control, .form-select {
    box-shadow: none!important;
}

.affiliations-container .input-group .form-control[readonly] {
    background-color: #f8f9fa;
    cursor: default;
}

.affiliations-container .input-group .translate-btn, .input-group .copy-surname, .input-group .copy-name {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.affiliations-container .input-group .translate-btn:hover, .input-group .copy-surname:hover, .input-group .copy-name:hover {
    color: #222;
    transition: all .35s ease;
}

.affiliations-container .input-group .translate-btn:disabled {
    opacity: 0.65;
}

.affiliations-container .input-group .translate-btn .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.journal-details-wrapper {
    max-width: 800px;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    border: var(--bs-border-width) solid var(--bs-border-color);
}

.journal-details-wrapper #journalCover {
    flex-shrink: 0;
}

.journal-details-wrapper #selectedJournalName {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.author-item input.duplicate {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05);
}

.author-item input.duplicate:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

#changeJournalBtn {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    transition: all 0.2s ease;
}

#changeJournalBtn:hover {
    transform: translateX(-2px);
}

#authorContainer {
    padding-top: 20px;
}

#updateButtonContainer .alert i {
    animation: blink 1.5s cubic-bezier(0.4, 0, 1, 1) infinite;
}

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#publicationForm {
    width: 300px;
}

.copy-surname,
.copy-name {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.copy-surname i,
.copy-name i {
    font-size: 0.875rem;
}

.copy-surname:hover,
.copy-name:hover {
    color: #222;
    transition: all .35s ease;
}

.author-order {
    position: absolute;
    left: -60px;
    top: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
}

.order-number {
    width: 35px;
    font-weight: 500;
    font-size: 0.875rem;
    min-width: 20px;
    text-align: center;
}

.handle {
    cursor: grab;
    color: #adb5bd;
    font-size: 1.25rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.handle:hover {
    color: #6c757d;
}

.author-item-group.sortable-ghost {
    opacity: 0.5;
}

.author-item-group.sortable-chosen {
    background-color: #f8f9fa;
}

#toggleSortingBtn.active {
    background-color: #0d6efd;
    color: white;
}

#toggleSortingBtn.active:hover {
    background-color: #0b5ed7;
}