body.admin-body,
body.admin-login-body {
    background: #f5f7fb;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.admin-body {
    padding-top: 72px;
}

body.admin-login-body {
    min-height: 100vh;
    padding-top: 0;
    background: #f4f5f7;
}

a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.admin-navbar.navbar {
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.admin-navbar .navbar-brand {
    color: #111827 !important;
    font-weight: 700;
    letter-spacing: .02em;
}

.admin-navbar .navbar-nav > li > a {
    color: #4b5563 !important;
    font-weight: 500;
}

.admin-navbar .navbar-nav > li > a:hover,
.admin-navbar .navbar-nav > li > a:focus,
.admin-navbar .navbar-nav > .open > a,
.admin-navbar .navbar-nav > .open > a:hover,
.admin-navbar .navbar-nav > .open > a:focus {
    color: #111827 !important;
    background: transparent !important;
}

.admin-navbar .navbar-toggle {
    border-color: #e5e7eb;
}

.admin-navbar .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    padding: 8px;
}

.admin-navbar .dropdown-menu > li > a {
    border-radius: 10px;
    color: #374151;
    padding: 9px 14px;
}

.admin-navbar .dropdown-menu > li > a:hover {
    background: #f3f4f6;
    color: #111827;
}

.admin-shell,
.admin-home-shell,
.admin-content-shell,
.admin-login-shell {
    width: 100%;
}

.admin-page-column {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

.admin-form-section-title {
    margin: 28px 0 16px;
    padding-top: 4px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.admin-inline-note {
    margin-top: 10px;
}

.admin-form-actions {
    margin-top: 28px;
}

.admin-back-link {
    margin-top: 18px;
}

.admin-login-submit {
    margin-bottom: 0 !important;
}

.admin-page-header {
    margin-bottom: 24px;
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf2f7;
}

.admin-page-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
}

.admin-page-subtitle {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.admin-card,
.list-group,
.record-top-ad {
    border: 0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.admin-card {
    margin-bottom: 22px;
}

.admin-card-head {
    padding: 18px 22px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
}

.admin-card-head h2,
.admin-card-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
}

.admin-card-body,
.admin-card-footer {
    padding: 22px;
}

.admin-card-footer {
    border-top: 1px solid #edf2f7;
    background: #f9fafb;
    color: #6b7280;
}

.admin-card--danger .admin-card-head {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
}

.list-group-item-success {
    border: 0;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    color: #ffffff !important;
}

.list-group-item-success {
    padding: 18px 22px;
}

.admin-form-card .admin-card-body {
    padding-top: 26px;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    border: 1px solid #edf2f7;
}

.admin-toolbar .form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-toolbar .form-group {
    margin-right: 0;
}

.admin-toolbar-meta {
    color: #6b7280;
    font-size: 14px;
}

.admin-batch-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    padding: 16px 18px;
    border-top: 1px solid #edf2f7;
    background: #fbfcfe;
}

.admin-batch-bar select {
    min-width: 150px;
}

.admin-block-button {
    display: block;
    width: 100%;
}

.admin-stack-actions .btn + .btn,
.admin-block-button + .admin-block-button {
    margin-top: 12px;
}

.admin-table-wrap {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.admin-table-wrap .table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    background: #f8fafc;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 15px 18px;
}

.table > tbody > tr > td {
    border-top: 1px solid #edf2f7;
    color: #1f2937;
    padding: 16px 18px;
    vertical-align: middle !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: #fcfdff;
}

.table-hover > tbody > tr:hover,
.table-striped > tbody > tr:hover {
    background: #f8fafc;
}

.table code {
    padding: 3px 8px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #7c3aed;
    font-size: 12px;
}

.list-group {
    margin-bottom: 22px;
}

.list-group-item {
    border-color: #edf2f7;
    padding: 15px 18px;
}

.list-group-item:first-child {
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

.list-group-item:not(.list-group-item-success):hover {
    background: #f8fafc;
}

.admin-home-shell {
    max-width: 1180px;
    padding: 8px 15px 24px;
}

.admin-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.admin-shortcut-card {
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf2f7;
}

.admin-shortcut-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.admin-shortcut-card p {
    margin: 0 0 18px;
    color: #6b7280;
    line-height: 1.75;
    flex: 1;
}

.admin-shortcut-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.form-control {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #dbe1ea;
    box-shadow: none;
    color: #111827;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.input-group-addon {
    border-radius: 12px 0 0 12px;
    border-color: #dbe1ea;
    background: #f8fafc;
    color: #6b7280;
}

.input-group .form-control:last-child,
.input-group-addon:last-child {
    border-radius: 0 12px 12px 0;
}

.btn {
    border-radius: 12px;
    border: 0;
    font-weight: 600;
    padding: 10px 16px;
    box-shadow: none;
}

.btn:focus,
.btn:active:focus {
    outline: none !important;
}

.btn-primary {
    background: #111827;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1f2937;
    color: #ffffff;
}

.btn-success {
    background: #0f766e;
    color: #ffffff;
}

.btn-success:hover,
.btn-success:focus {
    background: #115e59;
    color: #ffffff;
}

.btn-info {
    background: #2563eb;
    color: #ffffff;
}

.btn-info:hover,
.btn-info:focus {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.btn-warning:hover,
.btn-warning:focus {
    background: #d97706;
    color: #ffffff;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #b91c1c;
    color: #ffffff;
}

.btn-default {
    background: #f3f4f6;
    color: #374151;
}

.btn-default:hover,
.btn-default:focus {
    background: #e5e7eb;
    color: #111827;
}

.btn-xs,
.btn-sm {
    border-radius: 10px;
}

.pagination {
    margin: 24px 0 0;
}

.pagination > li > a,
.pagination > li > span {
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 12px !important;
    margin: 0 4px 8px 0;
    min-width: 42px;
    text-align: center;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
    color: #9ca3af;
    background: #f9fafb;
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.admin-status-pill.is-success {
    background: #dcfce7;
    color: #166534;
}

.admin-status-pill.is-pending {
    background: #dbeafe;
    color: #1d4ed8;
}

.text-muted,
.help-block,
pre {
    color: #6b7280;
}

pre {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}

.modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.modal-header,
.modal-footer {
    border-color: #edf2f7;
}

.admin-empty {
    padding: 40px 24px;
    text-align: center;
    color: #9ca3af;
}

.admin-login-shell {
    min-height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.admin-login-card {
    width: 100%;
    max-width: 396px;
    padding: 34px 30px 30px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e7ebf0;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 24px;
}

.admin-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
}

.admin-login-card h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0;
}

.admin-input-wrap {
    position: relative;
}

.admin-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c1;
    pointer-events: none;
    z-index: 3;
}

.admin-login-card .form-control {
    height: 48px;
    padding-left: 46px;
    padding-right: 16px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.admin-login-card .form-control:focus {
    border-color: #111827;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.admin-input-captcha {
    display: flex;
}

.admin-input-captcha .form-control {
    flex: 1;
    border-radius: 12px 0 0 12px;
    padding-right: 12px;
    background: #ffffff !important;
}

.admin-input-captcha .admin-input-icon {
    left: 16px;
}

.admin-login-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: #f8fafc;
    flex-shrink: 0;
}

.admin-captcha-img {
    display: block;
    width: 100%;
    max-width: 112px;
    height: auto;
    max-height: 30px;
    cursor: pointer;
    object-fit: contain;
    background: transparent;
}

.admin-login-btn {
    display: block;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    letter-spacing: 0;
}

.admin-login-btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}

.admin-login-btn:active {
    transform: translateY(0);
}

.admin-login-submit {
    margin-bottom: 0 !important;
    margin-top: 20px !important;
}

.admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-inline-stack > * + * {
    margin-top: 16px;
}

.admin-section-gap {
    margin-top: 24px;
}

.admin-message-shell {
    max-width: 760px;
    margin: 36px auto 0;
}

.admin-message-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 24px;
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
}

.admin-message-card.is-success {
    border-color: #ccebdc;
}

.admin-message-card.is-info {
    border-color: #d7e8fb;
}

.admin-message-card.is-warning {
    border-color: #fde7be;
}

.admin-message-card.is-danger {
    border-color: #f8d0d0;
}

.admin-message-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.admin-message-card.is-success .admin-message-icon {
    background: #ecfdf3;
    color: #047857;
}

.admin-message-card.is-info .admin-message-icon {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-message-card.is-warning .admin-message-icon {
    background: #fff7ed;
    color: #d97706;
}

.admin-message-card.is-danger .admin-message-icon {
    background: #fef2f2;
    color: #dc2626;
}

.admin-message-content h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.admin-message-lead {
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.75;
}

.admin-message-body {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.85;
    word-break: break-word;
}

.admin-message-body hr {
    display: none;
}

.admin-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.admin-message-actions .btn {
    min-width: 132px;
}

.layui-layer-shade {
    background: rgba(15, 23, 42, 0.36) !important;
}

.layui-layer {
    border-radius: 22px !important;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18) !important;
    overflow: hidden;
}

.layui-layer-title {
    height: auto !important;
    padding: 18px 22px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.layui-layer-setwin {
    top: 16px !important;
    right: 16px !important;
}

.layui-layer-setwin .layui-layer-close1 {
    opacity: .82;
}

.layui-layer-content {
    color: #1f2937 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

.layui-layer-dialog .layui-layer-content,
.layui-layer-page .layui-layer-content {
    padding: 24px 24px 18px !important;
}

.layui-layer-dialog .layui-layer-ico {
    margin-top: 2px !important;
    border-radius: 50%;
    box-shadow: inset 0 0 0 8px rgba(243, 244, 246, 0.9);
}

.layui-layer-prompt .layui-layer-content {
    padding-bottom: 8px !important;
}

.layui-layer-prompt .layui-layer-input {
    width: calc(100% - 48px) !important;
    margin: 8px 24px 0 !important;
    border: 1px solid #dbe1ea !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-size: 14px !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.layui-layer-prompt .layui-layer-input:focus {
    border-color: #9ca3af !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08) !important;
}

.layui-layer-prompt textarea.layui-layer-input {
    min-height: 140px !important;
    padding: 12px 14px !important;
    resize: vertical;
}

.layui-layer-prompt input.layui-layer-input {
    height: 42px !important;
    padding: 0 14px !important;
}

.layui-layer-btn {
    padding: 14px 22px 22px !important;
    border-top: 1px solid #edf2f7 !important;
    background: #f9fafb !important;
}

.layui-layer-btn a {
    height: 40px !important;
    line-height: 38px !important;
    margin: 0 0 0 10px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #374151 !important;
    font-weight: 600 !important;
}

.layui-layer-btn a:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.layui-layer-btn .layui-layer-btn0 {
    border-color: #111827 !important;
    background: #111827 !important;
    color: #ffffff !important;
}

.layui-layer-btn .layui-layer-btn0:hover {
    background: #1f2937 !important;
    border-color: #1f2937 !important;
    color: #ffffff !important;
}

.layui-layer-msg {
    min-width: 220px !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
}

.layui-layer-msg .layui-layer-content {
    padding: 14px 18px !important;
    color: #ffffff !important;
    background: rgba(17, 24, 39, 0.94) !important;
    border-radius: 16px !important;
    text-align: center;
}

.layui-layer-loading {
    border-radius: 20px !important;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16) !important;
}

.layui-layer-loading .layui-layer-content {
    padding: 18px 18px 18px 56px !important;
    color: #374151 !important;
    background: #ffffff !important;
    border-radius: 20px !important;
}

@media (max-width: 991px) {
    body.admin-body {
        padding-top: 64px;
    }

    .admin-page-header {
        padding: 24px 20px;
    }

    .admin-login-card {
        padding: 32px 24px 28px;
    }

    .admin-login-addon {
        width: 122px;
        padding: 0 8px;
    }

    .admin-toolbar {
        padding: 16px;
    }

    .admin-message-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .admin-message-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 28px;
    }

    .layui-layer {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: 12px !important;
    }

    .layui-layer-btn {
        padding: 14px 16px 18px !important;
    }

    .layui-layer-btn a {
        margin-left: 8px !important;
    }
}
