/* 
 * FastAdmin 现代化主题样式
 * 基于HTML原型设计，全局应用绿色主题
 * 作者：尊扬科技小小强
 * 日期：2026年03月12日 08:20
 */

/* ===== 全局样式重置 ===== */
body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    background-color: #f8fafc !important;
    color: #334155 !important;
    font-size: 14px !important;
}

/* ===== 主要布局容器 ===== */
.wrapper {
    background-color: #f8fafc !important;
}

/* ===== 内容区域字体优化 ===== */
.content-wrapper {
    background-color: #f8fafc !important;
    font-size: 14px !important;
}

.content-wrapper * {
    font-size: inherit !important;
}

.content-wrapper .content {
    font-size: 14px !important;
}

.content-wrapper .content p,
.content-wrapper .content div,
.content-wrapper .content span,
.content-wrapper .content td,
.content-wrapper .content th,
.content-wrapper .content li,
.content-wrapper .content a {
    font-size: 14px !important;
}

/* 表单字体优化 */
.form-control {
    font-size: 14px !important;
}

.form-group label {
    font-size: 14px !important;
}

/* 按钮字体优化 */
.btn {
    font-size: 14px !important;
}

/* 面包屑字体优化 */
#ribbon .breadcrumb > li {
    font-size: 14px !important;
}

/* ===== 侧边栏现代化 ===== */
.main-sidebar {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.main-sidebar .logo {
    background: rgba(6, 78, 59, 0.8) !important;
    border-bottom: 1px solid #047857 !important;
    color: #a7f3d0 !important;
}

.main-sidebar .logo:hover {
    background: rgba(6, 78, 59, 0.9) !important;
}

.main-sidebar .logo .logo-lg,
.main-sidebar .logo .logo-mini {
    color: #a7f3d0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
}

/* 侧边栏菜单 */
.sidebar-menu > li > a {
    color: #d1fae5 !important;
    border-radius: 0.5rem !important;
    margin: 0.25rem 0.5rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.sidebar-menu > li > a:hover,
.sidebar-menu > li.active > a,
.sidebar-menu > li.menu-open > a {
    background-color: #059669 !important;
    color: white !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.sidebar-menu .treeview-menu > li > a {
    color: #a7f3d0 !important;
    padding-left: 2.5rem !important;
    font-size: 13px !important;
    border-radius: 0.375rem !important;
    margin: 0.125rem 0.5rem !important;
    font-weight: 500 !important;
}

.sidebar-menu .treeview-menu > li > a:hover,
.sidebar-menu .treeview-menu > li.active > a {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #ecfdf5 !important;
}

/* ===== 顶部导航栏 ===== */
.main-header {
    background: white !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.main-header .navbar {
    background: transparent !important;
    border: none !important;
}

.main-header .navbar-nav > li > a {
    color: #64748b !important;
}

.main-header .navbar-nav > li > a:hover {
    background: #f8fafc !important;
    color: #059669 !important;
}

/* ===== 内容区域 ===== */
.content-wrapper {
    background-color: #f8fafc !important;
}

/* 面包屑导航 */
#ribbon {
    background: white !important;
    border-radius: 0.75rem !important;
    margin: 1.5rem !important;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f1f5f9 !important;
}

#ribbon .breadcrumb {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#ribbon .breadcrumb > li {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
}

#ribbon .breadcrumb > li + li:before {
    content: "/" !important;
    color: #cbd5e1 !important;
    padding: 0 0.5rem !important;
}

#ribbon .breadcrumb > li > a {
    color: #059669 !important;
    text-decoration: none !important;
}

#ribbon .breadcrumb > li > a:hover {
    color: #047857 !important;
    text-decoration: underline !important;
}

/* ===== 卡片和面板 ===== */
.panel,
.box {
    background: white !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 1.5rem !important;
    overflow: hidden !important;
}

.panel-heading,
.box-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.panel-title,
.box-title {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    margin: 0 !important;
}

.panel-body,
.box-body {
    padding: 1.5rem !important;
}

/* ===== 按钮现代化 ===== */
.btn {
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
}

.btn-primary {
    background: #059669 !important;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #047857 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.4) !important;
    color: white !important;
}

.btn-success {
    background: #10b981 !important;
    color: white !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background: #059669 !important;
    transform: translateY(-1px) !important;
    color: white !important;
}

.btn-default {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

.btn-info {
    background: #0ea5e9 !important;
    color: white !important;
}

.btn-warning {
    background: #f59e0b !important;
    color: white !important;
}

.btn-danger {
    background: #ef4444 !important;
    color: white !important;
}

/* 小按钮 */
.btn-xs {
    font-size: 12px !important;
    padding: 0.25rem 0.5rem !important;
}

.btn-sm {
    font-size: 13px !important;
    padding: 0.375rem 0.75rem !important;
}

.btn-lg {
    font-size: 16px !important;
    padding: 0.75rem 1.5rem !important;
}
/* ===== 表格现代化 ===== */
.table {
    background: white !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f1f5f9 !important;
    font-size: 14px !important;
}

.table thead th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 1rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
}

.table tbody td {
    padding: 1rem !important;
    border-bottom: 1px solid #f8fafc !important;
    color: #475569 !important;
    font-size: 14px !important;
    border-top: none !important;
}

.table tbody tr:hover {
    background: rgba(248, 250, 252, 0.8) !important;
    transition: background-color 0.3s ease !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(248, 250, 252, 0.5) !important;
}

/* Bootstrap Table 特定样式 */
.bootstrap-table .fixed-table-container {
    border: 1px solid #f1f5f9 !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    font-size: 14px !important;
}

.bootstrap-table .fixed-table-toolbar {
    background: white !important;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 14px !important;
}

.bootstrap-table .fixed-table-pagination {
    background: white !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 1rem 1.5rem !important;
    font-size: 14px !important;
}

.bootstrap-table .fixed-table-body {
    font-size: 14px !important;
}

.bootstrap-table .fixed-table-body table {
    font-size: 14px !important;
}

.bootstrap-table .fixed-table-body table td,
.bootstrap-table .fixed-table-body table th {
    font-size: 14px !important;
}

/* ===== 表单现代化 ===== */
.form-control {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    color: #475569 !important;
}

.form-control:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(209, 250, 229, 0.5) !important;
    background: white !important;
    outline: none !important;
}

.form-group label {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 0.5rem !important;
}

.input-group-addon {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 14px !important;
}

.input-group .form-control:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .form-control:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* 表单帮助文本 */
.help-block {
    font-size: 13px !important;
    color: #64748b !important;
}

/* 表单验证文本 */
.text-danger {
    font-size: 13px !important;
}

.text-success {
    font-size: 13px !important;
}

.text-warning {
    font-size: 13px !important;
}

.text-info {
    font-size: 13px !important;
}

/* ===== 模态框现代化 ===== */
.modal-content {
    border-radius: 1rem !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.modal-header {
    background: #059669 !important;
    color: white !important;
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1rem 1.5rem !important;
    border-bottom: none !important;
}

.modal-title {
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: white !important;
}

.modal-header .close {
    color: white !important;
    opacity: 0.8 !important;
    font-size: 1.5rem !important;
}

.modal-header .close:hover {
    opacity: 1 !important;
}

.modal-body {
    padding: 2rem !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

.modal-footer {
    padding: 1rem 2rem !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
    border-radius: 0 0 1rem 1rem !important;
}

/* ===== 分页现代化 ===== */
.pagination > li > a,
.pagination > li > span {
    color: #64748b !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.375rem !important;
    margin: 0 0.125rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.pagination > li > a:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.pagination > .active > a,
.pagination > .active > span {
    background: #059669 !important;
    border-color: #059669 !important;
    color: white !important;
}

/* 分页信息文本 */
.pagination-info {
    font-size: 14px !important;
    color: #64748b !important;
}

/* ===== 标签和徽章 ===== */
.label {
    padding: 0.25rem 0.5rem !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.label-success {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.label-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.label-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.label-info {
    background: #dbeafe !important;
    color: #1e40af !important;
}

.label-primary {
    background: #dcfce7 !important;
    color: #059669 !important;
}

/* Badge 样式 */
.badge {
    font-size: 12px !important;
    padding: 0.25rem 0.5rem !important;
}

/* ===== 进度条 ===== */
.progress {
    background: #f1f5f9 !important;
    border-radius: 9999px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.progress-bar {
    background: #059669 !important;
    border-radius: 9999px !important;
}

.progress-bar-success {
    background: #10b981 !important;
}

.progress-bar-warning {
    background: #f59e0b !important;
}

.progress-bar-danger {
    background: #ef4444 !important;
}

/* ===== 警告框 ===== */
.alert {
    border-radius: 0.75rem !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1rem !important;
}

.alert-success {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.alert-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.alert-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.alert-info {
    background: #dbeafe !important;
    color: #1e40af !important;
}

/* ===== 导航标签 ===== */
.nav-tabs {
    border-bottom: 1px solid #e2e8f0 !important;
    margin-bottom: 1rem !important;
}

.nav-tabs > li > a {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    color: #64748b !important;
    border: 1px solid transparent !important;
    margin-right: 0.25rem !important;
}

.nav-tabs > li > a:hover {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #059669 !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: white !important;
    border-color: #e2e8f0 #e2e8f0 white !important;
    color: #059669 !important;
}

/* ===== 工具提示 ===== */
.tooltip-inner {
    background: #1e293b !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 13px !important;
}

.tooltip.top .tooltip-arrow {
    border-top-color: #1e293b !important;
}

.tooltip.bottom .tooltip-arrow {
    border-bottom-color: #1e293b !important;
}

.tooltip.left .tooltip-arrow {
    border-left-color: #1e293b !important;
}

.tooltip.right .tooltip-arrow {
    border-right-color: #1e293b !important;
}

/* ===== 下拉菜单 ===== */
.dropdown-menu {
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 0 !important;
    font-size: 14px !important;
}

.dropdown-menu > li > a {
    padding: 0.5rem 1rem !important;
    color: #475569 !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.dropdown-menu > li > a:hover {
    background: #f8fafc !important;
    color: #059669 !important;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0 !important;
    }
    
    #ribbon {
        margin: 1rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .panel-body,
    .box-body {
        padding: 1rem !important;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem !important;
        font-size: 13px !important;
    }
    
    body {
        font-size: 13px !important;
    }
    
    .content-wrapper {
        font-size: 13px !important;
    }
}

/* ===== 通用文本大小修复 ===== */
.panel-title,
.box-title {
    font-size: 16px !important;
}

.panel-body p,
.box-body p,
.content p {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.panel-body div,
.box-body div,
.content div {
    font-size: 14px !important;
}

.panel-body span,
.box-body span,
.content span {
    font-size: 14px !important;
}

/* 列表文本 */
.list-group-item {
    font-size: 14px !important;
}

/* 导航文本 */
.nav > li > a {
    font-size: 14px !important;
}

/* 模态框文本 */
.modal-body {
    font-size: 14px !important;
}

.modal-body p,
.modal-body div,
.modal-body span {
    font-size: 14px !important;
}

/* 警告框文本 */
.alert {
    font-size: 14px !important;
}

/* 信息框文本 */
.info-box-text {
    font-size: 13px !important;
}

.info-box-number {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* 小部件文本 */
.small-box .inner h3 {
    font-size: 24px !important;
}

.small-box .inner p {
    font-size: 14px !important;
}

/* 树形组件文本 */
.jstree-default .jstree-anchor {
    font-size: 14px !important;
}

/* 选择器文本 */
.selectpicker {
    font-size: 14px !important;
}

.bootstrap-select .dropdown-menu li a {
    font-size: 14px !important;
}

/* 日期选择器文本 */
.daterangepicker {
    font-size: 14px !important;
}

/* 搜索框文本 */
.form-control[type="search"] {
    font-size: 14px !important;
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards !important;
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== 页脚 ===== */
.main-footer {
    background: white !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 1rem 1.5rem !important;
}

.main-footer a {
    color: #059669 !important;
}

.main-footer a:hover {
    color: #047857 !important;
}

/* ===== 仪表板底部模块 ===== */
.content-wrapper .content {
    background: transparent !important;
}

.content-wrapper .content .row {
    margin: 0 !important;
}

.content-wrapper .content .row .col-md-12,
.content-wrapper .content .row .col-lg-12,
.content-wrapper .content .row .col-sm-12,
.content-wrapper .content .row .col-xs-12 {
    padding: 0.75rem !important;
}

/* 仪表板卡片容器 */
.content .row > div {
    padding: 0.75rem !important;
}

.content .row > div > .panel,
.content .row > div > .box {
    background: white !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 0 !important;
    height: 100% !important;
}

/* 确保所有内容区域都有背景 */
.content-wrapper .content > .row > div > * {
    background: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f1f5f9 !important;
}

/* 特殊处理图表和统计卡片 */
.info-box,
.small-box {
    background: white !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.info-box-content,
.small-box-footer {
    color: #475569 !important;
}

.info-box-number,
.small-box h3 {
    color: #1e293b !important;
    font-weight: 700 !important;
}

/* 图表容器 */
.chart-container,
.chart-responsive {
    background: white !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* 确保所有文本都可见 */
.content-wrapper .content * {
    color: #475569 !important;
}

.content-wrapper .content h1,
.content-wrapper .content h2,
.content-wrapper .content h3,
.content-wrapper .content h4,
.content-wrapper .content h5,
.content-wrapper .content h6 {
    color: #1e293b !important;
}

/* 修复可能的透明背景问题 */
.content-wrapper .content .panel-body,
.content-wrapper .content .box-body {
    background: white !important;
    color: #475569 !important;
}

.content-wrapper .content .panel-heading,
.content-wrapper .content .box-header {
    background: #f8fafc !important;
    color: #1e293b !important;
}