/* QQ机器人自动过审助手 - 样式表 */

/* 自定义动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

/* 进度条动画 */
.progress-animation {
    transition: width 1s ease-in-out;
}

/* 按钮悬停效果 */
.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
}

.btn-hover:active {
    transform: translateY(1px);
}

/* 卡片效果 */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card {
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 180, 42, 0.15);
}

.command-card {
    transition: all 0.3s ease;
}

.command-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
}

/* 状态指示器 */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-online {
    background-color: #00B42A;
    box-shadow: 0 0 8px rgba(0, 180, 42, 0.6);
}

.status-offline {
    background-color: #F53F3F;
}

.status-pending {
    background-color: #FF7D00;
    animation: pulse-slow 1.5s infinite;
}

/* 日志类型样式 */
.log-type-info {
    border-left: 3px solid #0EA5E9;
    background-color: rgba(14, 165, 233, 0.05);
}

.log-type-success {
    border-left: 3px solid #00B42A;
    background-color: rgba(0, 180, 42, 0.05);
}

.log-type-warning {
    border-left: 3px solid #FF7D00;
    background-color: rgba(255, 125, 0, 0.05);
}

.log-type-error {
    border-left: 3px solid #F53F3F;
    background-color: rgba(245, 63, 63, 0.05);
}

.log-type-debug {
    border-left: 3px solid #86909C;
    background-color: rgba(134, 144, 156, 0.05);
}

/* 步骤样式 */
.step-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.step-item:hover {
    transform: translateX(4px);
    background-color: rgba(14, 165, 233, 0.05);
}

.step-item.active {
    border-left-color: #0EA5E9;
    background-color: rgba(14, 165, 233, 0.1);
}

.step-item.completed {
    border-left-color: #00B42A;
    background-color: rgba(0, 180, 42, 0.05);
}

.step-item.pending {
    border-left-color: #FF7D00;
}

/* 复制按钮效果 */
.copy-btn {
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-success {
    background-color: #00B42A !important;
    color: white !important;
}

/* 自定义滚动条 */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}



/* Admin Panel Enhancements */

/* Glassmorphism Sidebar */
.glass-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
}

.sidebar-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #0EA5E9;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    opacity: 0;
}

.sidebar-link:hover {
    background: rgba(14, 165, 233, 0.08);
    transform: translateX(4px);
    color: #0EA5E9;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

/* Modern Card Design */
.admin-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(243, 244, 246, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.2);
}

/* Enhanced Table */
.admin-table-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #f3f4f6;
}

.admin-table thead {
    background: #f8fafc;
}

.admin-table th {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tr {
    transition: background-color 0.2s ease;
}

.admin-table tr:hover td {
    background-color: #f8fafc;
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.badge::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.6;
}

/* Dashboard Stats Icon */
.stats-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.admin-card:hover .stats-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Custom Modal */
.modal-backdrop {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Smooth Form Inputs */
.form-input {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.form-input:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}


/* Dropdown menu (admin) */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu.hidden { display: none !important; }

