/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #337ab7;
    text-decoration: none;
}

a:hover {
    color: #23527c;
    text-decoration: underline;
}

/* 移除旧的容器样式 */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.main-container {
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: calc(100vh - 120px);
}

/* 头部样式 */
.main-header {
    background-color: #343a40;
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-logo h1 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: #fff;
    padding: 10px 15px;
    white-space: nowrap;
}

/* 导航栏样式 */
.navbar {
    padding: 0;
    justify-content: center;
}

.navbar-dark .navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    background-color: #343a40;
    border: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    transition: all 0.3s;
}

.dropdown-item:hover,
.dropdown-item.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* 用户下拉菜单样式 */
.header-user {
    margin-right: 15px;
}

.header-user .btn-dark {
    background-color: transparent;
    border: none;
}

.header-user .dropdown-menu {
    min-width: 200px;
}

.header-user .dropdown-item {
    display: flex;
    align-items: center;
}

.header-user .dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* 页面内容样式 */
.page-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: bold;
}

/* 响应式样式调整 */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #343a40;
        text-align: center;
    }
    
    .header-user {
        margin-top: 10px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .navbar-nav {
        margin: 0 auto;
    }
    
    .header-logo {
        margin-right: 0 !important;
    }
    
    .header-user {
        margin-left: 0 !important;
    }
}

/* 底部样式 */
.main-footer {
    background-color: #343a40;
    color: rgba(255,255,255,0.7);
    padding: 15px 0;
}

.main-footer p {
    margin: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
}

.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.btn-primary:hover {
    color: #fff;
    background-color: #286090;
    border-color: #204d74;
}

.btn-danger {
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
}

.btn-danger:hover {
    color: #fff;
    background-color: #c9302c;
    border-color: #ac2925;
}

.text-right {
    text-align: right;
}

/* 警告框样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

/* 登录页样式 */
.login-page, .reset-password-page {
    background-color: #f5f5f5;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container, .reset-container {
    width: 360px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.login-header, .reset-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1, .reset-header h1 {
    font-size: 24px;
    color: #333;
}

.login-form, .reset-form {
    padding: 0 20px;
}

/* 表格样式 */
.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

.table th {
    font-weight: bold;
    background-color: #f9f9f9;
}

.table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
}

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

.table-hover > tbody > tr:hover {
    background-color: #f5f5f5;
}

/* 分页样式 */
.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px;
}

.pagination > li {
    display: inline;
}

.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

.pagination > .active > a,
.pagination > .active > span {
    z-index: 2;
    color: #fff;
    cursor: default;
    background-color: #337ab7;
    border-color: #337ab7;
}

/* 权限控件样式 */
.permission-wrapper {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.permission-list {
    max-height: 300px;
    overflow-y: auto;
}

.permission-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.permission-item label {
    margin-bottom: 0;
    font-weight: normal;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .login-container,
    .reset-container {
        width: 90%;
    }
}

/* 删除可能与Bootstrap冲突的按钮样式 */
.btn-group {
    display: inline-flex;
}

.btn-outline-primary, .btn-outline-danger, .btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-group > .btn {
    position: relative;
    flex: 0 1 auto;
}

.btn-group .btn + .btn {
    margin-left: -1px;
}

.btn-group > .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group > .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* 确保图标正确显示 */
.btn i {
    display: inline-block;
    margin-right: 4px;
}

/* 确保与Bootstrap兼容的样式 */
.text-md-left {
    text-align: left !important;
}
.text-md-right {
    text-align: right !important;
}
@media (max-width: 768px) {
    .text-center {
        text-align: center !important;
    }
} 

/* 订单统计卡片样式 */
.stat-card {
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.stat-card-body {
    padding: 15px;
}

.stat-card-title {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
    opacity: 0.9;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
}

/* 订单状态徽章样式优化 */
.badge {
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 表格内容换行 */
.text-wrap {
    white-space: normal;
    word-break: break-word;
}

/* 响应式表格优化 */
@media (max-width: 768px) {
    .table-responsive table {
        border: 0;
    }
    
    .table-responsive table thead {
        display: none;
    }
    
    .table-responsive table tr {
        margin-bottom: 15px;
        display: block;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .table-responsive table td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }
    
    .table-responsive table td:last-child {
        border-bottom: 0;
    }
    
    .table-responsive table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
}

/* 分页容器样式 */
.pagination-container {
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.pagination-info {
    margin-top: 10px;
    color: #6c757d;
} 