/* Srtdash Admin Dashboard Styles */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #F3F8FB;
    color: #444;
}

/* 登录页面样式 */
.login-area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

.login-form-head {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
}

.login-form-head h4 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.login-form-head p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.login-form-body {
    padding: 40px 30px;
}

.form-gp {
    margin-bottom: 25px;
    position: relative;
}

.form-gp label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-gp input {
    width: 100%;
    height: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-gp input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-gp i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.submit-btn-area {
    text-align: center;
}

.submit-btn-area button {
    width: 100%;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn-area button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn-area button.btn-clear {
    background: #6c757d;
}

.submit-btn-area button.btn-clear:hover {
    background: #5a6268;
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.4);
}

/* 侧边栏样式 */
.page-container {
    width: 100%;
    height: 100vh;
    display: flex;
}

.sidebar-menu {
    width: 280px;
    height: 100%;
    background: #1a1d29;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    background: #1a1d29;
    border-bottom: 1px solid #2d3142;
}

.logo a {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo a i {
    margin-right: 10px;
    font-size: 24px;
    color: #667eea;
}

.main-menu {
    padding: 10px 0;
}

.menu-inner {
    padding: 0;
}

.metismenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 菜单标签 */
.menu-label {
    padding: 15px 20px 5px;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 菜单分隔线 */
.menu-divider {
    height: 1px;
    background: #2d3142;
    margin: 10px 15px;
}

/* 菜单项 */
.menu-item {
    position: relative;
}

.menu-item > a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #a0a3bd;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.menu-item > a:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
}

.menu-item.active > a {
    color: #fff;
    background: rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
}

/* 菜单图标 */
.menu-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    color: #667eea;
    font-size: 14px;
}

.menu-item.active .menu-icon {
    background: #667eea;
    color: #fff;
}

.menu-item > a:hover .menu-icon {
    background: #667eea;
    color: #fff;
}

/* 菜单箭头 */
.menu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.menu-item.has-submenu.open > a .menu-arrow {
    transform: rotate(90deg);
}

/* 子菜单 */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #13151f;
    display: none;
}

.submenu-item > a {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 65px;
    color: #6c757d;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

.submenu-item > a:hover,
.submenu-item.active > a {
    color: #fff;
    background: rgba(102, 126, 234, 0.1);
}

.submenu-item.active > a .submenu-dot {
    background: #667eea;
}

/* 子菜单圆点 */
.submenu-dot {
    width: 6px;
    height: 6px;
    background: #6c757d;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.submenu-item > a:hover .submenu-dot {
    background: #667eea;
}

/* 退出菜单项 */
.logout-item > a {
    color: #dc3545;
}

.logout-item .menu-icon {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.logout-item > a:hover {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.logout-item > a:hover .menu-icon {
    background: #dc3545;
    color: #fff;
}

/* 主内容区域 */
.main-content {
    width: calc(100% - 280px);
    margin-left: 280px;
    transition: all 0.3s ease;
}

/* 头部区域 */
.header-area {
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.nav-btn {
    margin-right: 20px;
    cursor: pointer;
}

.nav-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #666;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.search-box form {
    position: relative;
}

.search-box input {
    width: 250px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0 40px 0 15px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.notification-area {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
}

.notification-area li {
    margin-left: 25px;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.notification-area li span {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页面标题区域 */
.page-title-area {
    padding: 25px 30px;
    background: #fff;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.breadcrumbs {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 10px 0 0;
    padding: 0;
}

.breadcrumbs li {
    font-size: 14px;
    color: #666;
}

.breadcrumbs li a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumbs li span {
    color: #999;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #ccc;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin: 0;
}

/* 主内容 */
.main-content-inner {
    padding: 30px;
}

/* 仪表盘卡片 */
.dashboard-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-body {
    padding: 25px;
    color: #fff;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.card-content h6 {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 8px;
}

.card-content h2 {
    font-size: 32px;
    font-weight: 700;
}

.sbg1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sbg2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.sbg3 {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
}

.sbg4 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .sidebar-menu {
        left: -280px;
    }
    
    .sidebar-menu.active {
        left: 0;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1d29;
}

::-webkit-scrollbar-thumb {
    background: #2d3142;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d4256;
}

/* 侧边栏容器样式 */
.sidebar-container {
    width: 280px;
    height: 100%;
    background: #1a1d29;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99;
    transition: all 0.3s ease;
    overflow-y: auto;
}

/* 侧边栏加载状态 */
.sidebar-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #a0a3bd;
    font-size: 14px;
    animation: pulse 1.5s infinite;
}

/* 侧边栏加载失败状态 */
.sidebar-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #dc3545;
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

/* 加载动画 */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}