/* Google Material Design风格企业后台仪表盘样式 */
/* 全屏布局样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    font-family: 'Roboto', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.full-screen-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 - Google风格 */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    color: #1a73e8 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.navbar-brand img {
    max-height: 30px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(77, 76, 76, 0.2));
}

.navbar-nav .nav-link {
    color: rgba(0,0,0,0.87) !important;
    margin-right: 1.2rem;
    transition: all 0.3s;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link:hover {
    color: #1a73e8 !important;
    background-color: rgba(26, 115, 232, 0.05);
    transform: translateY(-1px);
}
.navbar-custom .nav-item.active .nav-link{color:var(--accent)!important;background-color:rgba(26,115,232,0.08);}

.navbar-toggler {
    border-color: rgba(26, 115, 232, 0.3);
    background: rgba(26, 115, 232, 0.05);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 115, 232, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 消息提示框 */
#messageBox span {
    margin-right: 20px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 12px 16px;
    font-size: 0.875rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
    color: #fff;
    background-color: #d93025;
    box-shadow: 0 2px 6px rgba(217, 48, 37, 0.3);
}

#tab_train .card,
#tab_train .card-header {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#tab_train .card-header {
    padding: 0.25rem 0;
    background-color: #f8f9fa !important;
}

#tab_train .card-body {
    padding: 0.25rem;
    background-color: #1a73e8 !important;
    color: #fff;
}

.tabtab {
    font-size: 0.9rem;
    width: 100%;
    line-height: 2.0;
    color: rgba(0, 0, 0, 0.87);
}

.tabtab td {
    padding: 0.5rem 0.1rem;
    color: rgba(0, 0, 0, 0.87);
}

.tabtab select {
    font-size: 0.9rem;
    font-weight: normal;
    padding: 0.5rem 0.75rem;
    height: calc(1.5em + 1rem + 2px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: #fff;
    color: rgba(0, 0, 0, 0.87);
    transition: all 0.3s;
}

.tabtab select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

.tabtab .form-control {
    font-size: 0.9rem;
    font-weight: normal;
    padding: 0.5rem 0.75rem;
    height: calc(1.5em + 1rem + 2px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: #fff;
    color: rgba(0, 0, 0, 0.87);
    transition: all 0.3s;
}

.tabtab .form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

.tabtabpic {
    font-size: 0.9rem;
    width: 100%;
    line-height: 2.8;
    color: rgba(0, 0, 0, 0.87);
}

.tabtabpic .form-control {
    font-size: 0.9rem;
    font-weight: normal;
    padding: 0.5rem 0.75rem;
    height: calc(1.5em + 1.5rem + 2px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: #fff;
    color: rgba(0, 0, 0, 0.87);
    transition: all 0.3s;
}

.tabtabpic .form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

.tabtab td {
    padding: 0.5rem 0.1rem;
    color: rgba(0, 0, 0, 0.87);
}

/* 内容区域样式 */
.content-section {
    flex:1;
    padding: 10px 5px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    overflow-y: auto;
}

/* 卡片样式 - Google Material Design */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 4px 2px rgba(60, 64, 67, 0.15);
    margin-bottom: 25px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.card:hover {
    /*transform: translateY(-4px);*/
    box-shadow: 0 4px 8px rgba(60, 64, 67, 0.3), 0 8px 24px 2px rgba(60, 64, 67, 0.2);
}

.card-header {
    background: #fff;
    color: #1a73e8;
    font-weight: 700;
    border-radius: 8px 8px 0 0 !important;
    padding: 0.6rem 1.2rem;/*padding: 1.2rem 1.5rem;*/
    font-size: 1.0rem;/*font-size: 1.1rem;*/
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 8px;
    /*color: #1a73e8;*/
}

.card-body {
    padding: 1.2rem 1.5rem;
    color: rgba(0, 0, 0, 0.87);
}

/* 侧边栏样式 */
.sidebar-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    background: #fff;
    margin-top: 10px;
    overflow: hidden;
}

.sidebar-card .card-header {
    background: #fff;
    color: #1a73e8;
    font-weight: 700;
    border-radius: 8px 8px 0 0 !important;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

.list-group-item {
    border: none;
    border-radius: 0;
    transition: all 0.2s;
    padding: 1rem 1.5rem;
    color: rgba(0, 0, 0, 0.87);
    background: transparent;
    position: relative;
    border-left: 3px solid transparent;
}

.list-group-item:first-child {
    border-top: none;
}

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

.list-group-item.active {
    background: rgba(26, 115, 232, 0.05);
    color: #1a73e8;
    font-weight: 500;
    border-left: 3px solid #1a73e8;
}

.list-group-item:hover:not(.active) {
    background: rgba(26, 115, 232, 0.03);
    color: #1a73e8;
    border-left: 3px solid rgba(26, 115, 232, 0.3);
    transform: translateX(4px);
}

.list-group-item i {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    color: rgba(0, 0, 0, 0.54);
    transition: all 0.3s;
}

.list-group-item:hover i,
.list-group-item.active i {
    color: #1a73e8;
}

/* 表单样式 */
.form-control {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: #fff;
    color: rgba(0, 0, 0, 0.87);
    transition: all 0.3s;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
    background: #fff;
}


/* 按钮样式 - Google风格 */
/*
.btn-primary {
    background: #1a73e8;
    border: none;
    padding: 0.425rem 0.625rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}
*/
.btn-primary:hover {
    background: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(60, 64, 67, 0.3), 0 8px 12px 6px rgba(60, 64, 67, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 4px 6px 2px rgba(60, 64, 67, 0.15);
}

/* 全屏容器 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 10px;
}

/* 页脚样式 */
footer {
    background: #f8f9fa;
    color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer a {
    color: rgba(0, 0, 0, 0.6);
    transition: color 0.3s;
}

footer a:hover {
    color: #1a73e8;
    text-decoration: none;
}

/* 模态框样式 */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.modal-header {
    background: #fff;
    color: #1a73e8;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 500;
    color: #1a73e8;
    font-size: 1.25rem;
}

.modal-body {
    color: rgba(0, 0, 0, 0.87);
    padding: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .col-md-2 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .col-md-10 {
        width: 100%;
        max-width: 100%;
    }
    
    .navbar-brand img {
        max-height: 30px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.8rem;
        margin: 0.3rem 0.5rem;
    }
    
    .card-header {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }    
    .btn-primary {
        padding: 0.625rem 1.25rem;
    }
}

/* 自定义删除按钮 */
.custom-delete-btn {
    background: #d93025;
    border: none;
    transition: all 0.3s;
    color: white;
}

.custom-delete-btn:hover {
    background: #c5221f;
    transform: scale(1.02);
}

/* 标签样式 */
.badge {
    padding: 0.25em 0.75em;
    font-size: 0.75em;
    border-radius: 4px;
    font-weight: 500;
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
    border: 1px solid rgba(26, 115, 232, 0.2);
}

/* 警告框样式 */
.alert {
    border-radius: 4px;
    border: 1px solid rgba(26, 115, 232, 0.2);
    background: rgba(26, 115, 232, 0.05);
    /*color: rgba(0, 0, 0, 0.87);*/
}

.alert-info {
    color: #1a73e8;
    border-color: rgba(26, 115, 232, 0.3);
}
.alert-danger {
    color: #fff;
    background-color: #d93025;
}

/* 输入组样式 */
.input-group-text {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.6);
}

/* 卡片中的图片 */
.card-img-top {
    border-radius: 8px 8px 0 0;
}

/* Google风格的悬停效果 */
.hover-elevation {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-elevation:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Material Design ripple效果 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.ripple:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30) translate(-50%, -50%);
        opacity: 0;
    }
}
/* 表单校验错误提示 */
.field-error-msg{display:block;font-size:0.78rem;line-height:1.3;margin-top:4px;color:#dc3545;position:relative;z-index:3}
/* 可点击预览的图片样式 */
.img-preview-box.previewable{cursor:zoom-in;transition:border-color .2s,box-shadow .2s}
.img-preview-box.previewable:hover{border-color:rgba(0,123,255,.4);box-shadow:0 0 0 3px rgba(0,123,255,.1)}
/* LOGO预览区 */
.img-preview-box{width:100%;height:150px;border-radius:6px;border:1px dashed rgba(0,0,0,0.15);display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fafafa}
.img-preview-box img{max-width:100%;max-height:150px;object-fit:contain}
.img-preview-box .no-img{color:#aaa;font-size:0.8rem;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
/* 产品行间距 */
.pd-row{margin-bottom:1.2rem;padding-bottom:1.2rem;border-bottom:1px solid rgba(0,0,0,0.06)}
.pd-row:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
/* 美化文件选择框 */
.file-upload-wrapper{position:relative;width:100%}
.file-upload-wrapper input[type="file"]{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}
.file-upload-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;font-size:0.8rem;color:#495057;background:#fff;border:1px solid #ced4da;border-radius:4px;transition:all .2s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-upload-wrapper:hover .file-upload-btn,.file-upload-wrapper input[type="file"]:focus + .file-upload-btn{border-color:#80bdff;box-shadow:0 0 0 3px rgba(0,123,255,.15);color:#007bff}
.file-upload-btn i{font-size:1rem;flex-shrink:0}
.file-upload-btn .file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px}