/* SVAKOM Plus 日志后台 - 自定义样式 */

:root {
    --svakom-primary: #6c5ce7;
    --svakom-primary-dark: #5641e0;
}

body.admin-body {
    background-color: #f5f6fa;
    min-height: 100vh;
}

/* ===== 登录页 ===== */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-title {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: #b2bec3;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.login-form .form-control:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15);
}

.btn-login {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a3f96);
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.login-footer {
    margin-top: 1.5rem;
    color: #b2bec3;
}

/* ===== 后台通用 ===== */
.navbar-brand {
    font-size: 1.1rem;
}

.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card .h3 {
    font-weight: 600;
}

.card {
    border: none;
    border-radius: 12px;
}

.card-header {
    border-bottom: 1px solid #f1f2f6;
    font-weight: 500;
    border-radius: 12px 12px 0 0 !important;
}

/* 案例ID 等宽字体高亮 */
.case-id {
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    background: #f1f2f6;
    padding: 2px 8px;
    border-radius: 6px;
    color: #6c5ce7;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.case-id-input {
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-weight: 600;
    color: #6c5ce7;
    letter-spacing: 0.5px;
}

/* 表格行 hover */
.table-hover tbody tr:hover {
    background-color: #f8f9ff;
}

/* 日志内容区 */
.log-content {
    margin: 0;
    padding: 1rem 1.25rem;
    background: #1e1e2e;
    color: #cdd6f4;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 12.5px;
    line-height: 1.55;
    white-space: pre;
    max-height: 70vh;
    overflow: auto;
    border-radius: 0 0 12px 12px;
}

.log-content code {
    color: inherit;
    background: transparent;
    padding: 0;
}

/* 滚动条美化 */
.log-content::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.log-content::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.log-content::-webkit-scrollbar-thumb {
    background: #45475a;
    border-radius: 5px;
}

.log-content::-webkit-scrollbar-thumb:hover {
    background: #585b70;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #b2bec3;
    border-radius: 5px;
}

/* 分页 */
.pagination .page-link {
    color: #6c5ce7;
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #e9ecef;
}

.pagination .page-item.active .page-link {
    background: #6c5ce7;
    border-color: #6c5ce7;
}

.pagination .page-link:hover {
    background: #f1f2f6;
    color: #5641e0;
}

.pagination .page-item.active .page-link:hover {
    background: #5641e0;
    color: #fff;
}

/* 按钮主题色 */
.btn-primary {
    background: #6c5ce7;
    border-color: #6c5ce7;
}

.btn-primary:hover {
    background: #5641e0;
    border-color: #5641e0;
}

.btn-outline-primary {
    color: #6c5ce7;
    border-color: #6c5ce7;
}

.btn-outline-primary:hover {
    background: #6c5ce7;
    border-color: #6c5ce7;
}
