/* 日志页面样式 */

/* 卡片头部右侧按钮样式 */
.list-container {
    padding: 0 35px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    color: #777;
}

.card-body {
    padding: 20px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.header-right {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-refresh {
    background-color: #28a745;
    color: white;
}

.btn-refresh:hover {
    background-color: #218838;
}

.btn-refresh i {
    font-size: 12px;
}

.btn-feedback {
    background-color: white;
    color: #666;
    border: 1px solid #ddd;
}

.btn-feedback:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.btn-feedback i {
    font-size: 12px;
}

/* 日志容器样式 */
.log-container {
    background-color: #2d3748;
    border-radius: 8px;
    height: 500px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.log-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: white;
}

/* 自定义滚动条 */
.log-content::-webkit-scrollbar {
    width: 8px;
}

.log-content::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* 日志条目样式 */
.log-entry {
    margin-bottom: 8px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* 时间戳样式 */
.timestamp {
    color: #63b3ed;
    font-weight: bold;
}

/* 用户名样式 */
.username {
    color: #f6ad55;
    font-weight: bold;
}

/* 成功状态样式 */
.success {
    color: #68d391;
    font-weight: bold;
}

/* 错误状态样式 */
.error {
    color: #fc8181;
    font-weight: bold;
}

/* 错误消息样式 */
.error-msg {
    color: #feb2b2;
    font-style: italic;
}

/* IP地址样式 */
.ip {
    color: #9f7aea;
    font-weight: bold;
}

/* 信息文本样式 */
.info {
    color: #a0aec0;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .log-container {
        margin: 10px;
        height: 400px;
    }
    
    .log-content {
        font-size: 12px;
        padding: 15px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 加载状态样式 */
.log-entry.loading {
    color: #a0aec0;
    font-style: italic;
}

.log-entry.error {
    color: #fc8181;
    font-weight: bold;
}
