/* 观看历史下拉框优化样式 */

/* 下拉框容器整体样式增强 */
.dropdown-content.w-96 {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 历史记录项目样式 */
#historyListDropdown a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#historyListDropdown a:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

#historyListDropdown a:last-child {
    border-bottom: none;
}

/* 缩略图样式 */
#historyListDropdown img {
    width: 80px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 文本内容样式 */
#historyListDropdown .flex-1 {
    overflow: hidden;
}

#historyListDropdown .text-white {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#historyListDropdown .text-gray-400 {
    font-size: 12px;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 进度条样式 */
.watch-progress {
    display: inline-block;
    padding: 2px 8px;
    background-color: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Tab标签样式优化 */
.tab-header {
    position: relative;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #9CA3AF;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-header:hover {
    color: #E5E7EB;
}

.tab-header.active {
    color: #FFFFFF;
    border-bottom-color: #3B82F6;
}

/* 筛选药片按钮样式 - 已移除，保留以备将来使用 */

/* 空状态样式优化 */
.empty-state {
    padding: 48px 24px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: #6B7280;
    margin-bottom: 16px;
}

.empty-state p {
    color: #9CA3AF;
    font-size: 14px;
    margin-bottom: 12px;
}

/* 加载状态样式 */
.loading-state {
    padding: 48px 24px;
    text-align: center;
}

.loading-state i {
    font-size: 32px;
    color: #60A5FA;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 预约输入框样式 */
#reservationInput {
    padding: 8px 12px;
    background-color: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

#reservationInput:focus {
    border-color: #3B82F6;
    background-color: rgba(31, 41, 55, 1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#reservationInput::placeholder {
    color: #6B7280;
}

/* 预约按钮样式 */
.reservation-btn {
    padding: 8px 16px;
    background-color: #3B82F6;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reservation-btn:hover {
    background-color: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* 查看更多链接样式 */
.view-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #60A5FA;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.view-more-link:hover {
    color: #93BBFC;
    background-color: rgba(59, 130, 246, 0.1);
}

.view-more-link i {
    margin-left: 4px;
    font-size: 12px;
}

/* 滚动条样式 */
#historyListDropdown::-webkit-scrollbar,
#followingListDropdown::-webkit-scrollbar,
#reservationListDropdown::-webkit-scrollbar {
    width: 6px;
}

#historyListDropdown::-webkit-scrollbar-track,
#followingListDropdown::-webkit-scrollbar-track,
#reservationListDropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#historyListDropdown::-webkit-scrollbar-thumb,
#followingListDropdown::-webkit-scrollbar-thumb,
#reservationListDropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#historyListDropdown::-webkit-scrollbar-thumb:hover,
#followingListDropdown::-webkit-scrollbar-thumb:hover,
#reservationListDropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dropdown-content.w-96 {
        width: 90vw;
        max-width: 384px;
    }
    
    #historyListDropdown img {
        width: 60px;
        height: 40px;
    }
}