/* 基础背景 */
.bg-dark {
    background: linear-gradient(135deg, #0c0c1e 0%, #1a1a3e 100%);
    min-height: 100vh;
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f, #4d96ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
}

/* 渐变动画 */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 脉冲动画 */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 表格容器 */
.serverlog-table-container {
    width: 98%;
    max-width: 1800px;
    margin: 20px auto;
    background: rgba(20, 25, 40, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(77, 150, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* 深色工具栏 */
.dark-toolbar {
    padding: 20px !important;
}

/* ========== 新的原生过滤表单样式 ========== */
.admin-filter-form {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input,
.filter-select {
    height: 42px;
    background: rgba(30, 35, 50, 0.9);
    border: 1px solid rgba(77, 150, 255, 0.4);
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
}

.filter-input:focus,
.filter-select:focus {
    background: rgba(40, 45, 60, 0.9);
    border-color: #4d96ff;
    box-shadow: 0 0 0 0.2rem rgba(77, 150, 255, 0.25);
    color: #ffffff;
    outline: none;
}

.filter-input::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

/* 针对select的特殊样式 */
.filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.filter-select option {
    background-color: #1e2332;
    color: #e2e8f0;
}

.filter-btn {
    height: 42px;
    background: linear-gradient(135deg, #4d96ff, #6bcf7f);
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 6px;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(77, 150, 255, 0.4);
    opacity: 0.9;
}

.filter-btn:active {
    transform: translateY(0);
}

/* ========== 自定义表格样式 ========== */
.custom-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    margin-top: 15px;
}

.custom-dark-table {
    width: 100%;
    border-collapse: collapse;
    color: #e2e8f0;
}

.custom-dark-table th {
    background: rgba(25, 30, 45, 0.9);
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 2px solid rgba(77, 150, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.custom-dark-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.custom-dark-table tr:hover td {
    background: rgba(77, 150, 255, 0.15);
}

.custom-dark-table tr:nth-child(even) {
    background-color: rgba(30, 35, 50, 0.2);
}

/* ========== 自定义分页样式 ========== */
.custom-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(15, 20, 35, 0.9);
    border-top: 1px solid rgba(77, 150, 255, 0.2);
    color: #94a3b8;
    border-radius: 0 0 12px 12px;
}

.page-info {
    font-size: 0.9rem;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    background: rgba(30, 35, 50, 0.8);
    border: 1px solid rgba(77, 150, 255, 0.2);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(77, 150, 255, 0.2);
    color: #ffffff;
    border-color: rgba(77, 150, 255, 0.4);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.active {
    background: linear-gradient(135deg, #4d96ff, #6bcf7f);
    border-color: transparent;
    color: white;
}

.page-select {
    background: rgba(30, 35, 50, 0.9);
    border: 1px solid rgba(77, 150, 255, 0.4);
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 4px;
    outline: none;
}

/* 滚动条 */
.serverlog-table-container ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.serverlog-table-container ::-webkit-scrollbar-track {
    background: rgba(30, 35, 50, 0.5);
    border-radius: 4px;
}

.serverlog-table-container ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4d96ff, #6bcf7f);
    border-radius: 4px;
}

.serverlog-table-container ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6bcf7f, #4d96ff);
}

/* ========== 响应式调整 ========== */
@media (max-width: 1200px) {
    .admin-filter-form {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .serverlog-table-container {
        width: 95%;
    }
    
    .serverlog-table-container .dark-toolbar {
        padding: 15px !important;
    }
}

@media (max-width: 768px) {
    .serverlog-table-container {
        margin: 10px auto;
        padding: 10px;
        width: 100%;
        border-radius: 8px;
    }
    
    .serverlog-table-container .dark-toolbar {
        padding: 12px !important;
    }
    
    .admin-filter-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* 移动端卡片视图 */
    .custom-dark-table thead {
        display: none;
    }
    
    .custom-dark-table tr {
        display: block;
        margin-bottom: 15px;
        background: rgba(30, 35, 50, 0.6);
        border-radius: 8px;
        border: 1px solid rgba(77, 150, 255, 0.2);
        padding: 10px;
    }
    
    .custom-dark-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: right;
    }
    
    .custom-dark-table td:last-child {
        border-bottom: none;
    }
    
    .custom-dark-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #94a3b8;
        text-align: left;
        padding-right: 15px;
    }
    
    .custom-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .custom-dark-table td {
        font-size: 0.85rem;
    }
}

.dropdown-menu[data-popper-placement=bottom-start].show+.dropdown-menu-arrow, .dropdown-menu[data-bs-popper=none].show+.dropdown-menu-arrow {
    display: none !important;
}

/* 最简单的footer样式覆盖 */
.footer {
    color: #94a3b8 !important;
    padding: 1rem 0 !important;
}

.footer a {
    color: #4d96ff !important;
}

.footer a:hover {
    color: #6bcf7f !important;
}

.layout-gotop {
    display: none;
}

.table-loading, .table-loader, .form-loader {
    border: none !important;
}