.layui-layout-admin .layui-logo {
    font-weight: bold;
    background-color: #20222A !important;
    color: #fff !important;
}

.layui-side-scroll {
    background-color: #20222A !important;
}

.layui-nav-tree .layui-nav-itemed>a,
.layui-nav-tree .layui-nav-item>a:hover {
    background-color: #009688 !important;
}

.layui-nav-tree .layui-this>a {
    background-color: #009688 !important;
}

.layui-body {
    background-color: #f2f2f2;
    position: absolute !important;
    left: 200px !important;
    right: 0 !important;
    top: 60px !important;
    bottom: auto !important;
    min-height: calc(100vh - 60px) !important;
    height: auto !important;
    overflow: visible !important;
}

@media screen and (max-width: 991px) {
    .layui-body {
        left: 0 !important;
    }
}

.layui-layout-admin .layui-side {
    position: fixed !important;
}

.admin-card {
    margin: 15px;
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.admin-stat-card {
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    color: #fff;
    display: block;
    transition: all .3s;
}

.admin-stat-card:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.admin-stat-num {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 5px;
}

.admin-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

.status-dot-on {
    background-color: #5FB878;
    box-shadow: 0 0 5px #5FB878;
    animation: layui-anim layui-anim-fadein 2s infinite;
}

.status-dot-off {
    background-color: #FF5722;
}

.img-preview {
    cursor: pointer;
    border-radius: 4px;
    transition: transform .2s;
}

.img-preview:hover {
    transform: scale(1.05);
}

/* Login page layout override */
.login-wrapper {
    background-color: #f2f2f2;
    background-image: linear-gradient(120deg, #20222A 0%, #2F4056 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 案件详情页基本资料 ========== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item-full {
    grid-column: 1 / -1;
}

.detail-label {
    width: 110px;
    min-width: 110px;
    font-size: 13px;
    color: #888;
    padding-right: 10px;
    line-height: 1.6;
}

.detail-label i {
    color: #009688;
    margin-right: 4px;
    font-size: 14px;
    width: 16px;
    text-align: center;
    display: inline-block;
}

.detail-value {
    flex: 1;
    font-size: 13px;
    color: #333;
    word-break: break-all;
    line-height: 1.6;
}

.detail-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 3px;
    font-size: 12px;
}

.detail-badge-cat {
    background: #e8f4f8;
    color: #1E9FFF;
}

.detail-badge-success {
    background: #e6f7ed;
    color: #009688;
}

.detail-badge-warn {
    background: #fff3e0;
    color: #FF9800;
}

.coord-sep {
    color: #ccc;
    margin: 0 4px;
}