﻿
/* --- Author List Styling --- */
.author-management-container {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.author-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.author-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.author-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: background 0.2s;
}

.author-item:hover {
    background: #f0f4f8;
    border-color: #d0e1f0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #444;
}

.btn-remove-author {
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.btn-remove-author:hover {
    color: #dc3545;
}



/* --- Author List Container --- */
.author-list-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Keeps children inside rounded corners */
    margin-bottom: 15px;
}

/* --- The Individual Author Row --- */
.author-list-row {
    display: flex;
    align-items: center; /* Perfect vertical alignment */
    justify-content: space-between; /* Pushes name left, actions right */
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.author-list-row:last-child {
    border-bottom: none;
}

.author-list-row:hover {
    background-color: #f8f9fa;
}

/* --- Left Side: Name & Avatar --- */
.author-name-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-name-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* --- Right Side: Actions (Eye + Delete) --- */
.author-actions-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Spacing between the Eye and the X */
}

/* --- Action Buttons (Common) --- */
.action-btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s;
    font-size: 1rem;
}

/* --- Specific: Visibility Toggle (Eye) --- */
.action-btn-icon.toggle-visible {
    color: #999; /* Default (Hidden state) */
}

.action-btn-icon.toggle-visible:hover {
    background-color: #f0f0f0;
    color: #666;
}

.toggle-visible {
    color: var(--color-primary, #003657) !important; /* Active (Visible) color */
    background-color: rgba(0, 54, 87, 0.05) !important;
}

/* --- Specific: Remove Button (X) --- */
.action-btn-icon.remove-author {
    color: #666;
}

.action-btn-icon.remove-author:hover {
    background-color: #fff1f0;
    color: #dc3545; /* Red on hover */
}