@charset "utf-8";
@import url('https://unpkg.com/element-ui@2.15.14/lib/theme-chalk/index.css');

:root {
    --primary-color: #409EFF;
    --success-color: #67C23A;
    --warning-color: #E6A23C;
    --danger-color: #F56C6C;
    --info-color: #909399;
    --text-primary: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --border-color: #DCDFE6;
    --bg-color: #F5F7FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

.el-container {
    height: 100%;
}

.el-aside {
    background: #304156;
    transition: width 0.3s;
    overflow: hidden;
}

.el-aside::-webkit-scrollbar {
    width: 0;
}

.el-menu {
    border: none;
    background: transparent;
}

.el-menu--horizontal > .el-menu-item,
.el-menu--horizontal > .el-submenu .el-submenu__title {
    height: 50px;
    line-height: 50px;
}

.el-header {
    background: #ffd700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.el-main {
    background: var(--bg-color);
    padding: 20px;
    overflow-y: auto;
}

.el-menu--vertical .el-menu-item {
    height: 56px;
    line-height: 56px;
}

.el-menu-item, .el-submenu__title {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.el-menu-item:hover, .el-submenu__title:hover {
    background: #263445 !important;
    color: #fff;
}

.el-menu-item.is-active {
    color: var(--primary-color) !important;
    background: #1f8efa !important;
}

.el-submenu .el-menu {
    background: #1f2532;
}

.el-submenu .el-menu-item {
    padding-left: 50px !important;
}

.el-card {
    border-radius: 4px;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.el-card__header {
    padding: 15px 20px;
    border-bottom: 1px solid #ebeef5;
    font-weight: 600;
}

.el-card__body {
    padding: 20px;
}

.el-table {
    width: 100%;
    background: #fff;
}

.el-table th {
    background: #f5f7fa;
    color: #606266;
    font-weight: 600;
}

.el-button {
    border-radius: 4px;
}

.el-button--primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.el-button--primary:hover {
    background: #66b1ff;
    border-color: #66b1ff;
}

.el-breadcrumb {
    font-size: 14px;
    line-height: 1;
}

.el-breadcrumb__item {
    float: none;
}

.el-breadcrumb__inner {
    color: #606266;
}

.el-breadcrumb__inner.is-link:hover {
    color: var(--primary-color);
}

.el-breadcrumb__separator {
    margin: 0 8px;
    color: #909399;
}

.el-tag {
    border-radius: 4px;
}

.el-form-item {
    margin-bottom: 18px;
}

.el-input__inner {
    border-radius: 4px;
}

.el-pagination {
    margin-top: 20px;
    text-align: center;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
    background: var(--primary-color);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
}

.login-box {
    width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.user-dashboard {
    min-height: 100vh;
    /*background: var(--bg-color);*/
}

.user-header {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*color: #fff;*/
    padding: 0;
    height: 60px;
}

.user-header .el-menu {
    background: transparent;
    border: none;
}

.user-header .el-menu-item,
.user-header .el-submenu__title {
    color: #fff;
}

.user-header .el-menu-item:hover,
.user-header .el-submenu__title:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.user-sidebar {
    /*background: #fff;*/
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.user-sidebar .el-menu {
    background: #fff;
}

.user-sidebar .el-menu-item {
    color: var(--text-primary);
}

.user-sidebar .el-menu-item:hover {
    background: var(--bg-color) !important;
}

.user-sidebar .el-menu-item.is-active {
    background: #ecf5ff !important;
    color: var(--primary-color);
}

.page-content-wrapper {
    padding: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card .info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
}

.grid-content {
    background: #fff;
    border-radius: 4px;
    min-height: 100px;
    padding: 20px;
}

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

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

@media screen and (max-width: 768px) {
    .el-aside {
        position: fixed;
        left: -220px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s;
    }

    .el-aside.is-opened {
        left: 0;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-overlay.is-active {
        display: block;
    }

    .el-header {
        padding: 0 15px;
    }

    .el-main {
        padding: 15px;
    }

    .login-box {
        width: 90%;
        padding: 30px 20px;
    }

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

@media screen and (min-width: 769px) {
    .mobile-overlay {
        display: none !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}
