/* Quest Completion Checkboxes */
.quest-checkbox {
    position: relative;
    margin-right: 0;
    flex-shrink: 0;
    align-self: center;
}

.quest-completion-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.quest-checkbox-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    position: relative;
    user-select: none;
}

.quest-checkbox.is-loading .quest-checkbox-label {
    pointer-events: none;
    cursor: wait;
}

.quest-checkbox-label:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.quest-completion-checkbox:checked + .quest-checkbox-label {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.quest-completion-checkbox:checked + .quest-checkbox-label i {
    opacity: 1;
    transform: scale(1);
}

.quest-checkbox-label i {
    font-size: 12px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.boss-item:hover,
.event-item:hover {
    transform: none !important;
}

/* Quest type badges: daily / weekly / other */
.quest-type-badge,
.quest-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.quest-type-badge i,
.quest-badge i {
    font-size: 0.65rem;
    opacity: 0.9;
}

.quest-type-badge.daily,
.quest-badge.daily {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.quest-type-badge.weekly,
.quest-badge.weekly {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.quest-type-badge.other,
.quest-badge.other {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.boss-info__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    min-width: 0;
}

.boss-info__title h4 {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

.boss-item__detail-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: auto;
    padding: 0;
    font-size: 0.7rem;
    line-height: 1;
    color: var(--gray-400);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.boss-item__detail-btn:hover {
    color: var(--primary-color, #2563eb);
    background: var(--gray-100);
}

.boss-info__location {
    margin: 0;
}

.boss-item.quest-completed {
    opacity: 0.65;
}

.boss-item {
    transition: opacity 0.25s ease, transform 0.25s ease, margin 0.25s ease, padding 0.25s ease, max-height 0.25s ease;
}

.boss-item--removing {
    opacity: 0 !important;
    transform: translateX(12px);
    max-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    pointer-events: none;
}

.boss-item.quest-completed .boss-info h4 {
    color: var(--gray-500);
    text-decoration: line-through;
}

.boss-item.quest-completed .status-badge {
    color: var(--gray-400) !important;
}

.boss-item.quest-completed .quest-type-badge {
    opacity: 0.9;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--success-color);
    border-color: var(--success-color);
}

.event-item.quest-completed {
    opacity: 0.8;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid var(--success-color);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.event-item.quest-completed .event-info h4::after {
    content: " (Completed)";
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9em;
    margin-left: 8px;
}

.event-item.quest-completed .event-info h4 {
    color: var(--gray-700);
    font-weight: 600;
}

.event-item.quest-completed .event-info p {
    color: var(--gray-600);
}

.event-item.quest-completed .status-badge {
    background: var(--gray-300);
    color: var(--gray-500);
    opacity: 0.7;
}

.status-done {
    background: var(--success-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
