/* 德阳七猫智卡系统 2.0版 通用样式 */

/* 通用设置 */
body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 登录页样式 */
.login-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    min-height: 100vh;
    width: 250px;
    transition: all 0.3s;
    z-index: 100;
}

.sidebar.collapsed {
    margin-left: -250px;
}

.sidebar-header {
    padding: 1.5rem;
}

.sidebar .nav-link {
    color: #3a3b45;
    border-radius: 0.25rem;
    margin: 0.2rem 0;
}

.sidebar .nav-link:hover {
    background-color: rgba(78, 115, 223, 0.1);
    color: #4e73df;
}

.sidebar .nav-link.active {
    background-color: rgba(78, 115, 223, 0.2);
    color: #4e73df;
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

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

.main-content.expanded {
    width: 100%;
}

/* 卡片样式 */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    border-radius: 0.5rem;
}

.card-header {
    font-weight: 700;
    padding: 1rem 1.25rem;
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
}

/* 导航栏样式 */
.navbar {
    padding: 0.75rem 1rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

/* 日历页面样式 */
.calendar-legend .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 5px;
}

/* 日历日期选择样式 */
.calendar-day {
    cursor: pointer;
    user-select: none;
    text-align: center;
    padding: 8px;
    font-weight: bold;
}

.calendar-day:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.calendar-day.selected {
    background-color: rgba(0, 123, 255, 0.3) !important;
    box-shadow: inset 0 0 0 2px #007bff;
}

/* 右键菜单样式 */
.context-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
    min-width: 180px;
}

.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
}

.context-menu-item:hover {
    background-color: #f5f5f5;
}

.context-menu-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 5px 0;
}

#selectedDatesCount {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 900;
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.show {
        margin-left: 0;
    }
    
    .main-content {
        width: 100%;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
} 