/* ------------------------------------------------------------------
   光年（LightYear）后台模板的原生样式片段
   加载动画摘自模板 css/style.min.css；
   通知条与对话框按钮的取值取自模板自带的 Bootstrap 3.3.7 —— 本站页面用的是
   Bootstrap 5，同名类长相不同，这里按模板的数值补回来，保证效果和模板一致。
   ------------------------------------------------------------------ */

/* 页面加载动画 */
#lyear-loading {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9990;
    background: rgba(0, 0, 0, .0325);
}

#lyear-loading .spinner-border {
    z-index: 999999;
    position: fixed;
    left: 50%;
    top: 50%;
}

/* 通知条：bootstrap-notify 生成 <div class="alert alert-{type}"> */
.alert[data-notify="container"] {
    padding: 15px;
    margin-bottom: 0;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert[data-notify="container"].alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.alert[data-notify="container"].alert-info    { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }
.alert[data-notify="container"].alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }
.alert[data-notify="container"].alert-danger  { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }

.alert[data-notify="container"] [data-notify="icon"] { margin-right: 4px; }

/* 右上角 ×：Bootstrap 5 没有 .close，按模板的写法补 */
.alert[data-notify="container"] .close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.alert[data-notify="container"] .close:hover { opacity: .5; }

/* 对话框按钮：Bootstrap 5 没有 btn-default，颜色也换成了自己的蓝 */
.jconfirm-buttons .btn-default { color: #333; background-color: #fff; border-color: #ccc; }
.jconfirm-buttons .btn-default:hover { color: #333; background-color: #e6e6e6; border-color: #adadad; }
.jconfirm-buttons .btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4; }
.jconfirm-buttons .btn-primary:hover { color: #fff; background-color: #286090; border-color: #204d74; }
.jconfirm-buttons .btn-danger { color: #fff; background-color: #d9534f; border-color: #d43f3a; }
.jconfirm-buttons .btn-danger:hover { color: #fff; background-color: #c9302c; border-color: #ac2925; }

/* 页面里的提示占位节点：等脚本接管，避免闪现。
   只匹配我们自己的占位值，别碰 bootstrap-notify 生成的 data-notify="container" */
div[data-notify="success"],
div[data-notify="info"],
div[data-notify="warning"],
div[data-notify="danger"] { display: none; }
